Page 2 of 2
Re: Setting up notifications for switches
Posted: Thu Dec 12, 2019 4:20 pm
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?
Re: Setting up notifications for switches
Posted: Thu Dec 12, 2019 4:25 pm
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?
Re: Setting up notifications for switches
Posted: Thu Dec 12, 2019 4:27 pm
by Alan
I added that twice sorry.
Re: Setting up notifications for switches
Posted: Thu Dec 12, 2019 4:28 pm
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)