Author |
Post |
|
#1 Wed Aug 17, 2011 12:42, 160 months ago.
|
Member
Registered: Aug 2011
Location: douala, Cameroon
|
Hi! here's what I wrote and it does not work: define command { command_name notify-service-by-sms command_line / usr / local / bin / printf "% b" "Type: $NOTIFICATIONTYPE $ \ n Service: $SERVICEDESC $ \ n Host: $ HOSTNAME $ \ n State: $SERVICESTATE $ \ n Info:$SERVICEOUTPUT $ \ n Date $ SHORTDATETIME $\n " | / usr / local / bin /SendSMS $ CONTACTPAGER$ } What changed?
|
|
#2 Wed Aug 17, 2011 12:56, 160 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
It does not work because sendsms does not read standard input. You should pass SMS text as an argument. I use this kind of definitions:
|
|
#3 Wed Aug 17, 2011 15:41, 160 months ago.
|
Member
Registered: Aug 2011
Location: douala, Cameroon
Topic owner
|
thank you it work!
|