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!
Nagios check syntax
Re: Nagios check syntax
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.
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
Could you give me some more info on turning off the embedded pearl processor?
TIA!
TIA!
Re: Nagios check syntax
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.