nagios + sms [RESOLVIDO]

1. nagios + sms [RESOLVIDO]

waider hebert martins
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
}



  


2. Re: nagios + sms [RESOLVIDO]

Carlos Henrique Ramos
ramos1986

(usa Debian)

Enviado em 09/09/2010 - 11:33h

Execute o comando abaixo para verificar se as configurações do NAGIOS estão corretas.

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg


3. Re: nagios + sms [RESOLVIDO]

waider hebert martins
waider182

(usa Debian)

Enviado em 25/09/2010 - 18:53h

Descobri o problema,
era o meu /etc/resolv.conf
tava perdendo as configurações
ai nao resolvia os nomes dos sites.
vlw moçada..