Hi Stipe, On Thursday 06 March 2003 19:32, Stipe Tolj wrote: > Hi list, > > I have commited a simple (but cool and powerfull) php application > which summerizes the sms traffic of several bearerbox instances.
it's great!!! thanks a lot :) attached patch just adds names to kannel instanses ... > > Basically it's intention is to use the /status.xml output of all > configured bearerboxes, parse it and display a global "Kannel Status > Monitor" for all instances. > > It includes automatic reloading of the page (for IE at least ;) and > admin command support, so you can start/stop single smsc-ids or even > whole boxes. > > Have fun. > > Stipe > > [EMAIL PROTECTED] > ------------------------------------------------------------------- > Wapme Systems AG > > Vogelsanger Weg 80 > 40470 D�sseldorf > > Tel: +49-211-74845-0 > Fax: +49-211-74845-299 > > E-Mail: [EMAIL PROTECTED] > Internet: http://www.wapme-systems.de > ------------------------------------------------------------------- > wapme.net - wherever you are -- Best Regards / Mit besten Gr��en aus K�ln Dipl.-Ing. Alexander Malysh ___________________________________ Centrium GmbH Ehrenstrasse 2 50672 K�ln Fon: +49 (0221) 277 49 240 Fax: +49 (0221) 277 49 109 email: [EMAIL PROTECTED] web: http://www.centrium.de msn: [EMAIL PROTECTED]
Index: contrib/kannel-monitor/index.php
===================================================================
RCS file: /home/cvs/gateway/contrib/kannel-monitor/index.php,v
retrieving revision 1.1
diff -a -u -r1.1 index.php
--- contrib/kannel-monitor/index.php 6 Mar 2003 18:33:43 -0000 1.1
+++ contrib/kannel-monitor/index.php 7 Mar 2003 00:56:04 -0000
@@ -13,13 +13,16 @@
$configs = array(
array( "base_url" => "http://kannel.foobar.com:13000",
- "passwd" => "tester"
+ "passwd" => "tester",
+ "name" => "NAME-A"
),
array( "base_url" => "http://kannel.foonar.com:23000",
- "passwd" => "tester"
+ "passwd" => "tester",
+ "name" => "NAME-B"
),
array( "base_url" => "http://kannel.foobar.com:33000",
- "passwd" => "tester"
+ "passwd" => "tester",
+ "name" => "NAME-C"
)
);
@@ -94,9 +97,9 @@
/* open the file description to the URL */
if (($fp = fopen($url, "r"))) {
- echo "<span class=green>($inst) <b>$url</b></span> <br /> \n";
+ echo "<span class=green>($inst) (".$config["name"].") <b>$url</b></span> <br /> \n";
} else {
- echo "<span class=red>($inst) <b>$url</b></span> <br /> \n";
+ echo "<span class=red>($inst) (".$config["name"].") <b>$url</b></span> <br /> \n";
}
/* read the XML input */
smime.p7s
Description: signature
