Skip to main content
Question

Modern notification

  • February 16, 2026
  • 7 replies
  • 44 views

Forum|alt.badge.img+6

Hello,

Somebody know a fresh project for have a notification per mail with html ?

I see GitHub - mcinquin/centreon-notifications: New notifications for Centreon but it’s 9 years old.

HTML/formatted Notification | Community stil in the backlog apparently ?

Regards,

B’

7 replies

Forum|alt.badge.img+13

A potential solution is to use the centreon-plugins email notification module.

centreon-plugins/src/notification/email/plugin.pm at develop · centreon/centreon-plugins

That’s what is being used by default for notifications (from what i know) and you can format your own HTML templates with templated perl files (templates folder in the link).

Hope this satisfies your needs


Forum|alt.badge.img+3
  • Steward *
  • April 9, 2026

I've started looking into this option; it looks very promising, but I don't think customization is supported.

The templates are bundled into the only .pl file in the centreon-plugin-Notification-Email package, and there don't seem to be any options available in the script's arguments for using external templates.

 

You can still copy the script under a different name and edit it directly, but you'll have to do this every time there's an upstream update, along with conflict resolution, etc.


Forum|alt.badge.img+13

I've started looking into this option; it looks very promising, but I don't think customization is supported.

The templates are bundled into the only .pl file in the centreon-plugin-Notification-Email package, and there don't seem to be any options available in the script's arguments for using external templates.

 

You can still copy the script under a different name and edit it directly, but you'll have to do this every time there's an upstream update, along with conflict resolution, etc.

Yeah, i didn’t dig into it, it seems that it’s meant to only supports centreon oriented use cases.

I suppose what you could do is a custom script of your own with a template engine (python or something) and send the content to a local postfix to send the email (or send it directly through the script).

There is example for postfix configurations at Configuring your Centreon to send emails | Centreon Documentation and you can basically pipe any output a command to send your content through email.

I’m sad there isn’t something supported like that within the plugins. Could be a good contribution to do.


Forum|alt.badge.img+3
  • Steward *
  • April 9, 2026

This allows you to send emails that look cleaner than the default ones; it requires a bit of integration work (notification commands), and there’s no dependency on a local Postfix,  the plugin can connect to any SMTP server accessible via a poller.

I’m going to try working on a copy of the script anyway to adapt it to my brand identity, and see how future updates go, but I’m optimistic—the code was updated only once in 2025, three times in 2024, and each time the commits were fairly small.


Forum|alt.badge.img+3
  • Steward *
  • April 21, 2026

I can confirm that it is possible to create email notifications that are much more polished than the default ones. This does require significant changes to the existing code, but since this script hasn't been updated in a long time and is feature-complete, it's more than enough for our needs.

 

Ideally, I’d like to try generating graphs using Grafana instead of RRDTool, but I don’t think that’s supported by Centreon (yet?).

 


Forum|alt.badge.img+13

Ideally, I’d like to try generating graphs using Grafana instead of RRDTool, but I don’t think that’s supported by Centreon (yet?).

You “can” denormalize the stored data in centreon to another backend like the ones used in grafana (like Mimir for exemaple).

But if it’s only for visualisation, you can follow this How to display the Centreon performance graph in Grafana dashboards | Community to call the centreon api from grafana and have your dashboards there.


Forum|alt.badge.img+3
  • Steward *
  • April 21, 2026

Sorry, I mixed up Centreon's features with those of OMD, which uses Grafana to display performance data