SMS Server Tools 3

Home

Status monitor

This function is disabled by default. You need to install the OSSP mm Shared Memory Library, also called mm or libmm. Then you need to enable statistics in src/Makefile and recompile the source code.

The status monitor is a text that smsd writes every second to stdout. This is normally your console but you can redirect it to any device or file.

The status monitor shows you what your modems are actually doing. Each character represents one modem. The first one is the first modem in your config file.

The status may be:

s = sending
r = receiving (or checking received SM)
i = idle
b = blocked (after multiple errors)
- = not configured

Example:

iiiriisssisss---
iiiriisssisss---
rriiiiissisis---
rriiiiiiiiiii---
iiiiiiiiiiiir---

Run smsd with the option -s if you want the status monitor. This works only if you run the program in a shell window. Do not use -s if you run the program in background.

Statistics file

This function is disabled by default. You need to install the OSSP mm Shared Memory Library, also called mm or libmm. Then you need to enable this feature in src/Makefile and recompile the source code.

Smsd collects statisic data and writes them into files. The program generates one file every hour or whatever interval you configured. The filenames are simple timestamps in the format YYMMDD.hhmmss.

The statistic files contain two parts, delimited by an empty line. The first part has global counters and the second part has individual counters for each modem.

Global statistic data:

Statistic data for each modem:

Example file with name "010811.150030" , taken from a system with 2 modems:

runtime,rejected
1200,1
 
name,succeeded,failed,received,multiple_failed,usage_s,usage_r
GSM1,20,0,1,0,80,0
GSM2,5,0,1,0,40,900

In the future versions, if the file format is changed, new counters are added to the right end.

The book describes, how to add a status monitor when the program runs in background and how to create a beautiful coloured statusmonitor that you can watch in a webbrowser.

The book is about the version 2.x and written, maintained and owned by Stefan Frings.