Hello,
I have a check email loop plugin that writes to a temp file some information it uses for comparison purposes.
Long story short is that this USED to work, but of course something changed over time and now I have no idea where to start from.
I can run the plugin from the CLI as root and as Nagios and it works just fine.
When I execute the plugin under Nagios, it creates the file but it is always 0 bytes! When running from the CLI the temp file actually has the data in it.
Am I missing something obvious here?
Thanks,
Matt
Plugin works as Nagios user but not in Nagios!
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Plugin works as Nagios user but not in Nagios!
Could you provide a copy of or a link to the plugin? Also the command definition and service check definitions could be useful. Are you getting any errors when executing via nagios or just a reply of 0 bytes?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.