Merge lp:~ben-kaehne/charms/trusty/nagios-extra-scripts/refactored-checks into lp:~jillrouleau/charms/trusty/nagios-extra-scripts/refactored-checks

Proposed by Benjamin Kaehne
Status: Merged
Merged at revision: 17
Proposed branch: lp:~ben-kaehne/charms/trusty/nagios-extra-scripts/refactored-checks
Merge into: lp:~jillrouleau/charms/trusty/nagios-extra-scripts/refactored-checks
Diff against target: 13 lines (+3/-0)
1 file modified
files/nrpe/ksplice_status.py (+3/-0)
To merge this branch: bzr merge lp:~ben-kaehne/charms/trusty/nagios-extra-scripts/refactored-checks
Reviewer Review Type Date Requested Status
Jill Rouleau Approve
Review via email: mp+290948@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Jill Rouleau (jillrouleau) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'files/nrpe/ksplice_status.py'
2--- files/nrpe/ksplice_status.py 2015-11-23 22:38:37 +0000
3+++ files/nrpe/ksplice_status.py 2016-04-05 05:19:44 +0000
4@@ -21,6 +21,9 @@
5 print("uptrack-show error, is ksplice deployed? Error: " + e),
6 sys.exit(2)
7 else:
8+ if "end of life" in pending_updates:
9+ print(nagios_plugin.WarnError("Kernel end of life. No new updates ever!")),
10+ sys.exit(1)
11 if "Available updates" and "None" not in pending_updates:
12 # Is there any case where updates could contain the string None?
13 print(nagios_plugin.WarnError("Unit has new Ksplice updates.")),

Subscribers

People subscribed via source and target branches

to all changes: