[afnog] Nagios Configuration

Benjamin Cobblah cbnayai at yahoo.co.uk
Fri Jul 9 10:10:54 UTC 2010


Dear All,

How do you add 2 services eg ping and uptime to a single host on nagios3.

Do you split the services or you ca add to one directive?

*****************************
define service{
    use                     generic-service 
    host_name               HELLOWORLD
    service_description     PING
    is_volatile             0
    check_period            24x7
    max_check_attempts      3
    normal_check_interval   5
    retry_check_interval    1
    #contact_groups         switch_admin
    notification_interval   240
    notification_period     24x7
    notification_options    w,u,c,r
    check_command           check_ping!100.0,20%!500.0,60%
    service_description Uptime
    check_command check_snmp!-C public -o sysUpTime.0
    }
*******************************************
or
*******************************************
define service{
    use                     generic-service 
    host_name               HELLOWORLD
    service_description     PING
    is_volatile             0
    check_period            24x7
    max_check_attempts      3
    normal_check_interval   5
    retry_check_interval    1
    #contact_groups         switch_admin
    notification_interval   240
    notification_period     24x7
    notification_options    w,u,c,r
    check_command           check_ping!100.0,20%!500.0,60%
    service_description Uptime
    check_command check_snmp!-C public-o sysUpTime.0
    }
define service{
    use                     generic-service 
    host_name               HELLOWORLD
    service_description     PING
    is_volatile             0
    check_period            24x7
    max_check_attempts      3
    normal_check_interval   5
    retry_check_interval    1
    #contact_groups         switch_admin
    notification_interval   240
    notification_period     24x7
    notification_options    w,u,c,r
    check_command           check_ping!100.0,20%!500.0,60%
    service_description Uptime
    check_command check_snmp!-C public-o sysUpTime.0
    }
********************************************************
Best regards

Benjamin



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://afnog.org/pipermail/afnog/attachments/20100709/8e0cbc1e/attachment-0001.htm>


More information about the afnog mailing list