Solved

Get logged in user

  • 13 March 2024
  • 1 reply
  • 27 views

Badge +7

I need to create a check command that launches a script but passing it the user who is logged in that session.

 

I've been looking in the macros but I can't find any that give me this possibility.

Can you help me?

 

Regards,

icon

Best answer by Laurent 25 March 2024, 11:01

View original

1 reply

Userlevel 6
Badge +18

Hi @carnabil you can’t execute a plugin with the name of the user connected to Centreon UI.

If you need the name of user connected in a term (session) you need to use Linux command such as “who” or “whoami”.

Regards

Reply