Merge lp://qastaging/~brad-marshall/charm-helpers/add-systemd-nagios-check into lp://qastaging/charm-helpers

Proposed by Brad Marshall
Status: Needs review
Proposed branch: lp://qastaging/~brad-marshall/charm-helpers/add-systemd-nagios-check
Merge into: lp://qastaging/charm-helpers
Diff against target: 36 lines (+19/-0) (has conflicts)
1 file modified
charmhelpers/contrib/charmsupport/nrpe.py (+19/-0)
Text conflict in charmhelpers/contrib/charmsupport/nrpe.py
To merge this branch: bzr merge lp://qastaging/~brad-marshall/charm-helpers/add-systemd-nagios-check
Reviewer Review Type Date Requested Status
Stuart Bishop (community) Needs Fixing
Review via email: mp+294084@code.qastaging.launchpad.net

Description of the change

Add systemd nagios check support

To post a comment you must log in.
Revision history for this message
Brad Marshall (brad-marshall) wrote :
572. By Brad Marshall

[brad-marshall] Handle the services.d and sysvinit script cases

Revision history for this message
Stuart Bishop (stub) wrote :

Tests need updating, probably with variations mocked to test the different code paths:

======================================================================
FAIL: tests.contrib.charmsupport.test_nrpe.NRPEMiscTestCase.test_add_init_service_checks
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/home/stub/charms/charm-helpers/trunk/tests/contrib/charmsupport/test_nrpe.py", line 316, in test_add_init_service_checks
    self.assertEqual(bill.checks[1].check_cmd, expect_cmds['haproxy'])
MismatchError: !=:
reference = ''
actual = '/usr/lib/nagios/plugins/check_status_file.py -f /var/lib/nagios/service-check-haproxy.txt'

review: Needs Fixing
Revision history for this message
Stuart Bishop (stub) wrote :

(otherwise looks good and landable)

573. By Brad Marshall

Tweak systemd check, and skip qemu-kvm service as well

Unmerged revisions

573. By Brad Marshall

Tweak systemd check, and skip qemu-kvm service as well

572. By Brad Marshall

[brad-marshall] Handle the services.d and sysvinit script cases

571. By Brad Marshall

[brad-marshall] Add support for systemd checks in add_init_service_checks. LP#1578922

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches