debug notifications

Nicolas Laurance nlaurance at zindep.com
Wed Jan 28 14:10:41 CET 2009


nagios.cfg

log_notifications=1
notification_timeout=30
enable_notifications=1


service :

define timeperiod{
         timeperiod_name 24x7
         alias           24 Hours A Day, 7 Days A Week
         sunday          00:00-24:00
         monday          00:00-24:00
         tuesday         00:00-24:00
         wednesday       00:00-24:00
         thursday        00:00-24:00
         friday          00:00-24:00
         saturday        00:00-24:00
         }


define contact{
         contact_name                    nicolas
         alias                           Nicolas
         service_notification_period     24x7
         host_notification_period        24x7
         service_notification_options    u,w,c,r
         host_notification_options       d
         service_notification_commands   notify-by-email
         host_notification_commands      host-notify-by-email
         email                           nicolas at XXXXXXXX.org
         pager                           XXXXXXXX
         }

define contactgroup{
         contactgroup_name       nil
         alias                   Nicolas
         members                 nicolas
         }


define host{
         name                            generic-host
         notifications_enabled           1
         event_handler_enabled           1
         flap_detection_enabled          0
         failure_prediction_enabled      1
         process_perf_data               1
         retain_status_information       1
         retain_nonstatus_information    1
         notification_period             24x7
         register                        0
         }


define host{
     use generic-host
     host_name                       oust
     alias                           Oust
     address                         127.0.0.1
     max_check_attempts              2
     notification_interval           60
     notification_period             24x7
     notifications_enabled           1
     contact_groups                  nil
}

define service{
         name                            generic-service
         active_checks_enabled           1
         passive_checks_enabled          1
         parallelize_check               1
         obsess_over_service             1
         check_freshness                 0
         notifications_enabled           1
         event_handler_enabled           1
         flap_detection_enabled          0
         failure_prediction_enabled      1
         process_perf_data               1
         retain_status_information       1
         retain_nonstatus_information    1
         is_volatile                     0
         register                        0
         }


define service{
         name                            oust-service
         use                             generic-service
         check_period                    24x7
         max_check_attempts              2
         normal_check_interval           1
         retry_check_interval            1
         contact_groups                  nil
         notification_interval           3
         notification_period             24x7
         notifications_enabled           1
         register                        0
         }

define service{
     use oust-service
     host_name oust
     service_description Inondation
     check_command check_oust!1.0!1.0
}



------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
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