<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">I want to set nagios to send a txt message if there is a down or critical status. I setup a nagios for testing to another box instead of playing in the stable nagios that was runnin. I already have email notification but sometimes I don't open my email in midnight so I need an alert ans I choose sms. I have an officemate who have a linux box and setup a url where if I visit the url it will send a txt message. Here is the sample url:<br><br>http://x.x.x.x/testserver?page=sms_sendsmsmessage&multi_recipients=+123456789&smsmessage=testing&username=nagios&NOEXPIRE<br><br>123456789 = sms contact number<br>testing = message of the sms<br><br>Now, I have setup in commands.cfg the ff:<br><br>define command{<br>        command_name   
 notify-by-txt<br>        command_line    /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICE<br>OUTPUT$\nDate: $LONGDATETIME$" |/usr/bin/links "http://x.x.x.x/testserver?page=sms_sendsmsmessage&multi_recipients=+123456789&smsmessage=$HOSTNAME&&username=nagios&NOEXPIRE &" <br>        }<br><br>Then I set my contacts.cfg<br><br>define contact{<br>        contact_name                    nagios-admin<br>        alias                           Nagios
 Admin<br>        service_notification_period     24x7<br>        host_notification_period        24x7<br>        service_notification_options    w,u,c,r<br>        host_notification_options       d,r<br>        service_notification_commands   notify-by-txt<br>        host_notification_commands      notify-by-txt<br>        pager                          
 http://x.x.x.x/testserver?page=sms_sendsmsmessage&multi_recipients=+123456789&smsmessage=testing&username=nagios&NOEXPIRE<br>        }<br><br>I see the logs in nagios the notify-by-txt but I don't receive a sms message. But when I command it via shell, I receive a sms message.<br><br>Could someone direct me to right commands in notification commands? Can I set a sample script just to test notification commands?<br><br></div><br>
      <hr size=1> <a href="http://sg.rd.yahoo.com/ph/mail/domainchoice/mail/signature/*http://mail.promotions.yahoo.com/newdomains/ph/"> Get your new Email address! </a> <br>
Grab the Email name you've always wanted before someone else does!</body></html>