Net_Monitor
[ class tree: Net_Monitor ] [ index: Net_Monitor ] [ all elements ]

Source for file simple.php

Documentation is available at simple.php

  1. <?php
  2. require('Net/Monitor.php');
  3. $monitor = new Net_Monitor();
  4. $alerts = array('User1' => array('SMTP' => 'user1@example.com'),
  5.                 'User2' => array('SMTP' => array('email'=>'user2@example.com',
  6.                                  'host' => 'example.com'
  7.                                  'port' => 25
  8.                                  'auth' => true
  9.                                  'username' => 'user2'
  10.                                  'password' => 'supersecret')));
  11. $services = array('foo.example.com' => array('SMTP','DNS'),
  12.                   'bar.example.com' => array('HTTP','FTP','DNS'));
  13. $monitor->setAlerts($alerts);
  14. $monitor->setServices($services);
  15. $monitor->checkAll();

Documentation generated on Mon, 11 Mar 2019 15:56:40 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.