librenms / docker

LibreNMS Docker image
MIT License
691 stars 278 forks source link

html emails not being generated? #243

Closed bcookatpcsd closed 2 years ago

bcookatpcsd commented 2 years ago

Thank you for taking the time to set all of this up.

I did try manually to configure some of the included components.. and it was no where near as nice as this; so thank you in advance for your efforts..

I've chosen the rrdcached-server compose, and edited the .env for my TZ, I also tried to msmtp going.. but have my own relay which I currently have set.

I did url [8000/alert-rules] and create rules from collection to get the default/stock values..

via the url [8000/settings/global] I can see all the settings are what I think they should be.

allow_unauth_graphs true allow_unauth_graphs_cidr [ "10.20.0.0/16" ] email_html true

these two confuse me.. alerts.email.default_only alerts.email.enable false

as I do receive emails.

image

But this is an example of an email that arrives:

image

And this is the page of the device events section:

image

My question is, I do not see graphs in the emails that I receive, and I do not understand what the email that I received has to do with the events on this device page?

(does that make sense)

Please let me know if I can provide or explain anything further..

Thank you in advance for your time..

murrant commented 2 years ago

The email, checks to see if the alert template includes any html and if it does not, it sends it as plain text.

Update your alert template to include html and you will get html.

crazy-max commented 2 years ago

Closing this issue since that should answer your question, but feel free to re-open if it doesn't. Thanks.