From: Michael Gernoth Date: Thu, 7 Nov 2013 14:26:15 +0000 (+0100) Subject: add battery current and time on battery X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/upsgraph/commitdiff_plain/24dd32823c677c7357464a73fbf74047eebbd8d0 add battery current and time on battery --- diff --git a/megatec-netagent.conf b/megatec-netagent.conf index c780152..dfafa99 100644 --- a/megatec-netagent.conf +++ b/megatec-netagent.conf @@ -11,7 +11,7 @@ $hosts = 'rrdfile' => "/var/www/usv/.work/ups.rrd", 'community' => "public", - 'fields' => [ 'inputV', 'inputVmax', 'inputVmin', 'inputHZ', 'outputV', 'outputHZ', 'battC', 'battV', 'load', 'upsT', 'timeR' ], + 'fields' => [ 'inputV', 'inputVmax', 'inputVmin', 'inputHZ', 'outputV', 'outputHZ', 'battC', 'battV', 'battA', 'load', 'upsT', 'timeR', 'timeO' ], 'vars' => { 'inputV' => { @@ -77,6 +77,14 @@ $hosts = 'max' => '3', 'factor' => 1/10, }, + 'battA' => { + 'name' => 'Battery Current', + 'oidtext' => 'XPPC-MIB::upsSmartBatteryCurrent.0', + 'oid' => '1.3.6.1.4.1.935.1.1.1.2.2.7.0', + 'min' => '0', + 'max' => '30', + 'factor' => 1/10, + }, 'load' => { 'name' => 'UPS Load', 'oidtext' => 'XPPC-MIB::upsSmartOutputLoad.0', @@ -100,6 +108,14 @@ $hosts = 'min' => '0', 'max' => '360', }, + 'timeO' => { + 'name' => 'Time on battery', + 'oidtext' => 'XPPC-MIB::upsBaseBatteryTimeOnBattery.0', + 'oid' => '1.3.6.1.4.1.935.1.1.1.2.1.2.0', + 'factor' => 1/60, + 'min' => '0', + 'max' => '360', + }, }, }, ];