Files
librenms-librenms/includes/services/check_domain.inc.php
T

11 lines
365 B
PHP
Raw Normal View History

2016-03-15 22:16:08 +10:00
<?php
#Get check_domain from https://raw.githubusercontent.com/glensc/nagios-plugin-check_domain/master/check_domain.sh
2019-06-23 00:29:12 -05:00
$check_cmd = \LibreNMS\Config::get('nagios_plugins') . "/check_domain -d ";
if ($service['service_ip']) {
$check_cmd .= $service['service_ip'];
2016-03-15 22:16:08 +10:00
} else {
$check_cmd .= $service['hostname'];
2016-03-15 22:16:08 +10:00
}
$check_cmd .= " ".$service['service_param'];