summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2006-04-06 10:34:07 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2006-04-06 10:34:07 +0000
commit36090d7d55353311dbc55e6e0a87ef9828e57652 (patch)
treed0958b16efb6ec34fb987027c8dd46cbb2eb4ca5
parent83cb7370e3742e8f04d382b9e9d22cb5a67c3e4f (diff)
join messages on a single line
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@66 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rwxr-xr-xnagios-check-soas4
1 files changed, 2 insertions, 2 deletions
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