summaryrefslogtreecommitdiff
path: root/nagios-check-soas
diff options
context:
space:
mode:
Diffstat (limited to 'nagios-check-soas')
-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