Sophie

Sophie

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

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('Growl' => array('server' => '127.0.0.1')),
                'User3' => array('Growl' => array('server' => '127.0.0.1',
				                                  'password' => 'foo')) 
                );
$services = array('example.com' => array('DNS'));
$monitor->setAlerts($alerts);
$monitor->setServices($services);
$monitor->checkAll();