Page MenuHomeSoftware Heritage

Add an icinga check on whether the puppet agent is enabled
Closed, MigratedEdits Locked

Description

Sometimes, we disable the puppet agent with puppet agent --disable; we should have an icinga check for this, to avoid forgetting to enable it again.

I suggest warning after 4 hours, and erroring after 24 hours.

Event Timeline

olasd triaged this task as Normal priority.Sep 7 2020, 10:46 AM
olasd created this task.
vsellier changed the task status from Open to Work in Progress.Feb 8 2021, 2:20 PM
vsellier moved this task from Weekly backlog to in-progress on the System administration board.

The file /var/lib/puppet/state/agent_disabled.lock can be checked to detect if puppet is disable or not.

After puppet has added the group to the user nagios[1], the icinga services needed to be restarted.

# clush -b -w @staging 'systemctl restart icinga2'
# clush -b -w @all 'systemctl restart icinga2'

[1] The group was manually added on the hosts where puppet was disable (worker01 and saatchi). There is still giverny, but I kept it untouched