summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorAntoine GUEVARA <antoine.guevara@recia.fr>2015-06-24 16:34:47 +0200
committerAntoine GUEVARA <antoine.guevara@recia.fr>2015-06-24 16:34:47 +0200
commit50237f7d9044898fbee4526e22ba07f7cfaddc40 (patch)
tree4e2c3e0ade8110ba39381804e5268617d886278a /extra
parent99261121f25ac55f502436a0ace345b02e4a387a (diff)
Add [CRIT] & [OK] output
Diffstat (limited to 'extra')
-rw-r--r--extra/nagios_check_failing_nodes.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/extra/nagios_check_failing_nodes.rb b/extra/nagios_check_failing_nodes.rb
index 4436b1c..848978d 100644
--- a/extra/nagios_check_failing_nodes.rb
+++ b/extra/nagios_check_failing_nodes.rb
@@ -19,9 +19,9 @@ json.each do |node|
end
if critical
- puts 'Unable to backup: ' + critical_nodes.join(' ')
+ puts '[CRIT] Unable to backup: ' + critical_nodes.join(' ')
exit 2
else
- puts 'Backup of all nodes completed successfully.'
+ puts '[OK] Backup of all nodes completed successfully.'
exit 0
end