[Email Notification] Host Down Check Attempt.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
igsadmin
Posts: 64
Joined: Wed Mar 26, 2014 5:09 am

[Email Notification] Host Down Check Attempt.

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: [Email Notification] Host Down Check Attempt.

Post 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).
Former Nagios employee
igsadmin
Posts: 64
Joined: Wed Mar 26, 2014 5:09 am

Re: [Email Notification] Host Down Check Attempt.

Post 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?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: [Email Notification] Host Down Check Attempt.

Post 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.
Former Nagios employee
igsadmin
Posts: 64
Joined: Wed Mar 26, 2014 5:09 am

Re: [Email Notification] Host Down Check Attempt.

Post 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

:(
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: [Email Notification] Host Down Check Attempt.

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
igsadmin
Posts: 64
Joined: Wed Mar 26, 2014 5:09 am

Re: [Email Notification] Host Down Check Attempt.

Post 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?
igsadmin
Posts: 64
Joined: Wed Mar 26, 2014 5:09 am

Re: [Email Notification] Host Down Check Attempt.

Post 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?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: [Email Notification] Host Down Check Attempt.

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
igsadmin
Posts: 64
Joined: Wed Mar 26, 2014 5:09 am

Re: [Email Notification] Host Down Check Attempt.

Post 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
#
###############################################################################
Locked