]> git.pld-linux.org Git - projects/nagios-config.git/commitdiff
- nagios-notify package promote
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 3 Aug 2009 16:06:42 +0000 (16:06 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Mon, 3 Aug 2009 16:06:42 +0000 (16:06 +0000)
svn-id: @10442

commands.cfg

index 5f6fdeead9c38d6b99992c954a50d2384060305f..61c4a3e28e5af5cb957b33a63c6e780958636645 100644 (file)
 #
 # NOTIFICATION COMMANDS
 #
-# These are some example notification commands.  They may or may not work on
-# your system without modification.  As an example, some systems will require 
-# you to use "/usr/bin/mailx" instead of "/usr/bin/mail" in the commands below.
-#
-################################################################################
-
-# 'notify-host-by-email' command definition
-define command {
-       command_name    notify-host-by-email
-       command_line    /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$
-}
-
-# 'notify-service-by-email' command definition
-define command {
-       command_name    notify-service-by-email
-       command_line    /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
-}
+# In PLD Linux we use "nagios-notify" package for notification templates.
+# See /etc/nagios/plugins/nagios-notify.cfg.
 
 ################################################################################
 #
This page took 0.064201 seconds and 4 git commands to generate.