Skip to main content
Solved

Hide username and password in custom service based on custom command.

  • December 19, 2024
  • 2 replies
  • 89 views

Forum|alt.badge.img+10

Hello all,

I created a custom command with multiple arguments, as URL, port, USERNAME and PASSWORD

 

In service template definition, I would like hide values of USERNAME and PASSWORD

Is it possible to hide these fields, as we can do it in “centreon service templates”

 

Regards,

 

Laurent

Best answer by ponchoh

​Hello @LaurentV 

Have you considered using macros?

https://docs.centreon.com/docs/monitoring/basic-objects/macros/#custom-macros

You can have these options:

Same goes for Hosts 👍

2 replies

ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • Answer
  • December 19, 2024

​Hello @LaurentV 

Have you considered using macros?

https://docs.centreon.com/docs/monitoring/basic-objects/macros/#custom-macros

You can have these options:

Same goes for Hosts 👍


Forum|alt.badge.img+10
  • Author
  • Builder *
  • December 20, 2024

Indeed, I didn’t consider it :-D

 

it works very well. Thanks for your support.

 

Laurent