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. Tue Apr 23, 2024 18:43
SMSTools3 Community » Help and support Bottom

[answered] Regarding status-monitor

  This topic is locked

Page:  1

Author Post
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 .. :D

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 8)


« Last edit by WolfieDK on Mon Feb 14, 2011 11:44, 160 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

Member
Registered:
May 2009
Location: Hinnerup, Denmark
Topic owner
Hi Keke 8)

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, 160 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 :D

Best Regards
WolfieDK

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


  This topic is locked

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.