Merge ~barryprice/charm-nrpe/+git/charm-nrpe:master into charm-nrpe:master

Proposed by Barry Price
Status: Work in progress
Proposed branch: ~barryprice/charm-nrpe/+git/charm-nrpe:master
Merge into: charm-nrpe:master
Diff against target: 21 lines (+2/-2)
1 file modified
files/plugins/check_netns.sh (+2/-2)
Reviewer Review Type Date Requested Status
🤖 prod-jenkaas-bootstack (community) continuous-integration Needs Fixing
BootStack Reviewers Pending
BootStack Reviewers Pending
Review via email: mp+436106@code.launchpad.net

Commit message

plugins/check_netns.sh: Address LP:2003402, s/CRIT/CRITICAL/g

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
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Barry Price (barryprice) wrote :

Actually less sure this is a good idea now, I came across it on a cloud with networking issues and assumed it was the root cause, but have double checked a couple of other similarly-deployed clouds and found the same CRIT output there while things appear to be working.

I think we may just be shipping a broken check here, and not alerting by happy accident, which may not be a bad thing. Marking this WIP while I dig in further.

Unmerged commits

80d5b06... by Barry Price

plugins/check_netns.sh: Address LP:2003402, s/CRIT/CRITICAL/g

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/files/plugins/check_netns.sh b/files/plugins/check_netns.sh
index 2477bb5..39aa450 100755
--- a/files/plugins/check_netns.sh
+++ b/files/plugins/check_netns.sh
@@ -10,7 +10,7 @@
10check_ret_value() {10check_ret_value() {
11 RET=$111 RET=$1
12 if [[ $RET -ne 0 ]];then12 if [[ $RET -ne 0 ]];then
13 echo "CRIT: $2"13 echo "CRITICAL: $2"
14 exit $STATE_CRIT14 exit $STATE_CRIT
15 fi15 fi
16}16}
@@ -46,7 +46,7 @@ if [ ${#netnscrit[@]} -eq 0 ]; then
46 exit $STATE_OK46 exit $STATE_OK
47 fi47 fi
48else48else
49 echo "CRIT: ${netnscrit[@]} aren't responding"49 echo "CRITICAL: ${netnscrit[@]} aren't responding"
50 exit $STATE_CRIT50 exit $STATE_CRIT
51fi51fi
5252

Subscribers

People subscribed via source and target branches

to all changes: