Plugin works as Nagios user but not in Nagios!
Posted: Mon Oct 28, 2013 1:23 pm
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
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