Solved

MACRO

  • 2 November 2023
  • 4 replies
  • 42 views

Badge +1

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

 

icon

Best answer by ponchoh 2 November 2023, 20:58

View original

4 replies

Userlevel 4
Badge +13

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/ ?

Badge +1

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...)

Userlevel 4
Badge +13

For the notifications you need to follow this:

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

 

 

Badge +1

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

Have a good week-end, 

Yves

Reply