lib/arborist/monitor/snmp/process.rb
changeset 26 54f2f57cc0b0
parent 16 d6773db8469c
equal deleted inserted replaced
25:6217282f6070 26:54f2f57cc0b0
    69 
    69 
    70 	### Collect running processes on +host+ from an existing (and open)
    70 	### Collect running processes on +host+ from an existing (and open)
    71 	#### +snmp+ connection.
    71 	#### +snmp+ connection.
    72 	###
    72 	###
    73 	def gather_processlist( host, snmp )
    73 	def gather_processlist( host, snmp )
    74 		config = self.identifiers[ host ].last || {}
    74 		config = self.identifiers[ host ].last['config'] || {}
    75 		errors = []
    75 		errors = []
    76 		procs  = self.system =~ /windows\s+/i ? self.get_windows( snmp ) : self.get_procs( snmp )
    76 		procs  = self.system =~ /windows\s+/i ? self.get_windows( snmp ) : self.get_procs( snmp )
    77 
    77 
    78 		self.log.debug "Running processes for host: %s: %p" % [ host, procs ]
    78 		self.log.debug "Running processes for host: %s: %p" % [ host, procs ]
    79 		self.results[ host ] = { count: procs.size }
    79 		self.results[ host ] = { count: procs.size }