
waider182
(usa Debian)
Enviado em 09/09/2010 - 10:59h
meu nagios nao manda sms..
vejam se há algum erro na conf.
## commands.cfg
define command{
command_name notify-host-by-sms
command_line $USER1$/sendsms $CONTACTPAGER$ "*Monitoramento* notif.: $NOTIFICATIONTYPE$ Svc: $SERVICEDESC$ Equip.: $HOSTNAME$ Descr: $HOSTALIAS I$
}
define command{
command_name notify-service-by-sms
command_line $USER1$/sendsms $CONTACTPAGER$ "*Monitoramento* $NOTIFICATIONTYPE$ equipamento: $HOSTNAME$ . $HOSTALIAS$ IP: $HOSTADDRESS$ Data/Hor$
}
## contacts.cfg
define contact{
contact_name nagiosadmin ; Short name of user
use generic-contact ; Inherit default values from generic-contact template (defined above)
alias Nagios Admin ; Full name of user
host_notification_period 24x7
service_notification_period 24x7
host_notification_options d,u,r,f,s
service_notification_options w,c,r,f,s
host_notification_commands notify-host-by-email, notify-host-by-sms
service_notification_commands notify-service-by-email, notify-service-by-sms
email waider182@gmail.com ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
pager 553187xxxxx
}