How do you retreive them?
I would like to have a key "system.environment" to retreive any variables on a windows system.
I tried several version:
- Putting %VAR% in the item definition and system.environement[*], echo $1
- Putting VAR in the item definition and system.environement[*], echo %$1%
- Tried with cmd /c, with and without quotes, etc...
All the client does is returning the exact string I sent to it plus whatever is in the echo command.
To be clear, I wish to retreive windows environement variable to the zabbix server.
I would like to have a key "system.environment" to retreive any variables on a windows system.
I tried several version:
- Putting %VAR% in the item definition and system.environement[*], echo $1
- Putting VAR in the item definition and system.environement[*], echo %$1%
- Tried with cmd /c, with and without quotes, etc...
All the client does is returning the exact string I sent to it plus whatever is in the echo command.
To be clear, I wish to retreive windows environement variable to the zabbix server.
We have a client software for which the server to connect to is define in a user's variable. We which to be alerted if that variable is not set to what is expected for each client.
Comment