Closed runborg closed 1 month ago
i would note that this is calclated not based on the interval between the first down and the last up but should only count the actual downtime. This means that if a link is down for 1minute then its up for 10h, then again a new minute down. ac-down should count as 2minutes downtime.
i've not looked into the zino1 source, but looking into zinolib (https://github.com/Uninett/zinolib/blob/stable/0.x/src/zinolib/ritz.py#L314-L319) it looks like this value does not count the current downtime period if the port is down, it only counts the periods that have been restored to up state.
It looks like the reachability(and portstates? haven't checked) events are missing the
ac-down
parameter. This parameter is a shorthand foraccumulated downtime
for a event and counts seconds of downtime for the port/device for the life of that event.