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
1diff --git a/files/plugins/check_netns.sh b/files/plugins/check_netns.sh
2index 2477bb5..39aa450 100755
3--- a/files/plugins/check_netns.sh
4+++ b/files/plugins/check_netns.sh
5@@ -10,7 +10,7 @@
6 check_ret_value() {
7 RET=$1
8 if [[ $RET -ne 0 ]];then
9- echo "CRIT: $2"
10+ echo "CRITICAL: $2"
11 exit $STATE_CRIT
12 fi
13 }
14@@ -46,7 +46,7 @@ if [ ${#netnscrit[@]} -eq 0 ]; then
15 exit $STATE_OK
16 fi
17 else
18- echo "CRIT: ${netnscrit[@]} aren't responding"
19+ echo "CRITICAL: ${netnscrit[@]} aren't responding"
20 exit $STATE_CRIT
21 fi
22

Subscribers

People subscribed via source and target branches

to all changes: