Page 1 of 1

Changing Notification Intervals

Posted: Wed Mar 12, 2014 10:57 am
by valbizures
I've been referencing the following site for host, service and other component configuration requirements : http://nagios.sourceforge.net/docs/3_0/ ... .html#host

As an example. For host definitions it outlines the following: (Items in red being required items)

define host{
host_name host_name
alias alias
display_name display_name
address address
parents host_names
hostgroups hostgroup_names
check_command command_name
initial_state [o,d,u]
max_check_attempts #
check_interval #
retry_interval #
active_checks_enabled [0/1]
passive_checks_enabled [0/1]
check_period timeperiod_name
obsess_over_host [0/1]
check_freshness [0/1]
freshness_threshold #
event_handler command_name
event_handler_enabled [0/1]
low_flap_threshold #
high_flap_threshold #
flap_detection_enabled [0/1]
flap_detection_options [o,d,u]
process_perf_data [0/1]
retain_status_information [0/1]
retain_nonstatus_information [0/1]
contacts contacts
contact_groups contact_groups
notification_interval #
first_notification_delay #
notification_period timeperiod_name
notification_options [d,u,r,f,s]
notifications_enabled [0/1]
stalking_options [o,d,u]
notes note_string
notes_url url
action_url url
icon_image image_file
icon_image_alt alt_string
vrml_image image_file
statusmap_image image_file
2d_coords x_coord,y_coord
3d_coords x_coord,y_coord,z_coord
}

However, Here is an example of my host definition which appears to be working just fine.

define host {
use
host_name
alias
address
parents
icon _image
statusmap_image
}

As you can see I don't have a lot of the "required" fields.

Question: Is the article I'm referencing out of date or might it be pulling other information from other .cfg files?

The reason I ask is because I'm trying to increase the notification interval at which I'm getting alerts. This brings up a second question.

I noticed that both the host definition and the service definition have a "notification_interval" parameter. Does one take presidence over the other? Since I don't have these configured in my host definition or my service definition is there another .cfg file that is being used by default?

A good example I have is my Drive Space check. I appear to be getting a notification for the same device/service check every 5-10 minutes. Some vary, but I would like to be able to increase this to different time intervals depending on severity.

Let me know if more information is needed and thanks in advance for your support.

Re: Changing Notification Intervals

Posted: Wed Mar 12, 2014 12:44 pm
by sreinhardt
More information such as the service definition and any inherited templates would be a great start. As for not having all the required fields, you do not need them in the base object, if they are being inherited from a template or group. They are still required to be fulfilled by either the base object or via inheritance, otherwise nagios will throw an error.