equal
deleted
inserted
replaced
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 } |