On 29.08.2012 22:31, Joseph Spenner wrote: > I'm just getting icinga notifications working, and have a question > regarding the syntax. > > in my contacts.cfg I have 2 entries: > > define contact{ > contact_name jesp-email > host_notifications_enabled 1 > host_notification_period 24x7 > host_notification_options d,u,r > host_notification_commands notify-host-by-email > service_notifications_enabled 1 > service_notification_period workhours > service_notification_options w,u,c,r > service_notification_commands notify-service-by-email > alias Joseph Spenner > email joseph85...@yahoo.com > } > > define contact{ > contact_name jesp-pager > host_notifications_enabled 1 > host_notification_period 24x7 > host_notification_options d,u,r > host_notification_commands notify-host-by-email > service_notifications_enabled 1 > service_notification_period workhours > service_notification_options w,u,c,r > service_notification_commands notify-service-by-email > alias JESP Pager > email 8005551...@pager.net > } > > > and 2 contact groups: > > define contactgroup{ > contactgroup_name Admin-email > alias Administrators Email > members jesp-email > } > > define contactgroup{ > contactgroup_name Admin-pager > alias Administrators Page > members jesp-pager > } > > > And my host definition: > > define host{ > use notify-Admin-email > host_name tycho > alias tycho > address 10.4.3l.20 > } > > > And a notify config: > > define host{ > name notify-Admin-email > active_checks_enabled 1 > passive_checks_enabled 1 > check_freshness 0 > notifications_enabled 1 > event_handler_enabled 1 > flap_detection_enabled 1 > failure_prediction_enabled 1 > process_perf_data 1 > retain_status_information 1 > retain_nonstatus_information 1 > check_period 24x7 > max_check_attempts 3 > check_interval 5 > retry_interval 1 > normal_check_interval 10 > retry_check_interval 2 > check_command check-host-alive > contact_groups Admin-email > notification_options d,u,r,f,s > notification_interval 30 > notification_period 24x7 > } > define host{ > name notify-Admin-pager > active_checks_enabled 1 > passive_checks_enabled 1 > check_freshness 0 > notifications_enabled 1 > event_handler_enabled 1 > flap_detection_enabled 1 > failure_prediction_enabled 1 > process_perf_data 1 > retain_status_information 1 > retain_nonstatus_information 1 > check_period 24x7 > max_check_attempts 3 > check_interval 5 > retry_interval 1 > normal_check_interval 10 > retry_check_interval 2 > check_command check-host-alive > contact_groups Admin-pager > notification_options d,u,r,f,s > notification_interval 30 > notification_period 24x7 > } > > The above setup will email my regular email only, which makes sense > since it's the only thing defined. > > Is there a way to have 2 groups defined for notifications? I tried the > following: > > define host{ > use notify-Admin-email,notify-Admin-pager > host_name tycho > alias tycho > address 10.4.3l.20 > } > > But it only goes to the first one listed. > I tried having 2 "use" lines, but it only goes to the last one listed. > > The only way I can make it go to both places is to have the one > Admin-email contactgroup (for testing) contain both entries: > > > define contactgroup{ > contactgroup_name Admin-email > alias Administrators Email > members jesp-email,jesp-pager > } > > > How are multiple groups defined? > Also, is there a way to have it simply go to a single 'contact' who is > not part of any group? > > Any help would be great.
note the '+' sign on appended contacts. docs should hold an extended information on that. > > Thanks! > > ______________________________________________________________________ > If life gives you lemons, keep them-- because hey.. free lemons. > "♥ Sticker" fixer: http://microflush.org/stuff/stickers/heartFix.html > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > icinga-users mailing list > icinga-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/icinga-users -- DI (FH) Michael Friedrich Lead Icinga Core Developer https://www.icinga.org ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ icinga-users mailing list icinga-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/icinga-users