<div>Hi,</div>
<div><br>I have used smstools for send notification in nagios by SMS.</div>
<div>And I have defined related commands  as:</div>
<div># 'notify-by-sms' command definition<br>define command{<br>        command_name    notify-by-sms<br>        command_line    /usr/bin/printf "%b" "$NOTIFICATIONTYPE$: $HOSTADDRESS$ $HOSTALIAS$:$SERVICEDESC$ is $SERVICESTATE$" | /usr/local/bin/sendsms $CONTACTPAGER$ 
<br>        }<br><br># notify-by-SMS command definition<br>define command{<br>        command_name    host-notify-by-sms<br>        command_line    /usr/bin/printf "%b" "Host '$HOSTALIAS$' is $HOSTSTATE$\nInfo: $OUTPUT$\nTime: $DATETIME$" | /usr/local/bin/sendsms $CONTACTPAGER$ 
<br>        }<br> </div>
<div> </div>
<div>Maybe I will be force that change /var/spool/sms directory permission. Becuase I don't receive any notifincation by sms from nagios.</div>
<div>Now it is:</div>
<div>drwxr-xr-x   10 root     root         4096 Mar 12 13:15 sms</div>
<div> </div>
<div>Would you please help me?</div>
<div>What is correct permission for /var/spool/sms directory?</div>
<div> </div>
<div>Best regards,<br><span>Raoufnezhad.<br></span></div><br>