[1/2OT]Adding services to services.cfg (apan) - follow-up

Fredrik Wänglund fredrik.wanglund at datavis.se
Thu Jun 5 15:10:47 CEST 2003


The purpose of templates (generic-service) is that all parameters should 
be defined there and only in
the service if it differs from the template. This way the length of the 
object-definitions will be very
short and nice.


/FredrikW


stefmit wrote:

>Sorry for the previous posting. Have just discovered (by trial and error :)) 
>that I need to fill in ALL fields as defined in the generic-service, for the 
>new one to be accepted. Once I changed:
>
>define service {
>        use                              generic-service
>        host_name                  bcn
>        service_description     Net-usage
>        check_command           apan!snmpget!10!20
>        normal_check_interval   1
>}
>
>to:
>
>define service {
>	use					generic-service
>	host_name              		bcn
>	service_description    	Net-usage
>	is_volatile				0
>	check_period			24x7		
>	max_check_attempts	3
>	normal_check_interval	5
>	retry_check_interval		1
>	contact_groups		w2k-admins
>	notification_interval		120
>	notification_period		24x7
>	notification_options		c,r		
>	check_command          	apan!snmpget!10!20
>}
>
>no more complaints from #nagios -v ./nagios.cfg
>
>Now on to trying to make it work ;)
>
>Sorry for jumping the gun so fast ;)
>
>Stef
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
>thread debugger on the planet. Designed with thread debugging features
>you've never dreamed of, try TotalView 6 free at www.etnus.com.
>_______________________________________________
>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
>  
>




-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
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