Notification_interval

Bram Gillemon bram at openminds.be
Thu Jul 16 15:41:01 CEST 2009


Hi,

I'm running nagios 3.0.6 on a debian etch system.

I builded a setup that was easy to manage, but now i have the problem  
that i can't change my notification intervals.

When i take a look in the nagios web interface my notification  
intervals are configured as 0h 30m 0s.

My config looks like this.


/etc/nagios3/conf.d/Services/

In this folder i define all my services, my ping service looks like  
this:

# Service definition
define service{
	use						generic-service		; Name of service template to use

	name					generic-om-ping
	service_description		PING
	is_volatile				0
	check_period			24x7
	max_check_attempts		3
	check_interval	5
	retry_interval	1
	notification_interval	10
	notification_period		24x7
	notification_options	c,r
	check_command			check_ping!60.0,20%!400.0,60%
	register				0	; DONT REGISTER THIS DEFINITION - ITS NOT A REAL  
SERVICE, JUST A TEMPLATE!
	active_checks_enabled	1	; Active service checks are disabled
	passive_checks_enabled	1	; Passive service checks are enabled/disabled
	}


Then i have a folder per client where i define the services the client  
is allowed to use:

define service{
         use                                             generic-om- 
ping         ; Name of service template to use
         hostgroup_name                  om-xen-linux-critical
         contact_groups                  om-contact,om-sms
}

The service

define hostgroup {
         hostgroup_name                  om-xen-linux-critical
         alias                                   Openminds XEN Servers  
- kritisch
         }

define host{
         use             linuxxen
         host_name       host
         alias           host Virtual Server
         address         ip.from.the.host
         hostgroups          om-xen-linux
}

My linuxxen en generic-host template look like this:

# Server host template
define host{
         use                     generic-om-host         ; Name of  
host template to use

         name                    linuxxen
         check_command           check-host-alive
         register                0       ; DONT REGISTER THIS  
DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
}

Generic-host template:

define host{
         name                                                     
generic-host    ; The name of this host template - referenced in other  
host definitions, used for template recursion/resolution
         notifications_enabled                   0       ; Host  
notifications are disabled
         event_handler_enabled                   0       ; Host event  
handler is disabled
         flap_detection_enabled                  0       ; Flap  
detection is disabled
         process_perf_data                               1       ;  
Process performance data
         retain_status_information               1       ; Retain  
status information across program restarts
         retain_nonstatus_information    1       ; Retain non-status  
information across program restarts
         max_check_attempts                              10;

         register                                                 
0       ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A  
TEMPLATE!
}


Generic-service template:


# generic service template definition
define service{
         name                            generic-service ; The 'name'  
of this service template
         active_checks_enabled           1       ; Active service  
checks are enabled
         passive_checks_enabled          1       ; Passive service  
checks are enabled/accepted
         parallelize_check               1       ; Active service  
checks should be parallelized (disabling this can lead to major  
performance problems)
         obsess_over_service             0       ; We should obsess  
over this service (if necessary)
         check_freshness                 0       ; Default is to NOT  
check service 'freshness'
         notifications_enabled           1       ; Service  
notifications are enabled
         event_handler_enabled           1       ; Service event  
handler is enabled
         flap_detection_enabled          0       ; Flap detection is  
enabled
         failure_prediction_enabled      1       ; Failure prediction  
is enabled
         process_perf_data               1       ; Process performance  
data
         retain_status_information       1       ; Retain status  
information across program restarts
         retain_nonstatus_information    1       ; Retain non-status  
information across program restarts
         register                        0       ; DONT REGISTER THIS  
DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
}



The problem is that it doenst seem to have effect when i change the  
notification interval from the service.

Anobody who has an idea about what the problem is?

Kr,

Bram Gillemon

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list