Add timeout to Nagios check script check_output command

Bug #1990440 reported by Loïc Gomez
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Livepatch Charm
Confirmed
Undecided
Unassigned

Bug Description

When snap daemon is unresponsive, nagios check script will run for a few minutes before failing.
check_output() should be called with a reasonable timeout value when checking snap details.
https://git.launchpad.net/charm-canonical-livepatch/tree/src/files/check_canonical-livepatch.py#n20

It should also catch subprocess.TimeoutExpired exception and log a useful message to check up on snap daemon.

Loïc Gomez (kotodama)
Changed in charm-canonical-livepatch:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.