Hi,

This script is nice, but got some warnings (on undef variables)
and deprecated functions on you php code
(i'm using php 5.2.4)

* PHP Warning:  Call-time pass-by-reference has been deprecated;  If you would 
like to pass it by reference, modify the declaration of sscanf().  If you would 
like to enable call-time pass-by-reference, you can set 
allow_call_time_pass_reference to true in your INI file.   in 
/operateurs/html/gigalink/smsc-monitor/admin.php on line 306
+306 =     sscanf($box->status, "%s %dd %dh %dm %ds", &$status, &$days, 
&$hours, &$mins, &$secs);

* Undef variables
[Mon Dec 31 10:52:18 2007] [error] PHP Notice:  Undefined offset:  4 in 
/operateurs/html/gigalink/smsc-monitor/kanneladmin.php on line 368
[Mon Dec 31 10:52:18 2007] [error] PHP Notice:  Undefined offset:  1 in 
/operateurs/html/gigalink/smsc-monitor/kanneladmin.php on line 359
[Mon Dec 31 10:52:18 2007] [error] PHP Notice:  Undefined offset:  4 in 
/operateurs/html/gigalink/smsc-monitor/kanneladmin.php on line 368
[Mon Dec 31 10:52:18 2007] [error] PHP Notice:  Undefined offset:  1 in 
/operateurs/html/gigalink/smsc-monitor/kanneladmin.php on line 359
[Mon Dec 31 10:52:18 2007] [error] PHP Notice:  Undefined offset:  4 in 
/operateurs/html/gigalink/smsc-monitor/kanneladmin.php on line 368

+368 =             "\t\t\t<td".$style.">".htmlspecialchars($smsc->id.($id[4] != 
"" ? " (".$id[4].")" : ""))."</td>\n".
+359 =     else if ($id[2][1] == "0")

Vincent.

  ----- Original Message ----- 
  From: Mads N. Vestergaard - CoolSMS 
  Cc: users@kannel.org 
  Sent: Saturday, December 29, 2007 12:29 PM
  Subject: Re: Kannel monitor in PHP


  Hi Everybody,

  The Graphical status overview, now available as a download.

  Here is a sample: 

  http://gw1.coolsmsc.dk/kannel/kanneladmin.php

  Sourcecode is to find here: http://gw1.coolsmsc.dk/kannel/kanneladmin.phps

  I'll modify our alert script aswell, and put it up, as soon as it isn't to 
system specific for our needs.



        ...................................... 
        Med venlig hilsen / Best Regards 
          
        Mads N. Vestergaard 
        Teknisk ansvarlig / CTO CoolSMS 
       
        www.coolsms.com 
        Phone: +45 7026 1272 
        Fax: +45 7630 1046 
        Mobile: +45 4270 1272 

  This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error please notify the system manager. This 
message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system. If you are not the intended recipient you are 
notified that disclosing, copying, distributing or taking any action in 
reliance on the contents of this information is strictly prohibited. 



  info.ubichip skrev: 
    hi all,

    I'm using Monit to do alert when Kannel is down, but I 'ma interessed in 
your scripts, so please put them on an URL where the kannel list could download 
it. thanks in advance.

    ps : do anyone has script to handle account and cutomers, as well to make 
billing ?





----------------------------------------------------------------------------
    From: Mads N. Vestergaard - CoolSMS [mailto:[EMAIL PROTECTED] 
    Sent: vendredi 28 décembre 2007 08:49
    To: users@kannel.org
    Subject: Re: Kannel monitor in PHP


    Hi There,

    We actually have a script aswell.

    The script checks state of all connections, and if it isn't online, it will 
autoatically, tell kannel to try to re-connect, to minimize downtime, in case 
the provider, is just restarting a server or simular.

    We also have a script parsing the status.xml file, to give a graphical view 
of the situation, showing all connections, their state, the queue, submitted 
messages, etc.

    Please let me know if anyone is interested in this aswell.



          ...................................... 
          Med venlig hilsen / Best Regards 
            
          Mads N. Vestergaard 
          Teknisk ansvarlig / CTO CoolSMS 
         
          www.coolsms.com 
          Phone: +45 7026 1272 
          Fax: +45 7630 1046 
          Mobile: +45 4270 1272 

    This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error please notify the system manager. This 
message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system. If you are not the intended recipient you are 
notified that disclosing, copying, distributing or taking any action in 
reliance on the contents of this information is strictly prohibited. 



    Mike Nwaogu skrev: 
Hi Rowland,
I have a similar script, but would like to know if
there's something I could add.

Do let me have it if will.

--- Rolandow <[EMAIL PROTECTED]> wrote:

  Hi all,

To monitor our kannel connections with the SMSC's, I
wrote a little PHP 
script. When a connection is down, it can send an
e-mail, and a SMS. 
Sending SMS will be done using a clickatell account.

The script uses netstat to check the connections, so
this would only run 
on linux. It works with the PHP5 CGI, so you only
have to install the 
php5 cgi version, if your server doesn't run a
webserver.

You can configure the connections you would like to
monitor, based on IP 
and PORT number. You can also define a timeout. If
the connection is 
down for more than xx seconds, it will send you an
alert. Because in my 
experience a lot of connection restore themselves
automatically within 
half an hour.

If somebody would like to use this, I could send the
script to the list 
(is that possible/allowed?), or I could put it
somewhere to download. If 
you're interested, let me know.

Kind regards,
Roland.

    

Regards,
Mike Nwaogu
Tel: 234_802_325_6437
Eml: [EMAIL PROTECTED]


      
____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping


  


--------------------------------------------------------------------------

      Antivirus avast!: message Sortant sain. 

      Base de donnees virale (VPS) : 071228-0, 28/12/2007
      Analyse le : 28/12/2007 18:43:16
      avast! - copyright (c) 1988-2007 ALWIL Software.
       

<<coolsms_mail.jpg>>

<<image/jpeg>>

Reply via email to