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!