add battery current and time on battery
authorMichael Gernoth <michael@gernoth.net>
Thu, 7 Nov 2013 14:26:15 +0000 (15:26 +0100)
committerMichael Gernoth <michael@gernoth.net>
Thu, 7 Nov 2013 14:26:15 +0000 (15:26 +0100)
megatec-netagent.conf

index c780152a24042219b226810098e65efa5fb9ef21..dfafa994756b678cc710b510d6f254a437eef312 100644 (file)
@@ -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',
+                       },
                },
        },
 ];
Impressum, Datenschutz