ISPadmin system supports sending and receiving of SMS messages through a cell phone, connected to a server or through a SMS gateway (hardware or SMPP). Sending of SMS messages can be used in several ways. SMS gateway can be used for sending notifications from Nagios, concerning the device failure, for sending messages to technicians from the Scheduling module, to send reminders to clients for unpaid invoices, and for automatic sending of SMS messages to hardware SMS re-setters in case of a device problem.
In Other Free SMS, you can also send your own SMS messages to any phone numbers, and it is also possible to set the system so that your clients would be able to send a limited number of SMS messages from Client portal, which can be considered as an advantage over the competition. From Other Bulk SMS, you can also send bulk SMS´ to a larger number of clients (e.g. outage notifications) or you can send information SMS to a particular client from Client card.
It is possible to perform a configuration individually according to the below described instructions or you can contact our technical support and have the settings done remotely. In case of a remote installation of SMS gateway by our technical support, you only need to connect a GSM device to a server via serial port (COM1, COM2, USB, UTP) and we will take care of the rest.
The cheapest option is to use older NOKIA and SIEMENS models, which can still be purchased in second-hand shops. These devices are connected through a respective data cable to serial port (COM1, COM2 or USB) of the ISPadmin server. However, when using second-hand mobile phones it may happen that device is faulty and its initiation fails, or the device will work unreliably. For this reason, we recommend to purchase a device directly made for this purpose, and with manufacturer guarantee. We have very good experience with the products of Cinterion, which are based on the Siemens module. You can also use Ateus 2N EasyGate SMS gateway (module MC55i). Alternatively, you may use a different mobile phone, which is listed on gnokii application page as a supported device. Theoretically, it should be possible to connect any device supporting AT commands. Nevertheless, in case of using an untested type of phone, it is not possible to guarantee that this device communicates with the server correctly.
We continue testing other mobile phones and SMS gateways via USB. Due to the lack of appropriate facilities this is a longer-term quest. Presently, we support both the SMS gateway connectivity via COM, and USB interface. USB support is already included in the core in newer installations of ISPadmin based on Debian 6 Squeeze. Using a mobile phone via USB cable is not recommended for older versions of Debian due to frequent problems with USB cable linux drivers.
If you wish to use SMPP protocol for your SMS gateway, we recommend 2N VoiceBlue models. The access type must be set to SMPP (SMSC).
In Settings System Settings General, you have to fill in the values of the following parameters:
- sms_notify = 3
- sms_smpp_ip_address
- sms_smpp_login
- sms_smpp_password
- sms_smpp_port - Fill in port 2775, if you do not use another one or if you do not know which one you use.
- sms_smpp_sender - sender´s identifier
Furthermore, check whether you have this line in /etc/inittab:
pp:23:respawn:/usr/local/script/ispadmin/smpp_manager.pl # SMPP Manager
If there is no such line or if it is commented out (#), it is necessary to add it there or uncomment it, save the file and launch the command init q in the command-line interface.
SMPP after the # symbol must be written in capital letters.
Some SMPP-rendering gateways have no interface for sending feedback and they terminate the connection without giving a reason. In such cases, you may add parameters to the triggering script in /etc/inittab trying a combination of these parameters: querysm or readsms. To restart the gateway, run telinit q.
Now you can skip the 2 following paragraphs and continue with System settings for SMS messages.
We recommend: Cinterion (SIEMENS MC35i, MC52i, MC55i, TC35i Terminal)
- Tailor-made device
- Built on verified SIEMENS modules
- Supplied with RS232 connection cable + option to purchase USB reduction (not tested)
- Product manual
- Authorized distribution (questions, support, claims)
- Low purchase cost
Tested models | Not working |
NOKIA 3310, 5110, 6010, 6210, 6230i (DKU2, CA-53), 6310 | NOKIA E51 (MiniUSB) |
SIEMENS MC35, MC39i, TC35i, MC75i, ES75 | |
Cinterion MC35i, MC52i, MC55i, TC35i Terminal, Cinterion TC65i | |
GSM 2N Ateus-EasyGate with SIEMENS MC55i module | |
WM Cinterion EHS5T-E Rel.3 (USB connection, internal memory type for incoming SMS, parameter -b SM: */4 * * * * root killall smsd; sleep 5; /usr/sbin/smsd -u ispadmin -p database_password -c localhost -d ispadmin -m mysql -b SM gnokii parameters: port = /dev/ttyACM0, model = AT, connection = serial |
|
WM Cinterion BGS5T (USB or RS-232 connection, internal memory type for incoming SMS, parameter -b SM: */4 * * * * root killall smsd; sleep 5; /usr/sbin/smsd -u ispadmin -p database_password -c localhost -d ispadmin -m mysql -b SM gnokii parameters: port = /dev/ttyACM0 (USB) or /dev/ttyS0 (RS232), serial_baudrate = 115200 # when connected over ttyS0, speed according to the settings in BIOSu, model = AT, connection = serial |
After the connection of a GSM device via a relevant cable to the server, it is necessary to have the access to the server command line, either locally or remotely via SSH. After logging you will perform adjustments of two configuration files and verify the settings functionality. Lastly, enable SMS messages in ISPadmin, and you can perform other related settings. For more see the below listed settings of SMS messages in the system.
Gnokii application ensures communication with mobile phone. The configuration file is located in /etc/gnokiirc. To enable communication between the server and SMS gateway, use already used configuration files or adjust this configuration file manually according to specific settings. In case you run ISPadmin in Vmware you have to map COM port.
Option A - Downloading configuration file
You have to copy gnokii app template configuration files for respective models of GSM devices into /etc/. If your phone is correctly connected it should respond to gnokii ---identify command. If not, it is very likely that the phone is connected via gnokii unsupported cable, or the COM port might be faulty. Make sure it is not disabled in BIOS.
Use the following command to simply download configuration file, and just replace the URL to required file:
Example of correct listing for Cinterion MC35i SMS gateway: GNOKII Version 0.6.26 |
Example of correct listing for NOKIA 5110 phone: GNOKII Version 0.6.26 |
If the identification was carried out correctly, you can send an sms message from a command line:
echo "text of test sms" | gnokii --sendsms "your phone number”
Option B - Manual editing of configuration file
If the device does not communicate, you can perform a manual adjustment of configuration file of gnokii application. While modifying /etc/gnokiirc, you have to define a few parameters needed for a correct communication with GSM device:
pico -w /etc/gnokiirc
port |
model model = 5110 NOKIA Models model = AT SIEMENS and others |
connection connection = serial Alternatively, modify if you use different connection. |
serial_baudrate serial_baudrate = 19200 Serial port speed. You will need to set different speed for some phones: 9600, 19200, 38400, 57600, 115200. |
debug debug=on Debugging information is displayed on screen. Enable only when troubleshooting. |
Save the configuration file. If the following command is used, the phone, if properly configured, will respond:
gnokii --identify
Examples of correct listings - see above. In case of failure the server does not communicate correctly with the phone. The error may be in the device itself, faulty or unsupported data cable, or in damaged COM / USB port.
Test the functionality by sending an SMS from command line:
echo "test SMS text" | gnokii --sendsms "phone number”
Service communicating with ISPadmin database. So if the SMS gateway already sends messages from the command line, you can proceed to smsd service activation. First, write down database password with this command:
cat /data/support/ispadmin/config/config.php | grep DBPASS
Then display a file which enables the service to start and search the following line:
pico -w /etc/inittab
#sm:3:respawn:/usr/sbin/smsd -u ispadmin -p DBPASS -c localhost -d ispadmin -m mysql
Uncomment this line and modify runlevel number to 2. Then fill in system database password instead of DBPASS.
Note: Only SMS sending works when using SIEMENS SMS gateway with previously mentioned settings. To enable reception of SMS, add -b MT parameter at the end of the line. This represents internal memory type of Siemens phones. Tested for SIEMENS ES75, MC75i a TC35i models. -b ME memory type must be used for MC39i model. Add -b IN parameter at the end of the line for NOKIA 6310. Again, it is specification of internal memory type for SMS´.
When configuration file is modified apply changes into the system using the following command:
telinit q
Debian 6 Squeeze and newer
If you are using Debian 6 Squeeze and newer, inittab doesn´t work and you have to comment it (/etc/inittab row sm:3:respawn:/usr/sbin/smsd ..). Add the line below into /etc/crontab in a modified way.
Then restart planner by /etc/init.d/cron restart.
nano /etc/crontab
*/4 * * * * root killall smsd; sleep 5; /usr/sbin/smsd -u ispadmin -p database_password -c localhost -d ispadmin -m mysql -b MT
Make sure if the application is actually running in the system:
ps ax | grep smsd
If smsd is running and locking is correctly on in configuration file, SMS can no longer be sent from command line, but from ISPadmin web interface only.
Verify sending and receiving of SMS messages in the administration interface. Follow the instructions in the following paragraph.
If the above mentioned works, proceed to the setting of ISPadmin. The last step, which you need to make before a proper operation, is entering some information and creating groups, needed for proper sending of SMS messages. Log into the system and set the variables for displaying menus and buttons concerning SMS messages. Do the set up in Settings System Settings General, ID sms_notify = 1 for hardware solution or 3 for SMPP.
An SMS notification to network administrators in case of unavailability of routers and network devices. In case of a total network failure the e-mail notification may not be fully functional, therefore it is advisable to have at your disposal a different way of reporting outages, independent from your network or the Internet.
In case of local outage only it is not always necessary to notify the chief administrator, but you can divide the network into certain parts.
First, define SMS templates in Settings Code lists Nagios Templates. You may need to use variables while creating templates. These are: IP, host name etc. In SMS section, one template is always marked as default - used as default template for sending, if no other template is defined.
Add new group for Nagios in Settings Code lists Nagios Contacts, + Add new group. You can name it after location or responsible technician. Select SMS notification type and assign a template.
Then enter phone numbers for the created group. Click on Telephone numbers to open a pane for entering new group contacts. Fill in telephone numbers and names of people to be notified on outages.
Finally, edit relevant routers, which you want to be covered by the outage reporting, and assign this newly created group to the Report outages settings. All network devices connected to this router will be included automatically. If you want to exclude them, you must do so separately for each one of them. This way you can spread the supervision of the entire network among more technicians.
In router heading, you may define Additional Contact for Nagios notification if notification group is SMS. It is an option to set a special telephone number, to which an SMS will be sent in case of an outage. In this case, SMS will be sent to contacts specified for the notification group + Additional Contact. It is a telephone number, which is represented by e.g. a HW re-setter, so in case of an outage a precisely defined SMS will be sent to this contact thus re-setting a device, for instance.
It is recommended to use the Report outages functionality only for backbone, or otherwise important connections, routers and devices. In case that you include even client routers to this settings, you might be informed very often even about minor insignificant outages of clients (for instance if a client switches off his router in order to "save" electricity). So, for client routers it is more suitable to choose just a notification via email.
Outage notifications will be sent just for the first outage and for the first subsequent case of availability. Thus you won´t be overloaded with SMS messages during entire outage period. The device is considered unavailable for responses bigger than 500ms, which already indicates possible problems on the route.
- Use Client card to send individual SMS to client (Send SMS).
- You can display all outgoing SMS´ in Statistics History, System / Messages / SMS / SMS for clients. Also, you can display them in Client card / History.
- You can send bulk SMS from Other Bulk SMS, thus informing clients on planned outages.
Remember, SMS messages are not appropriate for conveying contractual, or sensitive information. Use email instead. SMS messages, however, are suitable for informing users about unavailability or suspension of a service, planned outage, promotions and so on.
System during its running records various events, which you can browse in History - Statistics History, System / Messages / SMS / SMS for clients. In most cases, there will be delivery reports of sent messages or various notifications from the mobile operator. Incoming messages are sorted from the newest. If an SMS is received from a number of a client, the telephone number is replaced by his name, which you can click on to display Client card. Also, you can display SMS messages in Client card / History.
If you wish to set notifications about incoming SMS messages directly to your email, fill it into sms_notify_inbox_mail in Settings System Settings General.. You can enter numerous email addresses by separating them by a comma / semicolon. For cancelling email notifications, replace the email value with 0.
You can display incoming SMS´s in Dashboard, too.
It is recommended to turn off the delivery reports, in case you will be sending regular bulk SMS´s, thus creating a big amount of delivery reports. A lot of ISPs´ therefore deactivate this function after initial testing.
Nowadays, text messages are delivered almost in 100% of all cases and are thrown away after three or more days, when the target phone is switched off or unavailable. As a result we can say that the text message can always be considered as delivered and the delivery report has just an informative meaning. Nevertheless, it cannot guarantee in any case the reading of a particular communication itself.
You may set up limitations for sending bulk SMS messages. In Settings Syst. settings General, ID sms_minute_limitation, enter the maximum number of SMS messages that may be sent within a minute. In practice, the system monitors the number of SMS messages sent within a second. The number of SMS messages sent within any second can never exceed 1/60 of the set limit value. This function is especially important in the case of the SMPP protocol.