Search found 3 matches

by dfox
Mon Jul 07, 2014 9:31 am
Forum: Open Source Nagios Projects
Topic: Different result in web interface and command line
Replies: 5
Views: 4209

Re: Different result in web interface and command line

Everyone,

Thanks for your questions and suggestions. We got Nagios running the script! (There was a typo in a lib path :oops: )
by dfox
Thu Jul 03, 2014 7:59 am
Forum: Open Source Nagios Projects
Topic: Different result in web interface and command line
Replies: 5
Views: 4209

Re: Different result in web interface and command line

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?
by dfox
Wed Jul 02, 2014 12:05 pm
Forum: Open Source Nagios Projects
Topic: Different result in web interface and command line
Replies: 5
Views: 4209

Different result in web interface and command line

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...