SMS Server Tools 3
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. The forum is currently read-only, but will open soon. Wed Nov 06, 2024 02:14
SMSTools3 Community » Help and support Bottom

[answered] How to use the SendSMS in the definition of an order for nagios?

Login and Post Reply

Page:  1

Author Post
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? :oops:

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:



Member
Registered:
Aug 2011
Location: douala, Cameroon
Topic owner
thank you it work! :lol:

Login and Post Reply

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.