ITRS-Group / monitor-merlin

Module for Effortless Redundancy and Loadbalancing In Naemon
https://itrs-group.github.io/monitor-merlin/
GNU General Public License v2.0
22 stars 14 forks source link

MON-12790: Check negative values of last_action for auto_del #111

Closed jacobbaungard closed 3 years ago

jacobbaungard commented 3 years ago

When a node is first initialized, it's last_action is set to -1. For our auto delete logic, we don't use the node's last_action in case we've never seen the node. However we would only check if last_action was zero, and hence we could get a situation where nodes were deleted automatically right away. This as we would end up calculating the last_seen_delta as current_time - (-1).