mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
feature: Added additional sensors for ups-nut
* Add db schema for ups-nut alerting * Add db schema for ups-nut alerting * Add db schema for ups-nut alerting * Add db schema for ups-nut alerting
This commit is contained in:
committed by
Neil Lathwood
parent
9113f81272
commit
8c8a2e05c6
17
includes/discovery/sensors/load/linux.inc.php
Normal file
17
includes/discovery/sensors/load/linux.inc.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
$oids = '.1.3.6.1.4.1.8072.1.3.2.4.1.2.7.117.112.115.45.110.117.116.8';
|
||||
$value = snmp_get($device, $oids, '-Osqnv');
|
||||
|
||||
if (!empty($value)) {
|
||||
$type = 'ups-nut';
|
||||
$index = 8;
|
||||
$limit = 100;
|
||||
$lowlimit = 0;
|
||||
$lowwarnlimit = 0;
|
||||
$descr = 'Ups Load';
|
||||
|
||||
discover_sensor($valid['sensor'], 'ups_nut', $device, $oids, $index, $type, $descr, 1, 1, $lowlimit, $lowwarnlimit, null, $limit, $value);
|
||||
}
|
||||
|
||||
unset($oids);
|
||||
Reference in New Issue
Block a user