You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Telegraf v1.6.2 from official influxdata repo.
Ubuntu 16.04
Steps to reproduce:
Install postfix
Add parameter hash_queue_depth = 3 in file /etc/postfix/main.cf
Restart postfix
Send 100 emails to that will be deferred to generate activity in deferred queue.
Drop all emails in deferred queue with postsuper -d ALL deferred
Install telegraf
Create config file /etc/telegraf/telegraf.d/input-postfix.conf with following content:
[[inputs.postfix]]
## Postfix queue directory. If not provided, telegraf will try to use
## 'postconf -h queue_directory' to determine it.
queue_directory = "/var/spool/postfix"
I think that would work fine yes.
We should probably adjust the plugin to do the same for the other directories as well. It's possible for for any queue to use the nested hash scheme. Just not the default, and very rare to do so (though I expected we'd see that case before we saw this, so that goes to show what I know :-P).
Relevant telegraf.conf:
System info:
Telegraf v1.6.2 from official influxdata repo.
Ubuntu 16.04
Steps to reproduce:
hash_queue_depth = 3
in file/etc/postfix/main.cf
postsuper -d ALL deferred
telegraf --config /etc/telegraf/telegraf.d/input-postfix.conf --input-filter postfix --test
Expected behavior:
For deferred queue, length should be 0:
Actual behavior:
Deferred queue length is not 0. It is equal to the number of folders inside each sub-folder of
/var/spool/postfix/deferred/
.Additional info:
Example on my server:
The text was updated successfully, but these errors were encountered: