Monitoring queue count in postfix.
check-postqueue -w 100 -c 200
First, build this program.
go get https://github.com/sugy/check-postqueue
go install
Next, you can execute this program :-)
check-postqueue -w 100 -c 200
If there are no problems in the execution result, add a setting in mackerel-agent.conf .
[plugin.checks.check-postqueue]
command = ["check-postqueue", "-w", "100", "-c", "200"]
-w, --warning= number of messages in queue to generate warning (default: 100)
-c, --critical= number of messages in queue to generate critical alert ( w < c ) (default: 200)
Please execute check-postqueue -h
and you can get command line options.
- Forked check-mailq.