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. Tue Jul 01, 2025 02:05
SMSTools3 Community » Search Bottom

Page:  1

Keywords:
Mode: All keywords (AND)
video_dude: Description: Multiple Uses - Primary Hardware Failure Alerts - Secondary - Public Radio Station Usage: Public / Private Number of users: 1 Deployment: 1 Volume of 160-character SMs per day: ~100 Thanks for an amazing tool. I have set up keyword for various Radio Stations and their Hosts - when someone messages with a keyword of the host name, it emails their inbox. We also have a TV Station, so use it to alert on silence, frozen vision - any hardware issues through SNMP and Cacti which monitors IP network performance. Currently only have one modem attached, but depending on the scaling and demand I might need to move the Radio service to a second modem - but at the moment its not too urgent. Running on Debian, with a MySQL backend logging all in and out bound messages, have an Email to SMS gateway built, the hosts can reply to the sender by clicking reply in their email client.
video_dude: Resolved...
video_dude: Hello, I was wondering if anyone has written a set of SNMP monitoring tools for SMSTools? I am currently monitoring the process, and cacti with thold alerts if the smsd service stops running, but I was thinking perhaps Cacti graphs where you could graph number of inbound, outbound and failed messages as well as calls.. Different colour lines on a graph for example. Not sure if you would do it for the whole service, or could select individual modems - but both might be cool as well. I am not totally sure where to start, and I am sorry if this is in the incorrect forum area. I was thinking of parsing the logs, but it got a bit too hard when multiple part messages came through and tracking those. I was thinking I could do something with /var/log/smstools/smsd_stats/status but that clears out on application restart. Any thoughts or suggestions?
video_dude: Hello, I am not new to SMSTools - in fact have been running it on and off for about 5/7 years - but only as one user. So first off thank you to everyone involved, it's an amazing product. I am now in a position to ask for some script and SMS tools help. What I am trying to do , is write a bash script - or perl or whatever, that will run in event handler.. It kinda works, but I am struggling with a few things.. Here is the script: #!/bin/bash CHAR=`makepasswd --char=10` FROM=`formail -zx From: < $2 | sed 's/"//g'` KEYWORD=`sed -e '1,/^$/ d' -e 's/ .*//' < $2` KEYWORDCASE=`echo "$KEYWORD" | tr '[:upper:]' '[:lower:]'` EMAIL=`mysql -s -D SMS_Database -u keywordquery -p -e "select Email from sms_keywords where Keyword = '$KEYWORDCASE'";` if [ "$EMAIL" = '' ]; then EMAIL="user@example.com" PROCESSED=`sed -e '1,/^$/ d' < $2` else PROCESSED=`sed -e '1,/^$/ d' -e 's/^[^ ][^ ]* //' < $2` fi if [ "$1" = "RECEIVED" ]; then echo "$PROCESSED" > /tmp/sms-"$CHAR".txt mail "$EMAIL" -a "From: "$FROM"@messages.example.com" -s "SMS from "$FROM"" < /tmp/sms-"$CHAR".txt rm /tmp/sms-"$CHAR".txt fi Firstly whats working - if the sms is only one line it works brilliantly, the keyword lookup with associated email address sends the incoming message to the email address registered with that keyword in a database. If there is no valid keyword - then email the message to a catchall email address. What's not working or more importantly what I am trying to achieve, if there is a valid 'keyword' only look it up as the first word on the first line of the text message. Currently if the text message is multiple lines, then each first word on each line becomes part of the keyword which it can't find in the database. Then remove the 'keyword' from the message before its emailed off to the registered email address. If anyone has any experience with sed, or could suggest a better way, that would be amazing. Thanks so much in advance, and hope to hear from some of you soon.

Page:  1

SMSTools3 Community » Search Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.