title: nagios send sms notification by twilio
body: <p>I want nagios to send sms message by twilio to more than one [person].</p>
  
  <p>How can I do this?</p>
  
  <p>I have used this code but it sends the sms to only one phone number:</p>
  
  <pre><code>define command {
          command_name    notify-by-page
          command_line    curl --data-urlencode "From=YOURTWILIONUMBER" --data-urlencode "To=YOURCELL" --data-urlencode "Body=[Nagios] $NOTIFICATIONTYPE$ $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$" https://SID:TOKEN@api.twilio.com/2010-04-01/Accounts/SID/SMS/Messages &gt;&gt; /tmp/sms
  }
  define command {
          command_name    host-notify-by-page
          command_line    curl --data-urlencode "From=YOURTWILIONUMBER" --data-urlencode "To=YOURCELL" --data-urlencode "Body=[Nagios] $HOSTSTATE$ alert for $HOSTNAME$" https://SID:TOKEN@api.twilio.com/2010-04-01/Accounts/SID/SMS/Messages &gt;&gt; /tmp/sms
  }
  </code></pre>