mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
refactor: Rename check_domain_expire.inc.php to check_domain.inc.php (#6238)
check_domain_expire.inc.php would never get included if the service name is check_domian.
This commit is contained in:
committed by
Neil Lathwood
parent
a2115458af
commit
195dc9b1ed
10
includes/services/check_domain.inc.php
Normal file
10
includes/services/check_domain.inc.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?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'];
|
Reference in New Issue
Block a user