Re: [FYI] contrib/kannel-monitor: a php application
Alexander Malysh <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | Centrium GmbH |
| Message-ID | <[email protected]> |
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]
kannel-mon-index.php.diff
(text/x-diff, 1.5 KB)
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
(application/pkcs7-signature, 2.5 KB) - not displayed