[PATCH] php kannel-monitor Re: sms-rate-refresh feature

Vincent CHAVANIS <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Attach patch for contrib/kannel-monitor/index.php script.
Also adding the version and build infos.

attached file to preview the changes.

Vincent.


Alexander Malysh a écrit :
> Hi,
> 
> no objections -> commited to cvs.
> 
> Alexander Malysh schrieb:
kannel-monitor_load_patch.txt (text/plain, 1.1 KB)
--- index.a.php    2005-06-29 14:12:50.000000000 +0200
+++ index.b.php    2008-09-23 15:20:59.000000000 +0200
@@ -133,14 +130,31 @@
             echo ", uptime $regs[2]d $regs[3]h $regs[4]m $regs[5]s <br />\n";
         }
 
+        /* get the inbound load of this bearerbox */
+        $s = XPathValue("gateway/sms/inbound", $status[$inst]);
+        echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>Inbound:</b> $s<br/>";
+
+        /* get the outbound load of this bearerbox */
+        $s = XPathValue("gateway/sms/outbound", $status[$inst]);       
+        echo "&nbsp;&nbsp;&nbsp;<b>Outbound:</b> $s<br/>";      
+
+        /* get the info of this bearerbox */        
+        $s = XPathValue("gateway/version", $status[$inst]);
+        $s = str_replace(chr(10),'<br />&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'.
+             '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;',$s);
+        $s = str_replace(chr(13),'',$s); 
+        echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>Version:</b> $s<br/>";
+
         ?>
         </td><td class=text valign=top align=right>
kannel-monitor.gif (image/gif, 4.1 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.