This module keeps track of the total queue size when using exim. The module runs exim -bpc to retrieve the total mail queue size.

Exim Mail Queue Size Metrics

Total Queue Size

Installing the Exim Mail Queue Size Plugin

The nixstats user needs sudo access to run exim -bpc. Open /etc/sudoers and append the following at the end of the file.

nixstats ALL=(ALL) NOPASSWD: /usr/sbin/exim
This is considering exim is installed in /usr/sbin/exim.

Now open /etc/nixstats.ini and append the following lines at the end of the file.

enabled = yes

Testing the exim plugin

Run sudo -u nixstats nixstatsagent test exim the following to see if everything is installed correctly.

root@nixstats:~# sudo -u nixstats nixstatsagent test exim
"queue_size": 0

If the test is successful you can restart the agent to start sending data to Nixstats.

service nixstatsagent restart

Create an Exim Mail Queue chart

Click on the Metrics link on the top menu, now select "exim" as metric type and queue_size as metric, choose the servers you would like to graph and save it to your dashboard.
Was this article helpful?
Thank you!