Skip to main content

🇬🇧

Hello,

I have a VMWare probe "Datacenter Alarm Custom" configured on a VCSA. When I encounter an issue reported by the vCenter, I get all the details in the resource status:

Statut détaillé

CRITICAL: Datacenter 'DCXXXXXX' 1 problem(s) detected

checking datacenter 'DCXXXXXX'

critical: alarm :red] mVirtualMachine] aXXXXXXXXX] X2025-04-08T13:33:26.854728Z] Virtual machine CPU usage/Default alarm to monitor virtual machine CPU usage

 

This is perfect, but I would like to receive this content via email as well, especially in case of anomalies at night or any other time when I am not in front of the monitoring system. However, the history does not mention the details nor the email notifications:

mardi 8 avril 2025 15:07
Critique
Tentatives: 3
CRITICAL: Datacenter \'XXXXXXXX\' 1 problem(s) detected

 

***** centreon Notification *****

Notification Type: PROBLEM

Service: Datacenter-Alarms
Host: XXXXXXXX
Address: 123.45.67.89
State: CRITICAL

Date/Time: 08-04-2025 Additional Info : CRITICAL: Datacenter XXXXXXXX 1 problem(s) detected

 

❓Would it be possible to find these details at least in the emails?

(The logs on the VCSA side are heavily polluted by backup tools or Centreon connections)

 

Thanks :)

 

🇨🇵

Bonjour,

J’ai une sonde VMWare “Datacenter Alarm Custom” de configuré sur un VCSA. Quand j’ai un soucis de remonté par le vCenter, j’ai tout le détail dans le status de la ressources :

Statut détaillé

CRITICAL: Datacenter 'DCXXXXXX' 1 problem(s) detected

checking datacenter 'DCXXXXXX'

critical: alarm ered] XVirtualMachine] tXXXXXXXXX] 2025-04-08T13:33:26.854728Z] Virtual machine CPU usage/Default alarm to monitor virtual machine CPU usage

 

C’est parfait mais j’aurai souhaité avoir ce contenu aussi par mail, notamment en cas d’anomalie la nuit ou n’importe quelle autre période ou je ne suis pas devant la supervision. Sauf que l’historique ne mentionne pas le détail ni les notifications par mail :

mardi 8 avril 2025 15:07
Critique
Tentatives: 3
CRITICAL: Datacenter \'XXXXXXXX\' 1 problem(s) detected

 

***** centreon Notification *****

Notification Type: PROBLEM

Service: Datacenter-Alarms
Host: XXXXXXXX
Address: 123.45.67.89
State: CRITICAL

Date/Time: 08-04-2025 Additional Info : CRITICAL: Datacenter XXXXXXXX 1 problem(s) detected

 

❓Serait il possible de retrouver ces détails au moins dans les mails ?

 

(Les logs coté VCSA sont très pollués par les outils de sauvegardes ou les connexions de Centreon)

 

Merci :)

Hi ​@Fab G. you can edit your notification command (be default service-notify-by-email) and add $LONGSERVICEOUTPUT$ macro to get extended output.


🇬🇧

Hello,

 

Thank you! Tested and approved :)

For those who are looking: Configuration > Commands > Notifications. Modify one of the existing service templates or duplicate it, then add "LONG" in the argument “SERVICEOUTPUT” as previously indicated at the command line level. Then go to Configuration > Users > Users/Contacts, select your target contact, and choose the service notification command you just modified.

 

Have a nice day.

 

🇫🇷

Bonjour,

 

Merci ! Testé et approuvé :)

Pour ceux qui cherchent : Configuration > Commandes > Notifications. Modifier un des modèles service existant ou dupliquez le puis ajoutez “LONG” dans l’argument comme indiqué précédemment au niveau de la ligne de commande. Allez ensuite dans Configuration > Utilisateurs > Utilisateurs/Contacts, sélectionner votre contact cible et choisissez la commande de notification service que vous venez de modifier.

 

Bonne journée


Reply