Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetext
title/etc/nagios/objects/schosts.cfg
./sendsms_skycontrolvutlan -H 192.168.0.193 -p secret -P +777 -m 'This is a text'

...

Code Block
languagetext
title/etc/nagios/objects/commands.cfg
define command{
        command_name notify-service-by-sms
        command_line $USER1$/sendsms_skycontrolvutlan -H 192.168.1.190 -p guest -P $CONTACTPAGER$ -m "Nagios – $NOTIFICATIONTYPE$ : $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$"
}
define command{
        command_name notify-host-by-sms
        command_line $USER1$/sendsms_skycontrolvutlan -H 192.168.1.190 -p guest -P $CONTACTPAGER$ -m "Nagios – $NOTIFICATIONTYPE$ : Host $HOSTALIAS$ is $HOSTSTATE$"
}

...