SMS Server Tools 3
This site is hosted by Kekekasvi.com
 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. Please login or register. Sun Mar 07, 2021 18:24
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.