Permission Denied. My Plugin wants to write numbers into a text file

(Gergo Schwahofer) #1


I created a plugin to check bandwith every minute, and after write into a text file, After its filled every 10 minutes its output the average performance data.

I have a shell script + a .txt file. I gave ownership to Nagios user and even tried both files and also the PLUGINS folder with chmod 777. Still not working and saying Cannot create file output.txt, anyhow the file is there so its created just need write permission.

Thank you very much.

(Gergo Schwahofer) #2

Solved in IRC. text files cannot be inside/usr/lib/nagios/plugins. I used var/tmp its working now.