check_upstart_job does not alert CRITICAL when service is stopped
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nrpe-external-master (Juju Charms Collection) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
check_upstart_job does not alert CRITICAL when service is stopped
upstart.
com.ubuntu.
on
job.GetInstan
Then, with len(states) and states.
OK: 0 instances of <service> running
Q&D hack to work-around added at lines 58-61
41 try:
...
54 except dbus.DBusException as e:
55 instances = upstart.
56 propses = [upstart.
57 states = dict([(
58 # Dirty hack by macgreagoir to alert CRITICAL on stopped
59 if len(states) == 0:
60 print 'CRITICAL: 0 instances of %s running' % sys.argv[1]
61 sys.exit(2)
62 if len(states) != states.
...
Related branches
- Charles Butler (community): Approve
- Adam Israel (community): Approve
-
Diff: 57 lines (+14/-7)1 file modifiedfiles/check_upstart_job (+14/-7)
tags: | added: canonical-bootstack |
Changed in nrpe-external-master (Juju Charms Collection): | |
status: | New → Fix Released |