mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Few small changes
This commit is contained in:
@@ -47,6 +47,7 @@ echo "
|
|||||||
<input name='params' id='params' class='form-control input-sm'>
|
<input name='params' id='params' class='form-control input-sm'>
|
||||||
</div>
|
</div>
|
||||||
<div class='col-sm-5'>
|
<div class='col-sm-5'>
|
||||||
|
This may be required based on the service check.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button type='submit' name='Submit' class='btn btn-success input-sm'>Add Service</button>
|
<button type='submit' name='Submit' class='btn btn-success input-sm'>Add Service</button>
|
||||||
|
@@ -26,6 +26,9 @@ if (isset($_POST['service']) && is_numeric($_POST['service'])) {
|
|||||||
<div class='col-sm-5'>
|
<div class='col-sm-5'>
|
||||||
<input name='params' id='params' value='".$service['service_param']."' class='form-control input-sm'>
|
<input name='params' id='params' value='".$service['service_param']."' class='form-control input-sm'>
|
||||||
</div>
|
</div>
|
||||||
|
<div class='col-sm-5'>
|
||||||
|
This may be required based on the service check.
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button type='submit' id='confirm-editsrv' name='confirm-editsrv' value='yes' class='btn btn-primary input-sm'>Edit Service</button>
|
<button type='submit' id='confirm-editsrv' name='confirm-editsrv' value='yes' class='btn btn-primary input-sm'>Edit Service</button>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -21,7 +21,7 @@ else {
|
|||||||
if ($handle = opendir($config['nagios_plugins'])) {
|
if ($handle = opendir($config['nagios_plugins'])) {
|
||||||
while (false !== ($file = readdir($handle))) {
|
while (false !== ($file = readdir($handle))) {
|
||||||
if ($file != '.' && $file != '..' && !strstr($file, '.') && strstr($file, 'check_')) {
|
if ($file != '.' && $file != '..' && !strstr($file, '.') && strstr($file, 'check_')) {
|
||||||
list(,$check_name) = explode('_',$file);
|
list(,$check_name) = explode('_',$file,2);
|
||||||
$servicesform .= "<option value='$check_name'>$check_name</option>";
|
$servicesform .= "<option value='$check_name'>$check_name</option>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -8,7 +8,6 @@ echo "<span style='font-weight: bold;'>Services</span> » ";
|
|||||||
|
|
||||||
$menu_options = array(
|
$menu_options = array(
|
||||||
'basic' => 'Basic',
|
'basic' => 'Basic',
|
||||||
'details' => 'Details',
|
|
||||||
);
|
);
|
||||||
|
|
||||||
$sql_param = array();
|
$sql_param = array();
|
||||||
|
Reference in New Issue
Block a user