Nagios does not have an option to configure the email relay

Bug #1874863 reported by Camille Rodriguez
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Nagios Charm
Won't Fix
Wishlist
Unassigned

Bug Description

When installing the nagios charm, we can input an admin email to receive emails for any alerts going on. However, the configuration of the email relay or of an smtp server (i.e sendmail) on the nagios unit must be done manually. It would be preferable to have a charm option that sets this automatically.

Tags: field-medium
Revision history for this message
Camille Rodriguez (camille.rodriguez) wrote :

What is currently being recommended to customers, but that could be a charm option instead for the smtp relay config :

Configure postfix (it is already installed in the Nagios unit)
$ juju ssh nagios/0
$ dpkg-reconfigure -p high postfix  #this will prompt questions, choose Satellite system to configure your mail name and the SMTP relay host.

Make sure you have the port 25 whitelisted in between your SMTP host and the nagios unit.

Revision history for this message
Camille Rodriguez (camille.rodriguez) wrote :

The configuration of postfix could be done similarly as to what is done for the landscape-server charm.

Revision history for this message
Alvaro Uria (aluria) wrote :

I see two approaches here:
1) Since nagios3-common package depends on default-mta | mail-transport-agent (ie. in Bionic, postfix is installed), charm-nagios could go all the way and configure the MTA. For that, we would need to have extra options to decide if we want Postfix configured in localhost-only or as a smarthost.

2) Use a different charm https://jaas.ai/search?q=postfix to configure the MTA

The downside about the first approach is that Nagios could well be deployed on the same unit as the landscape-server charm, and the Postfix configuration would conflict.

For now, and since the email configuration is optional, I'm going to mark this bug as wishlist.

Changed in charm-nagios:
status: New → Confirmed
importance: Undecided → Wishlist
tags: added: field-medium
Revision history for this message
Pedro Guimarães (pguimaraes) wrote :

I have an ongoing deployment that is also affected by this issue

Revision history for this message
Eric Chen (eric-chen) wrote (last edit ):

This charm is no longer being actively maintained. Please consider using the new Canonical Observability Stack instead.
(https://charmhub.io/topics/canonical-observability-stack)
I will close this feature request

Changed in charm-nagios:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.