possible to change status of dependent checks to unknown?
Posted: Sun May 10, 2015 9:07 pm
I currently have a bunch of service checks that have a "critical" status, and I am trying to figure out the best way to mass temporarily disable them in such a way that the red/critical status goes to "unknown". I'd rather not delete them because I might forget to re-add them.
An example is the check_yum for security updates. I'll wake up in the morning and there will be hundreds of services in critical status.
Ideally, I could set the dependent service to depend on a masters condition like nagios server being in an ok state. Meaning if the nagios server is pingable than don't do the check_yum. This works nearly perfectly in that the dependency works and no more checks are performed against the check_yum service. The problem is that the status stays as the last known status which is "critical". I would like the status to go to "unknown" as soon as the dependency kicks in which will make my nagios console pretty and red/critical free until I fix the check_yum.
My main goal is to keep my monitoring system free of any "critical"/red status to keep the "cry wolf" effect to a minimum. I'm sure someone has a better way to accomplish this.
Thanks!
An example is the check_yum for security updates. I'll wake up in the morning and there will be hundreds of services in critical status.
Ideally, I could set the dependent service to depend on a masters condition like nagios server being in an ok state. Meaning if the nagios server is pingable than don't do the check_yum. This works nearly perfectly in that the dependency works and no more checks are performed against the check_yum service. The problem is that the status stays as the last known status which is "critical". I would like the status to go to "unknown" as soon as the dependency kicks in which will make my nagios console pretty and red/critical free until I fix the check_yum.
My main goal is to keep my monitoring system free of any "critical"/red status to keep the "cry wolf" effect to a minimum. I'm sure someone has a better way to accomplish this.
Thanks!