Wrong Data on Nagios Dashboard

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
smruti
Posts: 1
Joined: Sun Aug 11, 2019 10:24 pm

Wrong Data on Nagios Dashboard

Post 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
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Wrong Data on Nagios Dashboard

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked