+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;