From 50237f7d9044898fbee4526e22ba07f7cfaddc40 Mon Sep 17 00:00:00 2001 From: Antoine GUEVARA Date: Wed, 24 Jun 2015 16:34:47 +0200 Subject: Add [CRIT] & [OK] output --- extra/nagios_check_failing_nodes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extra') 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 -- cgit v1.2.1