From 24dd32823c677c7357464a73fbf74047eebbd8d0 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Thu, 7 Nov 2013 15:26:15 +0100 Subject: [PATCH] add battery current and time on battery --- megatec-netagent.conf | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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', + }, }, }, ]; -- 2.39.2