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:
--- 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>

<<inline: kannel-monitor.gif>>

Reply via email to