Page 1 of 1
Nagios check syntax
Posted: Tue Aug 14, 2012 3:55 pm
by alceryes
Is there a way see the actual command that Nagios runs when it performs a check? I have a situation where a check works perfectly if I run it manually but it always fails when Nagios runs the check.
TIA!
Re: Nagios check syntax
Posted: Tue Aug 14, 2012 7:07 pm
by jsmurphy
I'm assuming this is related to your exchange post but for the sake of others who might search the forums for the answer... You can run "su - nagios" to swap to impersonate the Nagios user and run the commands yourself. Usually Nagios failing to run a command is the result of a permissions issue on the script or a permissions issue with a command line utility in the script.
It can also however be caused by the embedded Nagios perl processor if it is a perl script in rare circumstances, if you think that may be the case try turning off the embedded processor in your nagios.cfg.
Re: Nagios check syntax
Posted: Wed Sep 05, 2012 3:02 pm
by alceryes
Could you give me some more info on turning off the embedded pearl processor?
TIA!
Re: Nagios check syntax
Posted: Wed Sep 05, 2012 6:05 pm
by jsmurphy
In your nagios.cfg file there will be a line named something along the lines of enable_embedded_perl=1 change it to 0 and that will disable the embedded processor.