cvs: pear /Net_Monitor/examples jabber.php
| From: | Robert Peake | Date: | Tue, 17 May 2005 06:23:52 +0000 |
| Subject: | cvs: pear /Net_Monitor/examples jabber.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-31886@lists.php.net to get a copy of this message | ||
cyberscribe Tue May 17 02:23:52 2005 EDT
Added files:
/pear/Net_Monitor/examples jabber.php
Log:
example file for using Net_Monitor_Alert_Jabber
http://cvs.php.net/co.php/pear/Net_Monitor/examples/jabber.php?r=1.1&p=1
Index: pear/Net_Monitor/examples/jabber.php
+++ pear/Net_Monitor/examples/jabber.php
<?php
require('Net/Monitor.php');
$monitor = new Net_Monitor();
$alerts = array('User1' => array('SMTP' => 'user1@example.com'),
'User2' => array('Jabber' => array('server'
=> 'jabber.org',
'recipient' => 'user2@jabber.org',
'login' => 'user2',
'password' => 'foo')),
'User3' => array('Jabber' => array('server'
=> 'jabber.org',
'recipient' => 'user3@jabber.org',
'login' => 'user3',
'password' => 'bar')) );
$services = array('example.com' => array('DNS'));
$monitor->setAlerts($alerts);
$monitor->setServices($services);
$monitor->checkAll();
?>