summaryrefslogtreecommitdiff
path: root/files/configs/Debian/defaults/commands.cfg
diff options
context:
space:
mode:
authorJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2009-12-02 17:19:20 -0500
committerJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2009-12-02 17:19:20 -0500
commit97e13bd2809d1e431fcac063abeb757f235f2394 (patch)
tree225f906abe213aa3037b4b20bfa8f527aaf60416 /files/configs/Debian/defaults/commands.cfg
parent0bcac1357115fe9b03ec884632d46c93efb317d9 (diff)
replace defaults based on cfg files by puppet resources
Diffstat (limited to 'files/configs/Debian/defaults/commands.cfg')
-rw-r--r--files/configs/Debian/defaults/commands.cfg52
1 files changed, 0 insertions, 52 deletions
diff --git a/files/configs/Debian/defaults/commands.cfg b/files/configs/Debian/defaults/commands.cfg
deleted file mode 100644
index 4698058..0000000
--- a/files/configs/Debian/defaults/commands.cfg
+++ /dev/null
@@ -1,52 +0,0 @@
-###############################################################################
-# COMMANDS.CFG - SAMPLE COMMAND DEFINITIONS FOR NAGIOS
-###############################################################################
-
-
-################################################################################
-# NOTIFICATION COMMANDS
-################################################################################
-
-
-# '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" | /usr/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$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
- }
-
-
-
-
-
-################################################################################
-# HOST CHECK COMMANDS
-################################################################################
-
-# On Debian, check-host-alive is being defined from within the
-# nagios-plugins-basic package
-
-################################################################################
-# PERFORMANCE DATA COMMANDS
-################################################################################
-
-
-# 'process-host-perfdata' command definition
-define command{
- command_name process-host-perfdata
- command_line /usr/bin/printf "%b" "$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$\n" >> /var/lib/nagios3/host-perfdata.out
- }
-
-
-# 'process-service-perfdata' command definition
-define command{
- command_name process-service-perfdata
- command_line /usr/bin/printf "%b" "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n" >> /var/lib/nagios3/service-perfdata.out
- }
-
-