Page 1 of 1

Plugin works as Nagios user but not in Nagios!

Posted: Mon Oct 28, 2013 1:23 pm
by matts
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

Re: Plugin works as Nagios user but not in Nagios!

Posted: Mon Oct 28, 2013 4:29 pm
by sreinhardt
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?