librenms-librenms/includes/services/check_domain_expire.inc.php
Tony Murray 9284bc60ff Update code in includes to be PSR-2 compliant (#4220)
refactor: Update code in /includes to be psr2 compliant #4220
2016-08-28 18:32:58 +01:00

11 lines
351 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'];