Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
368 B
PHP
Raw Permalink 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'];