Powermta Monitoring 8080 |link| Site
http-listener listen-address :8080 # Restrict to localhost or your monitoring IP allow "127.0.0.1" allow "10.0.0.0/8"
#!/bin/bash METRICS=$(curl -s http://localhost:8080/pmta/stats) QUEUE_SIZE=$(echo "$METRICS" | grep "pmta.system.queue.size" | awk 'print $2') if [ "$QUEUE_SIZE" -gt 50000 ]; then echo "CRITICAL: PMTA queue > 50k messages" exit 2 elif [ "$QUEUE_SIZE" -gt 10000 ]; then echo "WARNING: Queue building up" exit 1 else echo "OK: Queue size $QUEUE_SIZE" exit 0 fi powermta monitoring 8080
Have a favorite PMTA monitoring script or dashboard? Share it in the comments below! Instead, it serves (similar to CSV or key-value
It doesn't serve a fancy HTML dashboard by default (though you can build one). Instead, it serves (similar to CSV or key-value pairs) perfect for scripts, Prometheus exporters, or Nagios checks. How to Enable and Test It First, ensure your configuration has this block: test it locally: Example telegraf.conf snippet:
After reloading PMTA ( pmta reload ), test it locally:
Example telegraf.conf snippet:
