SNMP - getting information from a process
I need to set up a process monitor on multiple servers using Zenoss monitoring tool. The problem I am facing is how can I get information about a specific process via SNMP? I'm not familiar with SNMP at all and I'm having trouble figuring out what I need.
I am trying to use a tool called SNMP-Probe, but it only seems to give basic system information, nothing I need or can use.
Any help is appreciated here.
source to share
You need to query hrSWRunTable to collect the information you need. This MIB gives you a lot of information like process name, path, type, status, parameters, CPU and RAM usage, although these two information are stored in another MIB ( hrSWRunPerfEntry ). However, how you do this depends on the environment you are using, I'm pretty sure the vbs includes the SNMP library.
source to share
Here is an example of a NetSnmp search from a Linux host. (I would add this as a comment to the accepted answer from @ raz3r, but I wanted to format the text!)
snmptable -v2c -Ci -c public myserver HOST-RESOURCES-MIB::hrSWRunTable
SNMP table: HOST-RESOURCES-MIB::hrSWRunTable
index hrSWRunIndex hrSWRunName hrSWRunID hrSWRunPath hrSWRunParameters hrSWRunType hrSWRunStatus
1 1 "init" SNMPv2-SMI::zeroDotZero "/sbin/init" "" application runnable
2 2 "kthreadd" SNMPv2-SMI::zeroDotZero "kthreadd" "" application runnable
3 3 "ksoftirqd/0" SNMPv2-SMI::zeroDotZero "ksoftirqd/0" "" application runnable
// other rows snipped for brevity
source to share