Hallo, ik kan wel wat advies gebruiken over nagios.
Mijn probleem is dat nagios geen sms verstuurt naar mijn mobiel, dit terwijl de service wel is geinstalleerd.
Ik heb in de dirertory /libexec het bestand " notify_sms" geplaats en hier ook mijn mollie gebruikersnaam en wachtwoord ingevoerd.
Waneer ik de volgende commando geeft wordt er wel een sms verzonden:
# ./notify_sms -n 0612345678 -m test -u user -p pass -s "verzender"
In het bestand commands.cfg heb ik de volgende regels staan:
In het bestand localhost waar al mijn servers en contacten staan staat het volgende:PHP Code:# 'host-notify-by-mollie' command definition
define command{
command_name host-notify-by-mollie
command_line /usr/local/nagios/libexec/notify_sms -n $CONTACTPAGER$ -m "$NOTIFICATIONTYPE$: $HOSTNAME$ is $HOSTSTATE$" -s "afzender" -u user -p password
}
# 'notify-service-by-mollie' command definition
define command{
command_name notify-service-by-mollie
command_line /usr/local/nagios/libexec/notify_sms -n $CONTACTPAGER$ -m "$NOTIFICATIONTYPE$: $HOSTNAME$ service $SERVICEDESC$ is $SERVICESTATE$" -s "verzender" -u user -p wachtwoord
}
Iets verder op:PHP Code:service_notification_commands notify-service-by-email ; send service
service_notification_commands notify-service-by-mollie ; send service
host_notification_commands notify-host-by-email ; send host
host_notification_commands host-notify-by-mollie ; send host
waneer ik inlog in nagios en ik ga naar "Notifications" zie ik daar wel dat nagios zowel mail als sms verstuurt heeft:PHP Code:define contact{
contact_name beheer ; Short name of user
use generic-contact ; Inherit default values from
alias Nagios Admin ; Full name of user
email beheer@domein.nl ; NOC Adres
pager 0612345678 ; NOC Mobiel
Mail versturen doet nagios wel, echter sms wordt niet verstuurd.
Ben hier al een paar dagen mee bezig maar kom er ff niet uit.

Likes:


Quote