3 $host="192.168.34.253";
4 $rrdfile="/var/www/usv/.work/ups.rrd";
5 $outdir="/var/www/usv/";
9 @fields = ( 'inputV', 'outputV', 'inputHZ', 'outputHZ', 'battT', 'battC', 'load', 'ambT', 'ambH', 'timeR', 'timeO' );
13 'name' => 'Input Voltage',
14 'oidtext' => 'PowerNet-MIB::upsAdvInputLineVoltage.0',
15 'oid' => '1.3.6.1.4.1.318.1.1.1.3.2.1.0',
20 'name' => 'Output Voltage',
21 'oidtext' => 'PowerNet-MIB::upsAdvOutputVoltage.0',
22 'oid' => '1.3.6.1.4.1.318.1.1.1.4.2.1.0',
27 'name' => 'Input Frequency',
28 'oidtext' => 'PowerNet-MIB::upsAdvInputFrequency.0',
29 'oid' => '1.3.6.1.4.1.318.1.1.1.3.2.4.0',
34 'name' => 'Output Frequency',
35 'oidtext' => 'PowerNet-MIB::upsAdvOutputFrequency.0',
36 'oid' => '1.3.6.1.4.1.318.1.1.1.4.2.2.0',
41 'name' => 'Battery Temperature',
42 'oidtext' => 'PowerNet-MIB::upsAdvBatteryTemperature.0',
43 'oid' => '1.3.6.1.4.1.318.1.1.1.2.2.2.0',
48 'name' => 'Battery Capacity',
49 'oidtext' => 'PowerNet-MIB::upsAdvBatteryCapacity.0',
50 'oid' => '1.3.6.1.4.1.318.1.1.1.2.2.1.0',
56 'oidtext' => 'PowerNet-MIB::upsAdvOutputLoad.0',
57 'oid' => '1.3.6.1.4.1.318.1.1.1.4.2.3.0',
62 'name' => 'Ambient Temperature',
63 'oidtext' => 'PowerNet-MIB::mUpsEnvironAmbientTemperature.0',
64 'oid' => '1.3.6.1.4.1.318.1.1.2.1.1.0',
69 'name' => 'Ambient Humidity',
70 'oidtext' => 'PowerNet-MIB::mUpsEnvironRelativeHumidity.0',
71 'oid' => '1.3.6.1.4.1.318.1.1.2.1.2.0',
76 'name' => 'Time Remaining',
77 'oidtext' => 'PowerNet-MIB::upsAdvBatteryRunTimeRemaining.0',
78 'oid' => '1.3.6.1.4.1.318.1.1.1.2.2.3.0',
84 'name' => 'Time On Battery',
85 'oidtext' => 'PowerNet-MIB::upsBasicBatteryTimeOnBattery.0',
86 'oid' => '1.3.6.1.4.1.318.1.1.1.2.1.2.0',