Setting up notifications for switches

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.
Alan
Posts: 86
Joined: Wed Aug 21, 2019 4:14 pm

Re: Setting up notifications for switches

Post by Alan »

So If i a switch and it is set to the defaults which were:

Code: Select all

check_interval		        5		; Actively check the printer every 5 minutes
retry_interval		        1		; Schedule host check retries at 1 minute intervals
max_check_attempts	10		; Check each printer 10 times (max)
It took 15 minutes before I got a email telling me the switch was down. So what would be the best way to get alerted within or under a minute it is down?
Alan
Posts: 86
Joined: Wed Aug 21, 2019 4:14 pm

Re: Setting up notifications for switches

Post by Alan »

So If I have a switch and it is set with the defaults which were:

Code: Select all

Code: Select all
    check_interval              5      ; Actively check the printer every 5 minutes
    retry_interval              1      ; Schedule host check retries at 1 minute intervals
    max_check_attempts   10      ; Check each printer 10 times (max)
It took 15 minutes before I got a email telling me the switch was down. So what would be the best way to get alerted within or under a minute if the switch goes down?
Alan
Posts: 86
Joined: Wed Aug 21, 2019 4:14 pm

Re: Setting up notifications for switches

Post by Alan »

I added that twice sorry.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Setting up notifications for switches

Post by benjaminsmith »

Hello Alan,

You have set the max_check_attempts to 10, so the host will not going to into a HARD non-ok state ( generating notifiation ) until it's been re-tried 10 times. If set this to 1, it will send a notification right away without re-trying the host check.

Code: Select all

max_check_attempts   10      ; Check each printer 10 times (max)
Change to:

Code: Select all

check_interval              5      ; Actively check the printer every 5 minutes
retry_interval              1      ; Schedule host check retries at 1 minute intervals
max_check_attempts     1      ; Check each printer 1 times (max)
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked