From 36090d7d55353311dbc55e6e0a87ef9828e57652 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 6 Apr 2006 10:34:07 +0000 Subject: join messages on a single line git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@66 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- nagios-check-soas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nagios-check-soas') diff --git a/nagios-check-soas b/nagios-check-soas index 8d6f6fb..b702f95 100755 --- a/nagios-check-soas +++ b/nagios-check-soas @@ -64,9 +64,9 @@ ARGV.each{ |domain| dns.close if warnings.length > 0 - warnings.each{ |w| puts w } + puts warnings.join('; ') exit NAGIOS_STATUS[:WARNING] else - oks.each{ |w| puts w } + puts oks.join('; ') exit NAGIOS_STATUS[:OK] end -- cgit v1.2.3