+package UPSGRAPH;
+
+$host="192.168.34.253";
+$rrdfile="/var/www/usv/.work/ups.rrd";
+$outdir="/var/www/usv/";
+$community="public";
+$step=60;
+
+@fields = ( 'inputV', 'inputVL1L2', 'inputVL2L3', 'inputVL3L1', 'inputCL1L2', 'inputCL2L3', 'inputCL3L1', 'outputV', 'outputVL1L2', 'outputVL2L3', 'outputVL3L1', 'outputHZ', 'outputCL1', 'outputCL2', 'outputCL3', 'battT', 'battC', 'load', 'loadL1', 'loadL2', 'loadL3', 'ambT', 'ambH', 'timeR', 'timeO' );
+
+$vars = {
+ 'inputV' => {
+ 'name' => 'Input Voltage',
+ 'oidtext' => 'PowerNet-MIB::upsAdvInputLineVoltage.0',
+ 'oid' => '1.3.6.1.4.1.318.1.1.1.3.2.1.0',
+ 'min' => '180',
+ 'max' => '280',
+ },
+ 'inputVL1L2' => {
+ 'name' => 'Input Voltage (L1/L2)',
+ 'oidtext' => 'PowerNet-MIB::upsPhaseInputVoltage.1.1.1',
+ 'oid' => '1.3.6.1.4.1.318.1.1.1.9.2.3.1.3.1.1.1',
+ 'min' => '300',
+ 'max' => '460',
+ },
+ 'inputVL2L3' => {
+ 'name' => 'Input Voltage (L2/L3)',
+ 'oidtext' => 'PowerNet-MIB::upsPhaseInputVoltage.1.1.2',
+ 'oid' => '1.3.6.1.4.1.318.1.1.1.9.2.3.1.3.1.1.2',
+ 'min' => '300',
+ 'max' => '460',
+ },
+ 'inputVL3L1' => {
+ 'name' => 'Input Voltage (L3/L1)',
+ 'oidtext' => 'PowerNet-MIB::upsPhaseInputVoltage.1.1.3',
+ 'oid' => '1.3.6.1.4.1.318.1.1.1.9.2.3.1.3.1.1.3',
+ 'min' => '300',
+ 'max' => '460',
+ },
+ 'inputCL1L2' => {
+ 'name' => 'Input Current (L1/L2)',
+ 'oidtext' => 'PowerNet-MIB::upsPhaseInputCurrent.1.1.1',
+ 'oid' => '1.3.6.1.4.1.318.1.1.1.9.2.3.1.6.1.1.1',
+ 'min' => '0',
+ 'max' => '50',
+ 'factor' => 1/10,
+ },
+ 'inputCL2L3' => {
+ 'name' => 'Input Current (L2/L3)',
+ 'oidtext' => 'PowerNet-MIB::upsPhaseInputCurrent.1.1.2',
+ 'oid' => '1.3.6.1.4.1.318.1.1.1.9.2.3.1.6.1.1.2',
+ 'min' => '0',
+ 'max' => '50',
+ 'factor' => 1/10,
+ },
+ 'inputCL3L1' => {
+ 'name' => 'Input Current (L3/L1)',
+ 'oidtext' => 'PowerNet-MIB::upsPhaseInputCurrent.1.1.3',
+ 'oid' => '1.3.6.1.4.1.318.1.1.1.9.2.3.1.6.1.1.3',
+ 'min' => '0',
+ 'max' => '50',
+ 'factor' => 1/10,
+ },
+ 'outputV' => {
+ 'name' => 'Output Voltage',
+ 'oidtext' => 'PowerNet-MIB::upsAdvOutputVoltage.0',
+ 'oid' => '1.3.6.1.4.1.318.1.1.1.4.2.1.0',
+ 'min' => '180',
+ 'max' => '280',
+ },
+ 'outputVL1L2' => {
+ 'name' => 'Output Voltage (L1/L2)',
+ 'oidtext' => 'PowerNet-MIB::upsPhaseOutputVoltage.1.1.1',
+ 'oid' => '1.3.6.1.4.1.318.1.1.1.9.3.3.1.3.1.1.1',
+ 'min' => '300',
+ 'max' => '500',
+ },
+ 'outputVL2L3' => {
+ 'name' => 'Output Voltage (L2/L3)',
+ 'oidtext' => 'PowerNet-MIB::upsPhaseOutputVoltage.1.1.2',
+ 'oid' => '1.3.6.1.4.1.318.1.1.1.9.3.3.1.3.1.1.2',
+ 'min' => '300',
+ 'max' => '500',
+ },
+ 'outputVL3L1' => {
+ 'name' => 'Output Voltage (L3/L1)',
+ 'oidtext' => 'PowerNet-MIB::upsPhaseOutputVoltage.1.1.3',
+ 'oid' => '1.3.6.1.4.1.318.1.1.1.9.3.3.1.3.1.1.3',
+ 'min' => '300',
+ 'max' => '500',
+ },
+ 'outputHZ' => {
+ 'name' => 'Output Frequency',
+ 'oidtext' => 'PowerNet-MIB::upsAdvOutputFrequency.0',
+ 'oid' => '1.3.6.1.4.1.318.1.1.1.4.2.2.0',
+ 'min' => '40',
+ 'max' => '60',
+ },
+ 'outputCL1' => {
+ 'name' => 'Output Current (L1)',
+ 'oidtext' => 'PowerNet-MIB::upsPhaseOutputCurrent.1.1.1',
+ 'oid' => '1.3.6.1.4.1.318.1.1.1.9.3.3.1.4.1.1.1',
+ 'min' => '0',
+ 'max' => '50',
+ 'factor' => 1/10,
+ },
+ 'outputCL2' => {
+ 'name' => 'Output Current (L2)',
+ 'oidtext' => 'PowerNet-MIB::upsPhaseOutputCurrent.1.1.2',
+ 'oid' => '1.3.6.1.4.1.318.1.1.1.9.3.3.1.4.1.1.2',
+ 'min' => '0',
+ 'max' => '50',
+ 'factor' => 1/10,
+ },
+ 'outputCL3' => {
+ 'name' => 'Output Current (L3)',
+ 'oidtext' => 'PowerNet-MIB::upsPhaseOutputCurrent.1.1.3',
+ 'oid' => '1.3.6.1.4.1.318.1.1.1.9.3.3.1.4.1.1.3',
+ 'min' => '0',
+ 'max' => '50',
+ 'factor' => 1/10,
+ },
+ 'battT' => {
+ 'name' => 'Battery Temperature',
+ 'oidtext' => 'PowerNet-MIB::upsAdvBatteryTemperature.0',
+ 'oid' => '1.3.6.1.4.1.318.1.1.1.2.2.2.0',
+ 'min' => '0',
+ 'max' => '100',
+ },
+ 'battC' => {
+ 'name' => 'Battery Capacity',
+ 'oidtext' => 'PowerNet-MIB::upsAdvBatteryCapacity.0',
+ 'oid' => '1.3.6.1.4.1.318.1.1.1.2.2.1.0',
+ 'min' => '0',
+ 'max' => '110',
+ },
+ 'load' => {
+ 'name' => 'UPS Load',
+ 'oidtext' => 'PowerNet-MIB::upsAdvOutputLoad.0',
+ 'oid' => '1.3.6.1.4.1.318.1.1.1.4.2.3.0',
+ 'min' => '0',
+ 'max' => '110',
+ },
+ 'loadL1' => {
+ 'name' => 'UPS Load (L1)',
+ 'oidtext' => 'PowerNet-MIB::upsPhaseOutputPercentLoad.1.1.1',
+ 'oid' => '1.3.6.1.4.1.318.1.1.1.9.3.3.1.10.1.1.1',
+ 'min' => '0',
+ 'max' => '110',
+ },
+ 'loadL2' => {
+ 'name' => 'UPS Load (L2)',
+ 'oidtext' => 'PowerNet-MIB::upsPhaseOutputPercentLoad.1.1.2',
+ 'oid' => '1.3.6.1.4.1.318.1.1.1.9.3.3.1.10.1.1.2',
+ 'min' => '0',
+ 'max' => '110',
+ },
+ 'loadL3' => {
+ 'name' => 'UPS Load (L3)',
+ 'oidtext' => 'PowerNet-MIB::upsPhaseOutputPercentLoad.1.1.3',
+ 'oid' => '1.3.6.1.4.1.318.1.1.1.9.3.3.1.10.1.1.3',
+ 'min' => '0',
+ 'max' => '110',
+ },
+ 'ambT' => {
+ 'name' => 'Ambient Temperature',
+ 'oidtext' => 'PowerNet-MIB::mUpsEnvironAmbientTemperature.0',
+ 'oid' => '1.3.6.1.4.1.318.1.1.2.1.1.0',
+ 'min' => '0',
+ 'max' => '60',
+ },
+ 'ambH' => {
+ 'name' => 'Ambient Humidity',
+ 'oidtext' => 'PowerNet-MIB::mUpsEnvironRelativeHumidity.0',
+ 'oid' => '1.3.6.1.4.1.318.1.1.2.1.2.0',
+ 'min' => '0',
+ 'max' => '100',
+ },
+ 'timeR' => {
+ 'name' => 'Time Remaining',
+ 'oidtext' => 'PowerNet-MIB::upsAdvBatteryRunTimeRemaining.0',
+ 'oid' => '1.3.6.1.4.1.318.1.1.1.2.2.3.0',
+ 'factor' => 1/6000,
+ 'min' => '0',
+ 'max' => '360',
+ },
+ 'timeO' => {
+ 'name' => 'Time On Battery',
+ 'oidtext' => 'PowerNet-MIB::upsBasicBatteryTimeOnBattery.0',
+ 'oid' => '1.3.6.1.4.1.318.1.1.1.2.1.2.0',
+ 'factor' => 1/6000,
+ 'min' => '0',
+ 'max' => '360',
+ },
+};
+
+1;