diff options
author | Antoine GUEVARA <antoine.guevara@recia.fr> | 2015-06-24 16:34:47 +0200 |
---|---|---|
committer | Antoine GUEVARA <antoine.guevara@recia.fr> | 2015-06-24 16:34:47 +0200 |
commit | 50237f7d9044898fbee4526e22ba07f7cfaddc40 (patch) | |
tree | 4e2c3e0ade8110ba39381804e5268617d886278a /extra/nagios_check_failing_nodes.rb | |
parent | 99261121f25ac55f502436a0ace345b02e4a387a (diff) |
Add [CRIT] & [OK] output
Diffstat (limited to 'extra/nagios_check_failing_nodes.rb')
-rw-r--r-- | extra/nagios_check_failing_nodes.rb | 4 |
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 |