# vim: filetype=nagios # CONTACT GROUPS define contactgroup { contactgroup_name admins alias Naemon Administrators # members immae } # No contact, we go through master # define contact { # contact_name immae # alias Immae # use generic-contact # email ismael@bouya.org # } # # define contact { # name generic-contact # host_notification_commands notify-host-by-email # host_notification_options d,u,r,f,s # host_notification_period 24x7 # register 0 # service_notification_commands notify-service-by-email # service_notification_options w,u,c,r,f,s # service_notification_period 24x7 # } # # define command { # command_name notify-host-by-email # command_line SERVICENOTIFICATIONID="$SERVICENOTIFICATIONID$" HOSTSTATE="$HOSTSTATE$" HOSTOUTPUT="$HOSTOUTPUT$" $USER2$/notify_by_email host "$NOTIFICATIONTYPE$" "$HOSTALIAS$" "$LONGDATETIME$" "$CONTACTEMAIL$" $OVE # #$OVE is to force naemon to run via shell instead of execve which fails here # } # # # 'notify-service-by-email' command definition # define command { # command_name notify-service-by-email # command_line SERVICENOTIFICATIONID="$SERVICENOTIFICATIONID$" SERVICEDESC="$SERVICEDESC$" SERVICESTATE="$SERVICESTATE$" SERVICEOUTPUT="$SERVICEOUTPUT$" $USER2$/notify_by_email service "$NOTIFICATIONTYPE$" "$HOSTALIAS$" "$LONGDATETIME$" "$CONTACTEMAIL$" $OVE # # command_line sudo /usr/bin/strace -o /tmp/foo -vf -s 256 -u naemon $USER2$/notify_by_email # #$OVE is to force naemon to run via shell instead of execve which fails here # }