Merge ~pjdc/ubuntu-mirror-charm/+git/ubuntu-mirror-charm:misc-nagios into ubuntu-mirror-charm:master

Proposed by Paul Collins
Status: Merged
Approved by: John Losito
Approved revision: 61af309a5737be0450986e18881bf0edcce538e4
Merged at revision: 5b8cb8f4ffba955b570efdaf2d83beb65130be76
Proposed branch: ~pjdc/ubuntu-mirror-charm/+git/ubuntu-mirror-charm:misc-nagios
Merge into: ubuntu-mirror-charm:master
Diff against target: 45 lines (+5/-4)
2 files modified
files/check-mirror.sh (+2/-2)
hooks/hooks.py (+3/-2)
Reviewer Review Type Date Requested Status
John Losito (community) Approve
Canonical IS Reviewers Pending
Review via email: mp+381200@code.launchpad.net

Commit message

configure_nrpe: reload nagios; check-mirror.sh: exit 2 so we get criticals

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
John Losito (jlosito) :
review: Approve
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision 5b8cb8f4ffba955b570efdaf2d83beb65130be76

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/files/check-mirror.sh b/files/check-mirror.sh
index 78973d4..09c8b04 100755
--- a/files/check-mirror.sh
+++ b/files/check-mirror.sh
@@ -12,7 +12,7 @@ set -e
12if [ $# -lt 3 ] ; then12if [ $# -lt 3 ] ; then
13 echo "./check_mirror.sh [urlhost] [role] [ipaddrs]"13 echo "./check_mirror.sh [urlhost] [role] [ipaddrs]"
14 echo "e.g., ./check_mirror.sh archive.ubuntu.com ubuntu 1.2.3.4 4.5.6.7 ..."14 echo "e.g., ./check_mirror.sh archive.ubuntu.com ubuntu 1.2.3.4 4.5.6.7 ..."
15 exit 115 exit 2
16fi16fi
1717
18urlhost=$1 ; shift18urlhost=$1 ; shift
@@ -49,7 +49,7 @@ case ${role} in
49 ;;49 ;;
50 *)50 *)
51 echo "Unknown mirror role, ${role}"51 echo "Unknown mirror role, ${role}"
52 exit 152 exit 2
53esac53esac
5454
55tmpsigned=${tmpdir}/$(basename ${signed})55tmpsigned=${tmpdir}/$(basename ${signed})
diff --git a/hooks/hooks.py b/hooks/hooks.py
index cefbc5e..7e8af4f 100755
--- a/hooks/hooks.py
+++ b/hooks/hooks.py
@@ -22,8 +22,6 @@ from charmhelpers.core.host import (
22 chownr,22 chownr,
23 lsb_release,23 lsb_release,
24 mkdir,24 mkdir,
25 service_start,
26 service_stop,
27 service_reload,25 service_reload,
28 service_restart,26 service_restart,
29 symlink,27 symlink,
@@ -688,6 +686,9 @@ def configure_nrpe():
688 write_file(os.path.join(nagios_etcdir, 'check_all_disks_promptcrit.cfg'),686 write_file(os.path.join(nagios_etcdir, 'check_all_disks_promptcrit.cfg'),
689 check_all_disks)687 check_all_disks)
690688
689 log("CHARM: Reloading nagios-nrpe-server")
690 service_reload('nagios-nrpe-server')
691
691692
692def configure_log_archiving():693def configure_log_archiving():
693 settings = {}694 settings = {}

Subscribers

People subscribed via source and target branches