How Can I Configure A Service Check To Return OK?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jimmlegs
Posts: 49
Joined: Thu Jun 20, 2013 11:50 am

How Can I Configure A Service Check To Return OK?

Post by jimmlegs »

Greetings,

I would like to configure a service check that will return OK when check_nrpe returns a status of "Failed to open service" message? Negate doesn't seem to do the trick.

Thank you very much,

David S. Goldstein
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: How Can I Configure A Service Check To Return OK?

Post by abrist »

You will probably need to write a wrapper script to return ok only When a problem state is detected that matches your string. What is the use case for this? Do you see this error often? Is the check working? (and if not, would not eliminating the check be a better option?)
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
jimmlegs
Posts: 49
Joined: Thu Jun 20, 2013 11:50 am

Re: How Can I Configure A Service Check To Return OK?

Post by jimmlegs »

Thanks, I have a script to take care of it but was hoping to prevent updating the 'figs on multiple machines.

Thanks,
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: How Can I Configure A Service Check To Return OK?

Post by jdalrymple »

If we knew more about the application we could probably help better.

As it is, based upon the information we have I can't see any reason that you'd need to change the configuration on multiple machines, just the service config on the nagios host.

If you're OK with abrists answer though and aren't seeking further help is it OK if we lock the topic?
Locked