Page 1 of 2
[Email Notification] Host Down Check Attempt.
Posted: Tue Sep 23, 2014 2:54 am
by igsadmin
Hi Guys,
My Nagios XI version is Nagios XI 2014R1.4.
I would like to check, what is the default duration for Host Down check attempt? Every 1 min, 5 attempt?
I want to increase the check attempt duration for Host Down, so I do not want to receive the Host Down email notification immediately.
Need your help.
Re: [Email Notification] Host Down Check Attempt.
Posted: Tue Sep 23, 2014 9:08 am
by tmcdonald
The default Host values are:
Check Interval: 5 minutes
Retry Interval: 1 minute
Max Check Attempts: 5
These are set via templates (xi_wizard_generic_host at the very bottom).
Re: [Email Notification] Host Down Check Attempt.
Posted: Tue Sep 23, 2014 10:58 am
by igsadmin
tmcdonald wrote:The default Host values are:
Check Interval: 5 minutes
Retry Interval: 1 minute
Max Check Attempts: 5
These are set via templates (xi_wizard_generic_host at the very bottom).
By the way, my settings for xiwizard_generic_host is default Host values..
But, when I did a test.. Every attempts changed to 30 seconds... Meaning to say, 2 min 30 sec later I will receive the email notification..
Any idea? Is it a bug?
Re: [Email Notification] Host Down Check Attempt.
Posted: Tue Sep 23, 2014 11:04 am
by tmcdonald
What do you have set in /usr/local/nagios/etc/nagios.cfg for interval_length? It should be 60. Looks like it might be 30. If this is the case, set it back to 60 and run "service nagios restart" for the change to take effect.
Re: [Email Notification] Host Down Check Attempt.
Posted: Tue Sep 23, 2014 11:10 am
by igsadmin
tmcdonald wrote:What do you have set in /usr/local/nagios/etc/nagios.cfg for interval_length? It should be 60. Looks like it might be 30. If this is the case, set it back to 60 and run "service nagios restart" for the change to take effect.
Hi.. my interval_length in /usr/local/nagios/etc/nagios.cfg is set to 60..
interval_length=60

Re: [Email Notification] Host Down Check Attempt.
Posted: Tue Sep 23, 2014 12:34 pm
by lmiltchev
Does this happen with all hosts or just one host? Can you show us the host definition? If these values (Check Interval, Retry Interval and Max Check Attempts) are set on a host level, these setting will take precedence over the template.
Re: [Email Notification] Host Down Check Attempt.
Posted: Tue Sep 23, 2014 11:38 pm
by igsadmin
lmiltchev wrote:Does this happen with all hosts or just one host? Can you show us the host definition? If these values (Check Interval, Retry Interval and Max Check Attempts) are set on a host level, these setting will take precedence over the template.
Hi, may I know where to get the host definition?
Re: [Email Notification] Host Down Check Attempt.
Posted: Wed Sep 24, 2014 8:14 am
by igsadmin
By the way, this is happen for all the host...
I just did a test... I changed retry interval from 1 min to 2 min in (xi_wizard_generic_host)
Noticed that, the retry interval now is 1 min after Host is DOWN.
Kinda weird on this configuration.. If 1 min = 30 sec, 2 min = 1 min...
Any idea on this?
Can you share with me, where to get the host definition?
Re: [Email Notification] Host Down Check Attempt.
Posted: Wed Sep 24, 2014 10:20 am
by Box293
igsadmin wrote:Hi, may I know where to get the host definition?
Open Core Configuration Manager
Click Hosts
Find the host you are talking about
Click the floppy disk icon
This is the host definition. Post that here.
Re: [Email Notification] Host Down Check Attempt.
Posted: Wed Sep 24, 2014 11:04 am
by igsadmin
Box293 wrote:igsadmin wrote:Hi, may I know where to get the host definition?
Open Core Configuration Manager
Click Hosts
Find the host you are talking about
Click the floppy disk icon
This is the host definition. Post that here.
Hi, this is the host definition,
###############################################################################
#
# Host configuration file
#
# Created by: Nagios Core Config Manager 2.2.0
# Date: 2014-09-25 00:02:39
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################
define host {
host_name ABCD
use xiwizard_windowssnmp_host
address 10.10.68.3
hostgroups Jaya
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
contacts igsadmin
notification_interval 0
notification_period xi_timeperiod_24x7
icon_image win_server.png
statusmap_image win_server.png
_xiwizard windowssnmp
register 1
}
###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################