Page 1 of 1

Wrong Data on Nagios Dashboard

Posted: Sun Aug 11, 2019 10:33 pm
by smruti
Hi,

I wrote custom script to monitor our APIs. When I check output the of service on nagios.debug log, it's showing API status OK (exit code 0).
But in Dashboard it's showing API is critical (exit code 2).

Can anyone help me on this?

Regards
Smruti

Re: Wrong Data on Nagios Dashboard

Posted: Mon Aug 12, 2019 2:55 pm
by tgriep
Can you run the plugin from a command line and show the output of the plugin?
Also, does the plugin run as the nagios user?
When nagios runs a check, it runs it as the nagios user and that could be the issue.

One more thing, please post the command definition and how the service check is defined so we can view those settings.