Answer the question
In order to leave comments, you need to log in
How to send data to Zabbix from a powershell script?
There is a powershell script that does some work, as a result of this work, it sends a letter to the mail - everything is fine or everything is bad ... There is a zabbix monitoring system and I want to do something so that the result of the script execution is sent not only to the mail, but also on the zabbix server, it's more convenient, you can set up all sorts of triggers, etc. Tell me where to dig? Running the script using the zabbix agent and waiting for the result is not an option, the script does not start on schedule and can run for quite a long time.
Now, as an option, I consider the result of the script execution to be logged in the windows log and from there to take the zabbix agent, but I would like to directly send the result.
Answer the question
In order to leave comments, you need to log in
It says this to me:
zabbix_sender.exe -vv -c path_to_zabbix_sender_folder\zabbix_agentd.conf -s $Host -k $Key -o $PowerShellOutput
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question