mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix some undefined constants (#14993)
* Fix undefined constants These have been broken for a long time. Likely they are unused. * Fix undefined constants These have been broken for a long time. Likely they are unused.
This commit is contained in:
@@ -30,5 +30,5 @@ if ($device['os'] === 'hikvision-nvr') {
|
||||
$type = 'hikvision-nvr';
|
||||
$descr = 'Storage';
|
||||
$mib = 'HIKVISION-MIB';
|
||||
discover_storage($valid_storage, $device, $index, $type, $mib, $descr, 0, size, null);
|
||||
discover_storage($valid_storage, $device, $index, $type, $mib, $descr, 0, 'size', null);
|
||||
}
|
||||
|
@@ -51,7 +51,7 @@ if (Rrd::checkRrdExists($rrd_filename)) {
|
||||
'descr' => 'Mode',
|
||||
'ds' => 's5anti_issues',
|
||||
];
|
||||
if ($vars['stddev'] == on) {
|
||||
if ($vars['stddev'] == 'on') {
|
||||
$rrd_list[] = [
|
||||
'filename' => $rrd_filename,
|
||||
'descr' => 'StdDev',
|
||||
|
@@ -51,7 +51,7 @@ if (Rrd::checkRrdExists($rrd_filename)) {
|
||||
'descr' => 'Mode',
|
||||
'ds' => 's5malscore',
|
||||
];
|
||||
if ($vars['stddev'] == on) {
|
||||
if ($vars['stddev'] == 'on') {
|
||||
$rrd_list[] = [
|
||||
'filename' => $rrd_filename,
|
||||
'descr' => 'StdDev',
|
||||
|
@@ -97,7 +97,7 @@ if (isset($vars['vmif']) and isset($vars['vm'])) {
|
||||
'<b>MAC:</b> ' . $mac;
|
||||
if (isset($port) && isset($mac) && $mac != '') {
|
||||
echo ' (' .
|
||||
generate_device_link([device_id=>$port->device_id]) .
|
||||
generate_device_link(['device_id'=>$port->device_id]) .
|
||||
', ' .
|
||||
generate_port_link([
|
||||
'label' => $port->label,
|
||||
|
Reference in New Issue
Block a user