jarischaefer / docker-librenms

Docker image for LibreNMS
MIT License
115 stars 37 forks source link

Mailq is filling with poller errors #62

Closed GillesMocellin closed 6 years ago

GillesMocellin commented 6 years ago

Hello,

I see a great amount of files in /var/spool/mqueue-client. They are error emails from crontab.

As you said in your documentation, sendmail is not working, we should use SMTP for alerting, so system emails can't reach out too.

The simplest is to add a /dev/null redirection to the poller cron line, th only one which does not have one: /5 * librenms . /etc/librenms_environment; /opt/librenms/cronic /opt/librenms/poller-wrapper.py PLACEHOLDER_POLLERS

PS: By the way, is sendmail, as a package, mandatory in your container ?

jarischaefer commented 6 years ago

Thanks, I will fix those errors in the next build.

By the way, is sendmail, as a package, mandatory in your container ?

Sendmail is included in baseimage-librenms, but might not be strictly necessary.

jarischaefer commented 6 years ago

Fixed in 5f838c43f68d2ef2d122b8f4dac38349aadcbbb7 and available here.