Skip to main content
Solved

MACRO

  • November 2, 2023
  • 4 replies
  • 85 views

Forum|alt.badge.img+1

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

 

Best answer by ponchoh

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

4 replies

ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • 531 replies
  • Answer
  • November 2, 2023

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


Forum|alt.badge.img+1
  • Author
  • Steward *
  • 2 replies
  • November 7, 2023

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


ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • 531 replies
  • November 7, 2023

For the notifications you need to follow this:

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

 

 


Forum|alt.badge.img+1
  • Author
  • Steward *
  • 2 replies
  • November 10, 2023

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

Have a good week-end, 

Yves