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 May 19, 2024 20:45
SMSTools3 Community » Help and support Bottom

[answered] Count failed messages and success messages

  This topic is locked

Page:  1

Author Post
Member
Registered:
Oct 2009
Location: santiago, Dominican Republic
Hi!
I have working my server so fine but now I wanna know how to know the qyt messages that i sent and the failed.
In the folder failed I see the SMS failed but it desappear so fast. I need to count both sms.
How can I do that? I have run_command any 2 min to check my balance it works so fine sending the info to file but i want to send to DB. Cant I?


Debian 2.6:
3.5:
sources

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
macaruchi wrote
I have working my server so fine but now I wanna know how to know the qyt messages that i sent and the failed.

Enable statistics functionality. In the src directory, edit Makefile (comment out CFLAGS += -D NOSTATS) and recompile with make clean smsd. If you do not have libmm available, install it first (sudo apt-get install libmm-dev).

After this you will have counter as described here. You will also have a status file which contains counters for each modem. See the version history for more details (search status_interval).

macaruchi wrote
In the folder failed I see the SMS failed but it desappear so fast. I need to count both sms.
How can I do that?

Smsd does not delete files from the failed folder. If your files disappear, you have some external process which delete files.

macaruchi wrote
I have run_command any 2 min to check my balance it works so fine sending the info to file but i want to send to DB. Cant I?

You could create a script which will check the file and store data into the DB. Use cron to run this script for example on every two minutes.

macaruchi wrote
3.5:

You mean 3.1.5? In that case, please upgrade to the version 3.1.6 which has some bug fixes.

Member
Registered:
Oct 2009
Location: santiago, Dominican Republic
Topic owner
I compiled again using lubmm. BUt I dont have any cron or process to delete the failed sms. Another problem the server send few sms without notice. I mean , I sent 1 sms and it sent 5 sms.

Member
Registered:
Oct 2009
Location: santiago, Dominican Republic
Topic owner
How can I activate the status file if running the smsd as daemon to take the informatin ??

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
macaruchi wrote
I compiled again using lubmm. BUt I dont have any cron or process to delete the failed sms.

I understood that the files from the failed directory are disappearing fast. You can see them, but after a while they are gone. Is this what is happening?

You could show your current setup here. Show the file smsd.conf and if any eventhandler, checkhandler and / or alarmhandler is in use, show those scripts too.

macaruchi wrote
Another problem the server send few sms without notice. I mean , I sent 1 sms and it sent 5 sms.

Probably there is an incorrect answer from the modem, and therefore smsd will try again, even when SMS was successfully sent but smsd did not get that information. However, smsd should try only twice, not four times. There is a fixed value 2 for retries, so something abnormal is happening in your system.

In the global part of smsd.conf, define loglevel = 7. Restart smsd and next time when too many SMS is sent without a notice, show the part of a log here.

macaruchi wrote
How can I activate the status file if running the smsd as daemon to take the informatin ??

Running as a daemon does not make any difference. You should create a directory /var/spool/sms/stats and make it writable for smsd. In the global part of smsd.conf, define:

stats = /var/spool/sms/stats
stats_interval = 0

After restarting smsd, that directory should contain files like GSM1.counter and status.

Member
Registered:
Oct 2009
Location: santiago, Dominican Republic
Topic owner
Hi!
I am running my server with stattics. I get this:
Status: 10-01-20 22:44:50, i---------------------------------------------------------------
GSM0: 10-01-20 22:44:47, Idle, 9, 0, 0, ssi: -51 dBm, ber: < 0.2 %

This counter can be reset to zero?

I am trying to send this info to the database

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
You have a file /var/spool/sms/stats/GSM0.counter which contains number of messages sent using the modem GSM0. This file is updated realtime, and when smsd starts, the value is taken as an initial value.

The file /var/spool/sms/stats/status contains three counters: sent, failed and received. The value sent is the same as the value in GSM0.counter. Failed and received counters will start from zero when smsd starts. These two values are not stored, and after smsd is restarted, they will count from zero again.

If you want to clear all values, stop the smsd, remove the file GSM0.counter and start the smsd.

Have you found the reason why failed files were disappearing, or is this issue obsolete now?

Does your system still send "few sms without notice"?

Member
Registered:
Oct 2009
Location: santiago, Dominican Republic
Topic owner
Thkss, for your soon answer.

Quote
Have you found the reason why failed files were disappearing, or is this issue obsolete now?

Yes, other programmer

Quote
Does your system still send "few sms without notice"?

Not yet. I am monitoring this using the status file and GSM.counter

  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.