Class: Arborist::Monitor::SNMP::Process

Inherits:
Object
  • Object
show all
Extended by:
Configurability, Loggability
Includes:
Arborist::Monitor::SNMP
Defined in:
lib/arborist/monitor/snmp/process.rb

Overview

SNMP running process checks.

This only checks running userland processes.

Constant Summary collapse

PROCESS =

OIDS for discovering running processes. Of course, Windows does it slightly differently.

{
	netsnmp: {
		list: '1.3.6.1.2.1.25.4.2.1.4',
		args: '1.3.6.1.2.1.25.4.2.1.5'
	},
	windows: {
		list: '1.3.6.1.2.1.25.4.2.1.2',
		path: '1.3.6.1.2.1.25.4.2.1.4',
		args: '1.3.6.1.2.1.25.4.2.1.5'
	}
}

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.node_propertiesObject

Return the properties used by this monitor.



45
46
47
# File 'lib/arborist/monitor/snmp/process.rb', line 45

def self::node_properties
	return USED_PROPERTIES
end

.run(nodes) ⇒ Object

Class #run creates a new instance and immediately runs it.



52
53
54
# File 'lib/arborist/monitor/snmp/process.rb', line 52

def self::run( nodes )
	return new.run( nodes )
end

Instance Method Details

#run(nodes) ⇒ Object

Perform the monitoring checks.



59
60
61
62
63
# File 'lib/arborist/monitor/snmp/process.rb', line 59

def run( nodes )
	super do |host, snmp|
		self.gather_processlist( host, snmp )
	end
end