I am trying to count the number of entries that match "httpd" at the time of check. Like a snapshot sampling.
It only returns the parent PID of the matching process...
Is there a way to returned all matches and count them?
Saw a count function but that seems to be for the zabbix_agent.
This agent-less SNMP method is turning out to be lots of fun
Code:
Type: SNMPv2 agent SNMP OID: HOST-RESOURCES-MIB::hrSWRunIndex["index","hrSWRunName", "httpd"] SNMP community: public SNMP port: 161 Key: hrSWRunName.httpd Type of information: Text
Is there a way to returned all matches and count them?
Saw a count function but that seems to be for the zabbix_agent.
This agent-less SNMP method is turning out to be lots of fun

Comment