Answer the question
In order to leave comments, you need to log in
How to display active Windows user in Zabbix?
The monitoring server is running on zabbix (centos). There was a question about monitoring logged in users on the
zabbix PC:
Create item -
Type:zabbix-agent
Key: Users.list
Type:Text
On windows in the agent config:
UserParameter=users.list, whoami
Result in zabbix:
nt authority\▒▒⥬▒
What is the problem?
Answer the question
In order to leave comments, you need to log in
The command line output encoding was not recognized. Try to force change it to utf8 (I can't check now):
Or, to change the key without editing the agent's config:
True whoami will display the name of the current user running the agent.
wmi.get[root\cimv2,SELECT UserName from Win32_ComputerSystem]
This gets the actual User, but {INVENTORY.ALIAS} only appears in the letter variable. I couldn't stuff it into the trigger name...
and the output is text like this:
Issue: CPU Hot on userhost
Issue identified at 11:06:27 date 2018.04.04
Device: userhost
Affects: domain\username
Severity: Warning
Issue ID: 294117
also we use the global transfer of variables {ALERT.MESSAGE} {ALERT.MESSAGE} from zabbix to scripts for automation
zabbix is used for "oborna" from uzvers and small automation. (Printer does not print, hot cold computer "msg * report when you will be absent from the workplace for 1 hour" and smart disks)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question