Files

11 lines
368 B
PHP
Raw Permalink Normal View History

2016-03-15 22:16:08 +10:00
<?php
2020-09-21 15:40:17 +02:00
//Get check_domain from https://raw.githubusercontent.com/glensc/nagios-plugin-check_domain/master/check_domain.sh
2020-09-21 15:59:34 +02: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
}
2020-09-21 15:59:34 +02:00
$check_cmd .= ' ' . $service['service_param'];