mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
- Moved check-services.php to a poller module - Added performance data collection to the poller - Centralised DB functions to includes/services.inc.php - Created add/edit/delete functions off the device, services page - Removed legacy edit/delete interfaces. - Moved and modified check.inc scripts - Documentation Updates - Modified services table
11 lines
346 B
PHP
11 lines
346 B
PHP
<?php
|
|
|
|
#Get check_domain from https://raw.githubusercontent.com/glensc/nagios-plugin-check_domain/master/check_domain.sh
|
|
$check_cmd = $config['nagios_plugins'] . "/check_domain -d ";
|
|
if( $service['service_ip'] ) {
|
|
$check_cmd .= $service['service_ip'];
|
|
} else {
|
|
$check_cmd .= $service['hostname'];
|
|
}
|
|
$check_cmd .= " ".$service['service_param'];
|