summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-14 16:56:46 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-14 16:56:46 +0000
commitff75f4315aaf7ac8af280fbe666ff3093bd0d59d (patch)
tree5d5ed3bbc1b1dfa83336fabd7af081f23ef9cada /lib
parent9262afdd5d7e53f070c3f6ff8060492115718dda (diff)
Change default timeout to 10 seconds.
Diffstat (limited to 'lib')
-rwxr-xr-xlib/custodian/parser.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/custodian/parser.rb b/lib/custodian/parser.rb
index a5ce584..38792d2 100755
--- a/lib/custodian/parser.rb
+++ b/lib/custodian/parser.rb
@@ -62,7 +62,7 @@ class MonitorConfig
@MACROS = Hash.new()
@queue = Beanstalk::Pool.new(['127.0.0.1:11300'])
@file = filename
- @timeout = 3
+ @timeout = 10
raise ArgumentError, "Missing configuration file!" if ( @file.nil? )
raise ArgumentError, "File not found: #{@file}" unless ( File.exists?( @file) )
@@ -272,7 +272,7 @@ class MonitorConfig
new_line = "#{pre} must run ping #{post}"
return( parse_line( new_line ) )
- elsif ( line =~ /\s+must\s+run\s+([^\s]+)(\s+|\.)/i )
+ elsif ( line =~ /\s+must\s+run\s+([^\s]+)(\s+|\.|$)/i )
#
# Get the service we're testing, and remove any trailing "."