Skip to main content

How to get the value of a macro ? For example: $CENTREONPLUGINS$  ?

 

Hi @Yves Formet 

Where do you want to use it? have you had the opportunity to go over https://docs.centreon.com/cloud/monitoring/basic-objects/macros/ ?


Thanks for your answer.

I clicked on your link and find the info about pollers/ressource item.

On my Centreon pollers/ressource item, I find values for 2 macros, USER1 and CENTREONPLUGINS. 

If I look in command/notification → host-notify-by-email, I find a script with lot of macros inside. 

Am I supposed to initialize these macros or have they a value yet ?

In fact, I try to use Centreon for sending mails when an alarm occurs. I have installed the Alma8 VM.

I think it’s very difficult to send mails ! (for instance, postfix is not installed...)


For the notifications you need to follow this:

https://docs.centreon.com/docs/administration/postfix/

 

 


Thanks for your answer. I’m able now to send mails. Pfuuuuu ! 

Have a good week-end, 

Yves


Reply