Patch by alierak. diffs (59 lines):
diff -r 92c51e86151f -r 9a3012f62252 nagios/conf.d/config/commands.cfg --- a/nagios/conf.d/config/commands.cfg Tue May 19 07:48:52 2009 +0000 +++ b/nagios/conf.d/config/commands.cfg Thu May 28 00:51:26 2009 +0000 @@ -5,6 +5,7 @@ # # Authors: # Mark Smith <[email protected]> +# Robby Griffin <[email protected]> # # Copyright (c) 2009 by Dreamwidth Studios, LLC. # @@ -13,6 +14,18 @@ # 'perldoc perlartistic' or 'perldoc perlgpl'. # +# Slightly abbreviated notifications for pagers + +define command { + command_name dw_notify_host_epager + command_line /usr/bin/printf "%b" "at $LONGDATETIME$\n$HOSTOUTPUT$\n($HOSTALIAS$/$HOSTADDRESS$)\n$HOSTACKAUTHOR$ $HOSTACKCOMMENT$\n" | /usr/bin/mail -s "$NOTIFICATIONTYPE$: $HOSTNAME$ is $HOSTSTATE$" $CONTACTPAGER$ +} + +define command { + command_name dw_notify_service_epager + command_line /usr/bin/printf "%b" "at $LONGDATETIME$\n$SERVICEOUTPUT$\n($HOSTALIAS$/$HOSTADDRESS$)\n$SERVICEACKAUTHOR$ $SERVICEACKCOMMENT$\n" | /usr/bin/mail -s "$NOTIFICATIONTYPE$: $HOSTNAME$/$SERVICEDESC$ is $SERVICESTATE$" $CONTACTPAGER$ +} + # check_mysql is a basic check for a database being available define command { diff -r 92c51e86151f -r 9a3012f62252 nagios/conf.d/config/contacts.cfg --- a/nagios/conf.d/config/contacts.cfg Tue May 19 07:48:52 2009 +0000 +++ b/nagios/conf.d/config/contacts.cfg Thu May 28 00:51:26 2009 +0000 @@ -31,12 +31,23 @@ define contact { email [email protected] } - +define contact { + contact_name alierak + alias Robby Griffin + service_notification_period always + host_notification_period always + service_notification_options w,u,c,r + host_notification_options d,r + service_notification_commands notify-service-by-email,dw_notify_service_epager + host_notification_commands notify-host-by-email,dw_notify_host_epager + email [email protected] + pager [email protected] +} # contact groups define contactgroup { contactgroup_name admins alias Systems Administrators - members mark + members mark,alierak } _______________________________________________ dw-changelog mailing list [email protected] http://lists.dwscoalition.org/mailman/listinfo/dw-changelog
