From: Michael Gernoth Date: Thu, 7 Nov 2013 12:33:49 +0000 (+0100) Subject: config for megatec netagent X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/upsgraph/commitdiff_plain/13f8524ee8b2eae18413aee4f147a00a09e5f26a?hp=3679b92785fa7106d07999fcc95750457693e077 config for megatec netagent --- diff --git a/megatec-netagent.conf b/megatec-netagent.conf new file mode 100644 index 0000000..54db3ac --- /dev/null +++ b/megatec-netagent.conf @@ -0,0 +1,107 @@ +package UPSGRAPH; + +$outdir="/var/www/usv/"; +$step=60; + +$hosts = +[ + { + 'address' => "192.168.34.253", + 'name' => "faui4usv", + 'rrdfile' => "/var/www/usv/.work/ups.rrd", + 'community' => "public", + + 'fields' => [ 'inputV', 'inputVmax', 'inputVmin', 'inputHZ', 'outputV', 'outputHZ', 'battC', 'battV', 'load', 'ambT', 'timeR' ], + + 'vars' => { + 'inputV' => { + 'name' => 'Input Voltage', + 'oidtext' => 'XPPC-MIB::upsSmartInputLineVoltage.0', + 'oid' => '1.3.6.1.4.1.935.1.1.1.3.2.1.0', + 'min' => '180', + 'max' => '280', + 'factor' => 1/10, + }, + 'inputVmax' => { + 'name' => 'Input Voltage (max)', + 'oidtext' => 'XPPC-MIB::upsSmartInputMaxLineVoltage.0', + 'oid' => '1.3.6.1.4.1.935.1.1.1.3.2.2.0', + 'min' => '180', + 'max' => '280', + 'factor' => 1/10, + }, + 'inputVmin' => { + 'name' => 'Input Voltage (min)', + 'oidtext' => 'XPPC-MIB::upsSmartInputMinLineVoltage.0', + 'oid' => '1.3.6.1.4.1.935.1.1.1.3.2.3.0', + 'min' => '180', + 'max' => '280', + 'factor' => 1/10, + }, + 'inputHZ' => { + 'name' => 'Input Frequency', + 'oidtext' => 'XPPC-MIB::upsSmartInputFrequency.0', + 'oid' => '1.3.6.1.4.1.935.1.1.1.3.2.4.0', + 'min' => '40', + 'max' => '60', + 'factor' => 1/10, + }, + 'outputV' => { + 'name' => 'Output Voltage', + 'oidtext' => 'XPPC-MIB::upsSmartOutputVoltage.0', + 'oid' => '1.3.6.1.4.1.935.1.1.1.4.2.1.0', + 'min' => '180', + 'max' => '280', + 'factor' => 1/10, + }, + 'outputHZ' => { + 'name' => 'Output Frequency', + 'oidtext' => 'XPPC-MIB::upsSmartOutputFrequency.0', + 'oid' => '1.3.6.1.4.1.935.1.1.1.4.2.2.0', + 'min' => '40', + 'max' => '60', + 'factor' => 1/10, + }, + 'battC' => { + 'name' => 'Battery Capacity', + 'oidtext' => 'XPPC-MIB::upsSmartBatteryCapacity.0', + 'oid' => '1.3.6.1.4.1.935.1.1.1.2.2.1.0', + 'min' => '0', + 'max' => '110', + }, + 'battV' => { + 'name' => 'Battery Voltage', + 'oidtext' => 'XPPC-MIB::upsSmartBatteryVoltage.0', + 'oid' => '1.3.6.1.4.1.935.1.1.1.2.2.2.0', + 'min' => '0', + 'max' => '3', + 'factor' => 1/10, + }, + 'load' => { + 'name' => 'UPS Load', + 'oidtext' => 'XPPC-MIB::upsSmartOutputLoad.0', + 'oid' => '1.3.6.1.4.1.935.1.1.1.4.2.3.0', + 'min' => '0', + 'max' => '110', + }, + 'ambT' => { + 'name' => 'Ambient Temperature', + 'oidtext' => 'XPPC-MIB::upsSmartBatteryTemperature.0', + 'oid' => '1.3.6.1.4.1.935.1.1.1.2.2.3.0', + 'min' => '0', + 'max' => '100', + 'factor' => 1/10, + }, + 'timeR' => { + 'name' => 'Time Remaining', + 'oidtext' => 'XPPC-MIB::upsSmartBatteryRunTimeRemaining.0', + 'oid' => '1.3.6.1.4.1.935.1.1.1.2.2.4.0', + 'factor' => 1/60, + 'min' => '0', + 'max' => '360', + }, + }, + }, +]; + +1;