Forum Discussion
Damion
Jul 06, 2011Cirrus
On the mail server system I added to /etc/snmp/snmpd.conf
proc smtpd 150 1
snmp will give an error string if there are more then 150 or fewer the 1 process running.
Using snmpwalk I found the MIB snmpwalk -v2c -c public localhost prTable
UCD-SNMP-MIB::prNames.1 = STRING: smtpd
UCD-SNMP-MIB::prCount.1 = INTEGER: 0
UCD-SNMP-MIB::prErrMessage.1 = STRING: Too few smtpd running ( = 0)
UCD-SNMP-MIB::prNames.2 = STRING: pmx-milter
UCD-SNMP-MIB::prCount.2 = INTEGER: 0
UCD-SNMP-MIB::prErrMessage.2 = STRING: Too few pmx-milter running ( = 0)
So I could use either snmpwalk or snmpget to retrieve the prErrMessage and act upon that.