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. Fri Apr 19, 2024 17:30
SMSTools3 Community » Help and support Bottom

[answered] OpenNMS route SMS via SMSTools3

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Aug 2011
Location: Singapore, Singapore
Operating system name and version: Win XP
Version of smsd: 3.1.14
Smsd installed from: sources
Name and model of a modem / phone: Teltonika
Interface: USB

Hi,

SMSTools3 works perfectly well when send SMS via cygwin, but i am unable to route the SMS from OpenNMS network monitoring tool to send out the SMS.

Below is the config file,

<-------------------------------------------------------------
<command binary="true">
<name>smsgw</name>
<execute>C:\cygwin\bin\bash --login</execute>
<comment>Class for sending GSM SMS notifications</comment>
<argument streamed="false">
<switch>/usr/local/bin/sendsms</switch>
</argument>
<argument streamed="false">
<switch>-np</switch>
</argument>
<argument streamed="false">
<switch>-tm</switch>
</argument>
</command>
---------------------------------------------------------------->

Error Notification:

2011-08-11 17:57:47,728 ERROR [Thread-51] CommandExecutor: Error executing command-line binary: C:\cygwin\bin\bash --login
java.io.IOException: Cannot run program "C:\cygwin\bin\bash --login": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
at org.opennms.netmgt.notifd.CommandExecutor.execute(CommandExecutor.java:118)
at org.opennms.netmgt.notifd.NotificationTask.run(NotificationTask.java:282)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 4 more
--------------------------------------------------------------------

Please advice.
Thank you!

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
I do not know about OpenNMS, but likely the command is incorrect as the CommandExecutor gives an error. With a quick googling for cygwin Class for sending GSM SMS notifications, this was found:

http://opennms.530661.n2.nabble.com/SMS-Alerts-td5764524.html

At least it seems like a working definition.

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.