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
How Can I Configure A Service Check To Return OK?
Re: How Can I Configure A Service Check To Return OK?
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.
"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.
Re: How Can I Configure A Service Check To Return OK?
Thanks, I have a script to take care of it but was hoping to prevent updating the 'figs on multiple machines.
Thanks,
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?
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?
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?