Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > d39bbfa2d2aa81a796ac6b422b6182e6 > files > 10

php-pear-Net_Monitor-0.3.0-3.mga5.noarch.rpm

<?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();