[Xymon] receiving sms alerts...
    Metron 6 (six) 
    metron6 at gmail.com
       
    Fri Sep  8 16:17:14 CEST 2017
    
    
  
hello all,
i got a subscription to an SMS gateway, and the script they gave me is this:
------------
*<?php*
        *// Simple SMS send function*
        *function* sendSMS($key, $to, $message, $originator) {
                $URL = *"https:**//smscenter.gr/api/sms/send?key=
<http://smscenter.gr/api/sms/send?key=>" . $key . "&to=" . $to;*
                $URL .= *"&text="* . urlencode( $message ) . '&from=' .
urlencode( $originator );
                $fp = fopen( $URL, 'r' );
                return fread( $fp, 1024 );
        }
        *// Example of use*
        $response = sendSMS( 'myapikey', 'recipientnumber', 'My test
message', 'from' );
        echo $response;
*?>*
*-------*
*how could i implement it inside alerts.cfg in order to get sms alerts ?*
-- 
regards,
Metron 6 (six)
Metron6 at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20170908/472dc0e6/attachment.html>
    
    
More information about the Xymon
mailing list