SMS Server Tools 3
 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. The forum is currently read-only, but will open soon. Sun Dec 08, 2024 14:32
SMSTools3 Community » Help and support Bottom

[answered] sendsms script spawning out of control.

  This topic is locked

Page:  1

Author Post
Member
Registered:
Apr 2010
Location: selangor, Malaysia
Operating system name and version: Red Hat Enterprise Linux 5.4 64bit
Version of smsd: 3-3.1.6
Smsd installed from: sources
Name and model of a modem / phone: Wavecom Fastrack M1306B
Interface: serial

Hi,

Im running OpenNMS with sms notification (triggering sendsms on alert). Everything works well for the past month until more interfaces being added for monitoring in OpenNMS. Problem is when there's alot of alert coming in from OpenNMS and sendsms script spawning processes and then turn to sleep mode. At that moment smsd is still running but the logs are silent as if the process is in hang state.

From top command


From ps command


After when notification function in OpenNMS are turned off, the spawned script slowly died and I restarted smsd then everything works.

Config file being used.


The question is, are there any queue function or delay in sending sms from sendsms script or from the config file to handle a storm of alerts. Thanks.

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
When the mainprocess of smsd was stopped, what was told in the log file?

There are no many reasons why the mainprocess will stop. The most likely reason is that the process cannot move the file. As all permissions are checked during the startup, moving should work without problems. Since the problem is related to the high number of messages, would it be possible that the outgoing message file name is always the same? In this case the smsd could detect that the moving has failed because a file with the same name still exists (because it's re-created).

You could use loglevel = notice when resolving this issue.

insolutions wrote
The question is, are there any queue function or delay in sending sms from sendsms script or from the config file to handle a storm of alerts.

No there is not. But usually it's not required, as all possible processes can create message files as much as they want and smsd just handles them. Large number of files does not cause problems.

Are you using the original sendsms script, or is it modified somehow?

Member
Registered:
Apr 2010
Location: selangor, Malaysia
Topic owner
Im using an unmodified version of the script. I will try to set loglevel to notice and see how it goes.

In the other hand the logs seem okay with no visible error, its just it has been stucked for 2 days with no activity and thats how i assume the main process is in hang state. I will try to acquire the tail logs of it, when it is still in hang state and after I restarted the mainprocess.

And as for the permission, Im running it as root and would it have any permission problems, since the initialization in the logs doesn't spit out any error messages.

  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.