Plugin works as Nagios user but not in Nagios!

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
matts
Posts: 5
Joined: Fri Aug 30, 2013 3:49 pm

Plugin works as Nagios user but not in Nagios!

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

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

Post 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?
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.
Locked