iSmartyPRO / zabbix_template_rdp_monitoring

Zabbix RDP Template
27 stars 30 forks source link

Problemas com o zabbix 6 #4

Open 18vamberto opened 2 years ago

18vamberto commented 2 years ago

Good afternoon

I tried to use your template in zabbix 6.0.7, but I can't see any data, can you help me with this, do you plan to release it for zabbix 6?

Yours sincerely. 2022-09-12_132352

stuecking commented 1 year ago

same Problem here. I only get hte message unsupported item key

stuecking commented 1 year ago

add the following line to the zabbix_agentd.conf on the Windows Server UserParameter=rdp.terminal.server[*],powershell.exe -NoProfile -File "C:\app\zabbix\scripts\rdp.terminal.server.ps1" "$1" "$2"

fabioeducampos commented 1 year ago

Friend, I did this whole process but it still doesn't work in Zabbix 6

stuecking commented 1 year ago

Friend, I did this whole process but it still doesn't work in Zabbix 6

I created this Skript for the Installation. With this Skript i dont get this error anymore

You need to run this in cmd as Admin on the Windows Server you want to monitor

mkdir C:\app\zabbix\scripts
mkdir C:\app\zabbix\conf\rdp
curl "https://files.jezz.systems/etc/zabbix/terminal/rdp.terminal.server.ps1" -o "C:\app\zabbix\scripts\rdp.terminal.server.ps1"
curl "https://files.jezz.systems/etc/zabbix/terminal/rdp.terminal.server.conf" -o "C:\app\zabbix\conf\rdp\rdp.terminal.server.conf"
curl "https://files.jezz.systems/etc/zabbix/terminal/PSTerminalServices.zip" -o "C:\app\zabbix\conf\rdp\PSTerminalServices.zip"
powershell -command "Expand-Archive C:\app\zabbix\conf\rdp\PSTerminalServices.zip -DestinationPath 'C:\Windows\System32\WindowsPowerShell\v1.0\Modules\'"
del "C:\app\zabbix\conf\rdp\PSTerminalServices.zip"
echo UserParameter=rdp.terminal.server[*],powershell.exe -NoProfile -File "C:\app\zabbix\scripts\rdp.terminal.server.ps1" "$1" "$2" >> "C:\Program Files\Zabbix Agent 2\zabbix_agent2.conf"
net stop "Zabbix Agent 2" && net start "Zabbix Agent 2"
fabioeducampos commented 1 year ago

FRIEND I DID THIS PROCESS EXACTLY PRACTICALLY THE SAME ON SERVER 2019 WITH THE COMMANDS IT IS WORKING NORMALLY I SAY THIS VIA POWER SHELL INSIDE THE C:\APP FOLDER EXECUTE THIS COMMANDS .\rdp.terminal.server.ps1 ACTIVE .\rdp.terminal.server.ps1 ACTIVENUM .\rdp.terminal.server.ps1 IP .\rdp.terminal.server.ps1 DEVICE .\rdp.terminal.server.ps1 INACTIVE .\rdp.terminal.server.ps1 INACTIVENUM
And RETURN NORMALLY NOW ZABBIX DOES NOT BRING THE INFORMATION
I'll be testing other templates to see if it works and post answers for you

veieras commented 8 months ago

Fabio, vai no item do seu Zabbix, e muda de Agent Active para Agent que funciona. Testei aqui agora.

Abraço!

iSmartyPRO commented 8 months ago

Hello freinds,

Soon I am planning to update this repository and test with Zabbix 6

P.S> now I am using Zabbix 6.4.2 and its works well with this template. I'll export templeate from my Zabbix and update this repo.