josh miller btynehitsecureadmincom c thala wrote one 4 incoming mail servers get stuck whatever reason queue mail couple hours noticed sort fault use nagios didnt set anything check mail basic check port 25 open apart postqueue p postfix built mechanisms admin queue use third party product whip script hi c use following monitoring mechanism monitor postfix mailq nagios also creates mechanism monitoring items via idea 1 define service check using simple perl script queries host arbitrary snmp oid check_snmp entry checkcommandscfg equivalent checkcommandscfg define command command_name check_snmp command_line user1check_snmppl h hostaddress c arg1 servicescheck_mailq_snmpcfg define service service_description mailq check_command check_snmp13614150011001011 2 server running postfix install nagios plugin check_mailq create following entry etcsnmpsnmpdconf etcsnmpsnmpdconf respond snmp requests oid querying mailq exec 1361415001100 mailqcheck usrlocalnagioslibexeccheck_mailq w2 c4 t7 mpostfix 3 configure postfix instances monitored service check using preferred method ie hostgroup service group etc method takes minutes setup put configuration cfengine equivalent seamless setup subsequent hosts hth joshua miller rhcevcp fri 08 aug 2008 020316 0800 monitoring queue mechanisms