Skip to main content
Solved

Get logged in user

  • March 13, 2024
  • 1 reply
  • 71 views

Forum|alt.badge.img+8

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,

Best answer by lpinsivy

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

1 reply

lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • 1120 replies
  • Answer
  • March 25, 2024

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