On 5/12/2011 02:49, Marco Borsani wrote: > Command file is the same. > > Running that command like root or Nagios user manually it is ok > > In the Nagios file (does not send sms): > > command_line /usr/local/bin/sendsms 0039$CONTACTPAGER$ "Host:$HOSTALIAS$ is > $HOSTSTATE$ Type:$NOTIFICATIONTYPE$. $OUTPUT$ Date:$SHORTDATETIME$" > > In command line (running OK): > > #> /usr/local/bin/sendsms 0039$CONTACTPAGER$ "Host:$HOSTALIAS$ is > $HOSTSTATE$ > Type:$NOTIFICATIONTYPE$. $OUTPUT$ Date:$SHORTDATETIME$" > > Marco
That's very similar to what I have: command_line /usr/local/bin/sendsms $CONTACTPAGER$ "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" However, I have the country code (which smstools3 requires) defined in $CONTACTPAGER$. I'm betting this is something with escaping. Either check the Nagios debug log to see the expanded macro then paste it into a Nagios user shell or update $CONTACTPAGER$ to include the country code. ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ Nagios-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
