Commercial Support Clients: Clients with support contracts can get escalated support assistance by visiting Nagios Answer Hub. These forums are for community support services. Although we at Nagios try our best to help out on the forums here, we always give priority support to our support clients.

Nagios conditional checks

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.

Nagios conditional checks

Postby SuomyNonaPatri » Wed Apr 27, 2022 6:04 am

Currently I am monitoring my target windows hosts for a bunch of services (CPU, memory, disks, ssl certs, http etc). I'm using nsclient as the client that the nagios server will talk to.

My problem is that I deploy to those hosts three times every 24 hours. The deployment process requires the hosts to reboot. Whenever my hosts reboot I get nagios alerts for each service. This means a large volume of alerts, which makes it difficult to identify real issues.

Ideally I'd like to this:

If the host is down, don't send any alerts for the rest of the services
If the host is rebooting, this means that nsclient is not accessible. I want to only receive one alert (e.g CPU is not accessible) and mute everything else for a few minutes, so the host can finish booting and nsclient becomes available.
Implementing this would have me getting one email per host for each deployment. This is much better than everything turning red and me getting flooded with alerts that aren't worth checking (since they're only getting sent because the nagios client -nsclient- is not available during the omegle shaglevoojio reboot).

Got to love using a windows stack...
Last edited by SuomyNonaPatri on Mon Jun 20, 2022 3:22 am, edited 1 time in total.
Posts: 9
Joined: Wed Feb 23, 2022 7:41 am

Re: Nagios conditional checks

Postby gormank » Wed Apr 27, 2022 11:24 am

The nagios.cfg file has a setting that tells services to be quiet if the host is down. Make a ping/icmp check on the hosts and change the nagios.cfg and it should work as desired.
Posts: 1032
Joined: Tue Dec 02, 2014 12:00 pm

Return to Open Source Nagios Projects

Who is online

Users browsing this forum: Majestic-12 [Bot] and 10 guests