Hallo,
Ik heb deze documenatie gevolgd:
http://www.stochasticgeometry.ie/201...ns-clickatell/
Wat heb ik gedaan
1)
Ik heb dit in commands.cfg gezet:
define command{
command_name host_notify_with_sms
command_line wget
"http://api.clickatell.com/http/sendmsg?user=INSERT_USERNAME_HERE&password=INSERT_ PASSWORD_HERE&api_id=INSERT_API_ID_HERE&to=$CONTAC TPAGER$&text='$NOTIFICATIONTYPE$
Server is $HOSTSTATE$ ($HOSTOUTPUT$) @ $LONGDATETIME$'"
}
define command{
command_name service_notify_with_sms
command_line wget
"http://api.clickatell.com/http/sendmsg?user=INSERT_USERNAME_HERE&password=INSERT_ PASSWORD_HERE&api_id=INSERT_API_ID_HERE&to=$CONTAC TPAGER$&text='$NOTIFICATIONTYPE$
Server : $SERVICEDESC$ is $SERVICESTATE$ @ $LONGDATETIME$'"
}
2)
Met de juiste gebruikersnaam en wachtwoord heb ik een test gedaan:
wget
"http://api.clickatell.com/http/sendmsg?user=INSERT_USERNAME_HERE&password=INSERT_ PASSWORD_HERE&api_id=INSERT_API_ID_HERE&to=INSERT_ MOBILE_PHONE_NUMBER_HERE&text='This
is a test message. If this was a real message, you would be panicking right now
and desperately looking for a terminal."
Dit werkt er wordt een sms verzonden!
Tot zover heb ik de handleiding kunnen volgen. Alleen spreken ze hier over een verouderde versie, dus heb ik het volgende gedaan:
3)
Ik heb in het bestand contacts.cfg en heb een waarde toegevoegd: "pager" bij de contacts
En nu de handleiding spreekt over het inbrengen van deze 2 regels:
service_notification_commands service_notify_with_sms notify-service-by-email
host_notification_commands host_notify_with_sms notify-host-by-email
Heeft iemand een idee waar in welke file ik deze dan moet zetten?
En heb ik de pager waarde goed gezet?