Licenses: Updated the list of licenses and added a PDF containing all license texts
[check_mk.git] / .werks / 4567
blobc4b564cbfafa7873899b3ace95bd1352d4a3863e
1 Title: inventory of interfaces: prevent showing negative last_state_change value
2 Level: 2
3 Component: inv
4 Compatible: compat
5 Edition: cre
6 Version: 1.5.0i1
7 Date: 1494337855
8 Class: fix
10 On SNMP devices sysUpTime is a 32-bit counter and will roll over after 496 days.
11 ifLastChange is the timestamp from sysUpTime when the state changed. At
12 inventory time we got a negative value if sysUpTime was smaller then
13 ifLastChange (because it rolled over) using the normal formula. If sysUpTime is
14 smaller than ifLastChange we add 496 days for the rollover now.
16 When the device reboots all last_state_change values are set to 0 by the device
17 so those cases are not affected by the fix..
19 Beware there's no way to get the count of times the sysUpTime counter rolled
20 over so the last_state_change is not accurate in case it's in real more than 496
21 days ago. ...but this situation has never been different. This fix just removes
22 another error in shown values.