Reset the HARD state through command line

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
anilgupta
Posts: 102
Joined: Fri Mar 01, 2019 8:35 am

Reset the HARD state through command line

Post by anilgupta »

Team,

We have one of the custom plugin called "Check_OAM" which looks for the status of OAM Application.

The service is up and running however, the plugin is showing it as down. Attached is the files related to the plugin.

Question: is there a way to reset the HARD state through command line?
Attachments
commands.cfg
(13.95 KiB) Downloaded 101 times
check_oam.txt
(2.06 KiB) Downloaded 113 times
Critical_Nagios.PNG
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Reset the HARD state through command line

Post by npolovenko »

Hello, @anilgupta. I'm not able to see the service name from the screenshot. Can you take another screenshot of the whole page or let me know the name of the host and service? And show me the service check definition?

Execute the plugin from the command line and let me know if it returns "Down" or "OK".
The plugin is responsible for resetting the service state and looks like it's still showing down. So you'll need to get the plugin to show OK from the command line first.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked