Here is how I got this working for Postfix queue monitoring. Modified the getpfqueues.sh script.
#/bin/bash QUEUES="incoming active deferred hold" QUEUEDIR=/var/spool/postfix #====================================================================# # Main - # #====================================================================# # Start script for i in $QUEUES; do COUNT=`find $QUEUEDIR/$i -type f | wc -l | sed 's/ *//g'` echo $COUNT done Updated snmpd.conf exec .1.3.6.1.4.1.2021.8.2.101.1 queuecount /opt/TCS/scripts/getpfqueues.sh Tested on the zenoss server. # snmpwalk -v2c -cpublic 10.12.14.226 1.3.6.1.4.1.2021.8.2.101.1 UCD-SNMP-MIB::extTable.2.101.1.1.1 = INTEGER: 1 UCD-SNMP-MIB::extTable.2.101.1.2.1 = STRING: "queuecount" UCD-SNMP-MIB::extTable.2.101.1.3.1 = STRING: "/opt/TCS/scripts/getpfqueues.sh" UCD-SNMP-MIB::extTable.2.101.1.100.1 = INTEGER: 0 UCD-SNMP-MIB::extTable.2.101.1.101.1 = STRING: "4" UCD-SNMP-MIB::extTable.2.101.1.101.2 = STRING: "28" UCD-SNMP-MIB::extTable.2.101.1.101.3 = STRING: "860" UCD-SNMP-MIB::extTable.2.101.1.101.4 = STRING: "0" UCD-SNMP-MIB::extTable.2.101.1.102.1 = INTEGER: 0 Zenoss Config: Template - Postfix Data Sources: queuesActive 1.3.6.1.4.1.2021.8.2.101.1.101.2 SNMP True queuesDeferred 1.3.6.1.4.1.2021.8.2.101.1.101.3 SNMP True queuesHold 1.3.6.1.4.1.2021.8.2.101.1.101.4 SNMP True queuesIncoming 1.3.6.1.4.1.2021.8.2.101.1.101.1 SNMP True Created data points called active, deferred, hold, and incoming. Graph Definitions: Postfix Queues active, deferred, hold, incoming 100 500 Added the individual data points and its graphing correctly. The only problem now is thresholds. I created a threshold for active queue and its not triggering an event. Any ideas on how to troubleshoot thresholds? -------------------- m2f -------------------- Read this topic online here: http://community.zenoss.com/forums/viewtopic.php?p=22881#22881 -------------------- m2f -------------------- _______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
