Page 1 of 1

How Can I Configure A Service Check To Return OK?

Posted: Wed Jun 03, 2015 11:36 am
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

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

Posted: Wed Jun 03, 2015 11:43 am
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?)

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

Posted: Thu Jun 04, 2015 11:37 am
by jimmlegs
Thanks, I have a script to take care of it but was hoping to prevent updating the 'figs on multiple machines.

Thanks,

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

Posted: Thu Jun 04, 2015 11:56 am
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?