- 论坛徽章:
- 0
|
五:
commands
.cfg的配置
define command{
command_name send_host_alert_email
command_line $USER1$/sendemail/sendEmail.sh $CONTACTEMAIL$ "**
$NOTIFICATIONTYPE$ alert - $HOSTALIAS$ is $HOSTSTATE$ **"
"*****Nagios3.0 at 192.168.**.***** *****\n\nNotification Type:
$NOTIFICATIONTYPE$\n\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$HOSTSTATE$\n\nDate/Time: $LONGDATETIME$\n"
}
define command{
command_name send_service_alert_sms
command_line $USER1$/sendsms/sendSms.rb $CONTACTADDRESS1$
"$SERVICEDESC$ $HOSTNAME$ $HOSTADDRESS$ $SERVICESTATE$"
"$SERVICEOUTPUT$"
}
define command{
command_name send_host_alert_sms
command_line $USER1$/sendsms/sendSms.rb $CONTACTADDRESS1$ "$HOSTADDRESS$ is $HOSTSTATE$" "$HOSTOUTPUT$"
}
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 120 -c $ARG1$
}
define command{
command_name check_http_217
command_line $USER1$/check_http.py
}
define command{
command_name check_smtp_service
command_line $USER1$/check_smtp -H $HOSTADDRESS$
}
define command{
command_name check_ssmtp_service
command_line $USER1$/check_ssmtp -H $HOSTADDRESS$
}
define command{
command_name check_pop_service
command_line $USER1$/check_pop -H $HOSTADDRESS$
}
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/84257/showart_1359539.html |
|