- Persona : centreon user and specially Business Activities referents
- Problem to solve : Business activities are made with few KPI, and notifications by email, generated by failure on any KPI, are configured with commands notifications. But it’s It’s currently impossible to include, in these commands, the detail of the KPI which have generate the alert. So it’s difficult to analyse the alert notifications afterwards. There is no usable macro to represent the kpi.
Ex de commande :
/usr/bin/printf "%b" "***** Centreon BAM *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nBusiness Activity: $SERVICEDISPLAYNAME$\nState: $SERVICESTATE$\n\nDate: $DATE$ $TIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\nDernier Service dont l'etat a change: $LASTSERVICESTATECHANGE$\nDonnées brutes de la BA: $SERVICEPERFDATA$ " | @MAILER@ -s "** $NOTIFICATIONTYPE$ - $SERVICEDISPLAYNAME$ is $SERVICESTATE$ **" $CONTACTEMAIL$
- Expected outcome : the business activity referent would immediatly know which KPI (centreon service) has generated alert without to search in logs
- Potential solutions : include KPI (id and label) in notifications generated by itself or perhaps with a macro which could be used in commands
