summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2015-11-06 13:05:36 +0200
committerytti <saku@ytti.fi>2015-11-06 13:05:36 +0200
commitd3e715c59a269e7e69b9f8e5c0a29c78eed7dd2e (patch)
treeae926bef9ec3aeed0b3ecd8c4b7907153f10aeaa /extra
parentc0dc2ee2af5b6be0b237fa5a6cb60aed14943466 (diff)
parentdc5f7285c87dc45763a24636a95c4081552356de (diff)
Merge pull request #233 from marnovdm/feature/minor-tweaks
Some minor tweaks for Oxidized
Diffstat (limited to 'extra')
-rw-r--r--extra/nagios_check_failing_nodes.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/extra/nagios_check_failing_nodes.rb b/extra/nagios_check_failing_nodes.rb
index 27a5c66..abb34ba 100644
--- a/extra/nagios_check_failing_nodes.rb
+++ b/extra/nagios_check_failing_nodes.rb
@@ -23,12 +23,12 @@ json.each do |node|
end
end
-if pending
- puts '[WARN] Pending backup: ' + pending_nodes.join(',')
- exit 1
-elsif critical
+if critical
puts '[CRIT] Unable to backup: ' + critical_nodes.join(',')
exit 2
+elsif pending
+ puts '[WARN] Pending backup: ' + pending_nodes.join(',')
+ exit 1
else
puts '[OK] Backup of all nodes completed successfully.'
exit 0