Koozali.org: home of the SME Server

Remote system monitoring and notification

Offline groutley

  • *****
  • 213
  • +0/-0
    • http://www.routley.homeip.net
Remote system monitoring and notification
« on: March 12, 2008, 11:18:55 AM »
Hi Selintra,
  back when you released a version which announced support of system monitoring and notification functions,
I enabled it at the time,  both SMS and email enabled.
Now, sometime down the track, knowing I lose my VSP trunks occasionally I have realized I have never received a notification.
SMS I can understand..  as I had and still have no idea about the SMSC path.
From what I read this is unsupported down-under so understandably the blank field would suggest I should disable SMS notification.
That said  I would love to see if it would be possible to support the likes of an SMS API as per MyNetFone..
https://www.mynetfone.com.au/residential-voip-solutions/features/mytext-sms/mytext-sms-api/

The likes of this method would seem so much simpler than a PSTN SMS and from a VOIP server (asterisk) perspective more in line with its function ! ;-)

Now for the email notification, I have set Monitor on some of my key trunks / VSP definitions
and sent the send to email address on the globals page, is there something I am missing ?

Glen

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Remote system monitoring and notification
« Reply #1 on: March 12, 2008, 07:33:44 PM »
Quote
is there something I am missing ?

Don;t know,  It gets kicked off by a cron job which runs once an hour.  Look in /etc/cron.hourly. There should be a job in there called selintra.  It executes a job in /etc/selintra called seldiag.cgi.

Make sure they're all executable.

seldiag doesn't do anything special, it just trundles through the SARK database and checks each monitored line by sending a show peers command into asterisk.   If it gets an unreachable it flips an e-mail to the email id(s) specified in "Email Alert Addresses" (not the supervisor email address).

If you want to write your own sms interface for the carrier you mention then we can figure out some sort of interface for you where we can leave a message (or pass one in) and execute your sms routine from seldiag. 

SMSCs are PTT Carrier numbers which will accept SMS calls and relay them on. BT's SMSC is reached by dialling 17094009 in the UK.  They usually charge around 10 pence to ship an SMS message but the cool thing about the BT service is that you can send an SMS to a regular landline number and the BT software will automatically speak the message if it detects that the receiving phone can't handle SMS.  Cool!


Best

J