Hello,
I am new to Zabbix and so far I have not encountered any major problem.
However, I now want to use powershell script to get, for example, the number of sessions of people logged on to a certain server.
The script works great and I get the value that I need, but I would like to get the $lastexitcode to know if my script worked as planned.
I tried using UserParameter, and it does work but it means that for every server I want to monitor I have to edit the confiig file and that when I will have to change any script I will have to edit every single config file manually. I work on a big infrastructure with close to 100 servers total.
My question is: Is there a way to get exit codes without using UserParameters?
Thank you for your time.
(Ps: sorry for my english)
I am new to Zabbix and so far I have not encountered any major problem.
However, I now want to use powershell script to get, for example, the number of sessions of people logged on to a certain server.
The script works great and I get the value that I need, but I would like to get the $lastexitcode to know if my script worked as planned.
I tried using UserParameter, and it does work but it means that for every server I want to monitor I have to edit the confiig file and that when I will have to change any script I will have to edit every single config file manually. I work on a big infrastructure with close to 100 servers total.
My question is: Is there a way to get exit codes without using UserParameters?
Thank you for your time.
(Ps: sorry for my english)
Comment