Thanks for replying. Yes, it runs successfully from the CLI using the nagios user.
I added some logging to my script and have discovered that the Nagios app is not even running my script (no logs generated). Have I missed a step in getting it added to command.cfg or somewhere else?
I too am getting different results from the command line than from within Nagios for my perl plugin. From CLI I get a line of text output and an exit value of 0 when I expect to; or a different line of text output and a value of 1 when I expect to; but when I go through commands.cfg and the Nagios w...