void resetHostState(
string
$host, [string
$service = null])
|
|
function resetHostState
Resets the state for a single host ($host). Optionally takes in a second parameter, $service, whereby the function only resets the results for that particular host/service test.
Parameters:
function resetState
Resets the results and results differential arrays and deletes the state file.
Returns true if the file has been deleted or never existed in the first place; false otherwise.
void saveState(
[array
$results = null])
|
|
function saveState
Saves the current $_results array to the directory specified in $_options['state_directory'] as a file named $_options['state_file'].
If an array ($results) is passed to the function, that array is saved as state, otherwise this function acts upon $_results.
Parameters:
void setAlerts(
array
$alerts)
|
|
function setAlerts
Sets the alerts for the class
Overwrites $_alerts with input array ($alerts)
Net_Monitor_Alerts are of the form:
$alerts = array('User1' => array('SMTP'=>'user1@example.com'),
'User2' => array('SMTP'=>'user2@example.com'));
Parameters:
void setServices(
array
$services)
|
|
function setServices
Sets the services to monitor for the class
Overwrites $_services with input array ($services)
Net_Monitor_Services are of the form:
$services = array('foo.example.com'=>array('SMTP','DNS'),
'bar.example.com'=>array('HTTP','FTP','DNS'));
Parameters: