diff --git a/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/MIB2MIB.pm b/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/MIB2MIB.pm index 4a4c47e..a93c160 100644 --- a/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/MIB2MIB.pm +++ b/lib/Monitoring/GLPlugin/SNMP/MibsAndOids/MIB2MIB.pm @@ -97,6 +97,11 @@ $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'MIB-2-MIB'} = { $year -= 1900; $month += 1; } + if ($year == 0 && $month == 0) { + $year = 1970; + $month = 1; + $day = 1; + } my $epoch = timegm($second, $minute, $hour, $day, $month-1, $year-1900); # 1992-5-26,13:30:15.0,-4:0 = Tuesday May 26, 1992 at 1:30:15 PM EDT # Eastern Daylight Time (EDT) is 4 hours behind Coordinated Universal Time (UTC)