8b85db0728
svn path=/nixos/trunk/; revision=9658
35 lines
1.1 KiB
INI
35 lines
1.1 KiB
INI
define command {
|
|
command_name host-notify-by-email
|
|
command_line printf "%b" "Subject: [Nagios] Host $HOSTSTATE$ alert for $HOSTNAME$\n\n***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | sendmail $CONTACTEMAIL$
|
|
}
|
|
|
|
|
|
define command{
|
|
command_name notify-by-email
|
|
command_line printf "%b" "Subject: [Nagios] $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$\n\n***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | sendmail $CONTACTEMAIL$
|
|
}
|
|
|
|
|
|
define command {
|
|
command_name dummy-ok
|
|
command_line true
|
|
}
|
|
|
|
|
|
define command {
|
|
command_name check-host-alive
|
|
command_line check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1
|
|
}
|
|
|
|
|
|
define command {
|
|
command_name check_local_disk
|
|
command_line check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
|
|
}
|
|
|
|
|
|
define command {
|
|
command_name check_ssh
|
|
command_line check_ssh $HOSTADDRESS$
|
|
}
|