Fix per-node config key for process checks.
authorMahlon E. Smith <mahlon@martini.nu>
Mon, 09 Apr 2018 18:51:52 -0700
changeset 16 d6773db8469c
parent 15 d4776d62b193
child 17 e4f0fd44734d
Fix per-node config key for process checks.
lib/arborist/monitor/snmp/process.rb
--- a/lib/arborist/monitor/snmp/process.rb	Mon Apr 09 16:13:08 2018 -0700
+++ b/lib/arborist/monitor/snmp/process.rb	Mon Apr 09 18:51:52 2018 -0700
@@ -80,7 +80,7 @@
 
 		# Check against what is running.
 		#
-		Array( config['processes'] || self.class.check ).each do |process|
+		Array( config['check'] || self.class.check ).each do |process|
 			process_r = Regexp.new( process )
 			found = procs.find{|p| p.match(process_r) }
 			errors << "'%s' is not running" % [ process ] unless found