Date: Fri, 29 Mar 2024 13:14:19 +0000 (UTC) Message-ID: <368232190.5763.1711718059246@ip-10-0-1-161.ec2.internal> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_5762_1813411419.1711718059239" ------=_Part_5762_1813411419.1711718059239 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Processes metrics are not available by default via Net-SNMP; the= refore the Net-SNMP collection method in Uptime Infrastructure Monitor does= not gather process metrics. With a few extra lines added to snmpd.co= nf and a SNMP Poller monitor, it is possible to set up process count monito= ring and alerting for Net-SNMP elements. I'll give the steps first an= d the logic follows later in the article.
This SNMP Poller will pull back the number of occurrences of the process= es specified with the proc directive in snmpd.conf. If the occurrence= is greater than one, a warning alert will be sent and if it is less than o= ne, a critical alert will be sent.
The MIB being leveraged for this SNMP query is UCD-SNMP-MIB, which = is usually a regular part of a Net-SNMP install, and the table of interest = is the prTable. For a full description of each of the OIDs in the prT= able, see http://net-snmp.so= urceforge.net/docs/mibs/ucdavis.html#prTable.
The OID specified when configuring the SNMP Poller monitor is UCD-S= NMP-MIB::prCount (.1.3.6.1.4.1.2021.2.5). For each of the processes s= pecified in snmpd.conf using the "proc" directive, UCD-SNMP-MIB::prCou= nt.x will contain the number of occurrences of that process.
Two values are required, along with the process name, when adding the pr= oc directive to snmpd.conf. These are max and min values for the numb= er of occurrences of the process. If these values are exceeded, = UCD-SNMP-MIB::prErrorFlag will be set to 1 (otherwise it is zero). It= is better to allow the SNMP Poller monitor to do the threshold comparison = though because the alert messaging will be more clear and the metric can be= retained for graphing purposes, if desired.