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.