'name' => 'Battery Temperature',
'oidtext' => 'PowerNet-MIB::upsAdvBatteryTemperature.0',
'oid' => '1.3.6.1.4.1.318.1.1.1.2.2.2.0',
- 'min' => 'U',
- 'max' => 'U',
},
'ambT' => {
'name' => 'Ambient Temperature',
'oidtext' => 'PowerNet-MIB::iemStatusProbeCurrentTemp.1',
'oid' => '1.3.6.1.4.1.318.1.1.10.2.3.2.1.4.1',
- 'min' => 'U',
- 'max' => 'U',
},
'ambH' => {
'name' => 'Ambient Humidity',
'oidtext' => 'PowerNet-MIB::iemStatusProbeCurrentHumid.1',
'oid' => '1.3.6.1.4.1.318.1.1.10.2.3.2.1.6.1',
- 'min' => 'U',
- 'max' => 'U',
},
},
},
'name' => 'Battery Temperature',
'oidtext' => 'PowerNet-MIB::upsAdvBatteryTemperature.0',
'oid' => '1.3.6.1.4.1.318.1.1.1.2.2.2.0',
- 'min' => 'U',
- 'max' => 'U',
},
}
},
'temp' => {
'name' => 'Internal Temperature',
'oid' => '1.3.6.1.4.1.9.9.13.1.3.1.3.1004',
- 'min' => 'U',
- 'max' => 'U',
},
}
},
'temp' => {
'name' => 'Internal Temperature',
'oid' => '1.3.6.1.4.1.9.9.13.1.3.1.3.1004',
- 'min' => 'U',
- 'max' => 'U',
},
}
},
'name' => 'Arbeitszimmer',
'port' => '31337',
'proto' => 'tcp',
- 'min' => 'U',
- 'max' => 'U',
},
}
},
foreach my $host (@$hosts) {
my $rrdfile = $host->{'rrdfile'};
+ foreach my $var (keys(%{$host->{'vars'}})) {
+ $host->{'vars'}->{$var}->{'min'} = 'U' if (!defined($host->{'vars'}->{$var}->{'min'}));
+ $host->{'vars'}->{$var}->{'max'} = 'U' if (!defined($host->{'vars'}->{$var}->{'max'}));
+ }
+
if (-e "${rrdfile}") {
print "Reading old ${rrdfile} to preserve data...\n";