Author |
Post |
|
#1 Wed Jul 08, 2015 10:32, 116 months ago.
|
Member
Registered: Jul 2015
Location: Perm, Russian Federation
|
OS: CentOS 6.5 SMStools v.3.1.15, installed from sources Modem: Siemens MC35i, Serial
Hello. I have a Nagios server. For sms notifications smstools 3.1.15 is used. Everything worked fine until last couple of weeks. Now messages are sent with huge delays - up to 30-40 minutes and I can't figure out why... Here's what I see in smsd.log:
2015-07-08 15:17:48,7, smsd: Took 1.3 seconds to get a file /var/spool/sms/outgoing/send_X1UuSJ, lost 0 times, 1 SMS files and 0 LOCK files seen. 2015-07-08 15:19:01,5, smsd: Moved file /var/spool/sms/outgoing/send_X1UuSJ to /var/spool/sms/checked 2015-07-08 15:19:11,5, GSM1: Took 9.1 seconds to get a file /var/spool/sms/checked/send_X1UuSJ, lost 0 times, 1 SMS files and 0 LOCK files seen. 2015-07-08 15:19:11,6, GSM1: I have to send 1 short message for /var/spool/sms/checked/send_X1UuSJ 2015-07-08 15:19:11,6, GSM1: Sending SMS from to 79128894597
So, the delay in this case is about 2-3 minutes. Sometimes I see lines like "Took 70 seconds to get a file..." and even more. Tried to reinstall smstools completely, initialize modem - nothing worked. Tried also gnokii - messages were sent immediately, but I still need smstools because it can send multiple messages from a queue.
Can somebody please help?! Thanks in advance.
Regards, Peter.
|
|
#2 Wed Jan 04, 2017 21:40, 98 months ago.
|
Member
Registered: Sep 2016
Location: Harrogate, United Kingdom
|
Raspbian OS Huwei E220 Modem
Have this set up and initially sent 2500 messages where files moved from outgoing to the modem queue with little delay.
Now got to 3700 messages and there is a delay in moving files form outgoing of up to 40 seconds and the modem queue is empty or containing 2-4 files maximum.
smsd: Took 38.3 seconds to get a file /var/spool/sms/outgoing/send_tr5AF5, lost 0 times, 34756 SMS files and 0 LOCK file
With another 34756 files to go I could really do with finding the solution to this particular issue. Anyone?
|
|
#3 Thu Jan 05, 2017 09:50, 98 months ago.
|
Member
Registered: Sep 2016
Location: Harrogate, United Kingdom
|
I have solved this:
I have added the following lines to my smsd.conf file and now messages are flying out without delay. All the hanging moving files from outgoing to the queue are now absent completely
spool_directory_order = yes #Default value: no. #Available from version >= 3.1.9. With this setting files are handled in the order they are on disk. This disables priorizing and also the age of files are not checked.
delaytime_mainprocess = 1 #Default value: not in use. #Available after >= 3.1.4. If this value is not set, delaytime setting is used in the main process. With this setting outgoing messages can be checked more frequently than incoming messages.
delaytime = 5 #Default value: 10. #Smsd sleep so many seconds when it has nothing to do.
|
|
#4 Thu Jan 05, 2017 10:03, 98 months ago.
|
Member
Registered: Sep 2016
Location: Harrogate, United Kingdom
|
These changes also reduce the processor load from 90% to 50%! Before these alterations the queue directory was either empty or had 2-3 messages waiting, now it has 4200 pending sending and these are going out at the rate of one every 6-8 seconds, rather than 40+ seconds « Last edit by steveharriss on Thu Jan 05, 2017 10:06, 98 months ago. »
|