Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
WINSMS
This is really simple to use
Steps
1. First is to download the script SendSMS.php and then place it anywhere where on your server Example */sms/.
2. Edit your command.cfg Example:
define command{
command_name notify-host-by-sms
command_line php yourdirectory/sms/SendSMS.php user="your email" password="Yourpassword" cellno="Cellno" message=$CONTACTPAGER$ "$NOTIFICATIONTYPE$ $SERVICESTATE$ $SERVICEDESC$ $NOTIFICATIONCOMMENT$ Host($HOSTNAME$) Info($SERVICEOUTPUT$) Date($SHORTDATETIME$)"
define command{
command_name notify-service-by-sms
command_line php yourdirectory/sms/SendSMS.php user="your email" password="Yourpassword" cellno="Cellno" message=$CONTACTPAGER$ "$NOTIFICATIONTYPE$ $SERVICESTATE$ $SERVICEDESC$ $NOTIFICATIONCOMMENT$ Host($HOSTNAME$) Info($SERVICEOUTPUT$) Date($SHORTDATETIME$)"
}
3. Edit your contact.cfg Example:
define contact{
contact_name your user
use generic-contact
alias your user
service_notification_options s
host_notification_options s
email your email
host_notification_period 24x7
service_notification_period 24x7
host_notification_commands notify-host-by-sms
service_notification_commands notify-service-by-sms
}
Thats all easy ^_^
Ideal for downtime schedules for your servers
Steps
1. First is to download the script SendSMS.php and then place it anywhere where on your server Example */sms/.
2. Edit your command.cfg Example:
define command{
command_name notify-host-by-sms
command_line php yourdirectory/sms/SendSMS.php user="your email" password="Yourpassword" cellno="Cellno" message=$CONTACTPAGER$ "$NOTIFICATIONTYPE$ $SERVICESTATE$ $SERVICEDESC$ $NOTIFICATIONCOMMENT$ Host($HOSTNAME$) Info($SERVICEOUTPUT$) Date($SHORTDATETIME$)"
define command{
command_name notify-service-by-sms
command_line php yourdirectory/sms/SendSMS.php user="your email" password="Yourpassword" cellno="Cellno" message=$CONTACTPAGER$ "$NOTIFICATIONTYPE$ $SERVICESTATE$ $SERVICEDESC$ $NOTIFICATIONCOMMENT$ Host($HOSTNAME$) Info($SERVICEOUTPUT$) Date($SHORTDATETIME$)"
}
3. Edit your contact.cfg Example:
define contact{
contact_name your user
use generic-contact
alias your user
service_notification_options s
host_notification_options s
email your email
host_notification_period 24x7
service_notification_period 24x7
host_notification_commands notify-host-by-sms
service_notification_commands notify-service-by-sms
}
Thats all easy ^_^
Ideal for downtime schedules for your servers
Reviews (0)
Be the first to review this listing!