Author |
Post |
|
#1 Mon Apr 12, 2010 09:11, 178 months ago.
|
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.
|
|
#2 Mon Apr 12, 2010 20:28, 178 months ago.
|
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?
|
|
#3 Tue Apr 13, 2010 01:55, 178 months ago.
|
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.
|