Author |
Post |
|
#1 Mon Feb 14, 2011 11:42, 169 months ago.
|
Member
Registered: May 2009
Location: Hinnerup, Denmark
|
Operating system name and version: W2k8 and Cygwin Version of smsd: 3.1.14 Smsd installed from: sources Name and model of a modem / phone: Siemens MC35 Interface: Serial using RS232-to-IP Server Hi .. Is this the right place for questions about a topich in the sms server tools manual? I have bought the sms3 server tools manual, but I cant get the Hidden private text. script to work properly. I have created the file, but when I put this Hidden private text. into /etc/init.d/sms3 file, then sms tools wont start up. Error output: Can you help me with this ? Best Regards WolfieDK « Last edit by WolfieDK on Mon Feb 14, 2011 11:44, 169 months ago. »
|
|
#2 Mon Feb 14, 2011 12:14, 169 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
The book SMS Applications is about the version 2.x and that feature does not work with the init.d script of version 3 without some modifications. Instead of changing the DAEMON= setting, a call "$DAEMON $ARGS" could be modified.
But in the version 3.x there is much better monitoring available. As you have compiled smsd with statistics enabled, try the following global settings:
stats = /var/spool/sms/stats stats_interval = 0 stats_no_zeroes = yes
Create that directory, and after restarting smsd normally, without any changes in the sms3 script, try the following command:
while true; do clear; cat /var/spool/sms/stats/status; sleep 1; done
|
|
#3 Mon Feb 14, 2011 12:49, 169 months ago.
|
Member
Registered: May 2009
Location: Hinnerup, Denmark
Topic owner
|
Hi Keke Thanks alot, it works, but it shows some wired text It shows "ber: ??" and "bash: clear: command not found" <- Is this because im using Cygwin? My gole is to make the status visible using a website. I have the code using the manual for v.2, but not your v.3. Is it possible to show the status as a website and do you have any example? Best Regards WolfieDK « Last edit by WolfieDK on Mon Feb 14, 2011 12:50, 169 months ago. »
|
|
#4 Mon Feb 14, 2011 12:57, 169 months ago.
|
Member
Registered: May 2009
Location: Hinnerup, Denmark
Topic owner
|
Hi again: I have fixed this error now. Quote "bash: clear: command not found"
Using this link: Quote https://packetprotector.org/forum/viewtopic.php?id=3940
Thanks Best Regards WolfieDK
|
|
#5 Mon Feb 14, 2011 13:18, 169 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
If the modem does not support Bit Error Rate, use the modem setting signal_quality_ber_ignore = yes to disable it. This is how I show status in the web page: // ...
$current_status = file_get_contents("/var/spool/sms/stats/status");
// ...
echo "<pre>\n"; echo "<b>Current status:</b>\n"; echo $current_status; echo "--\n"; echo "</pre>\n";
// ... 'php' Syntax Highlight powered by GeSHi
|