romainsi / zabbix-VEEAM_B-R

52 stars 40 forks source link

XML files not getting created #64

Open Trembler34 opened 2 years ago

Trembler34 commented 2 years ago

I was able to fix the various other errors with the discovery issues but now it seems the XML files are not getting generated.. I am getting this error. Ive checked UAC on machine, execution policy, etc.. I can manually execute the script to the point it asks for an option..

What could be causing this problem?

image

xorRAT commented 2 years ago

I solved my problem like this: -Give access(for your user) in regedit :"HKEY_LOCAL_MACHINE\SOFTWARE\VEEAM\ -Check your ExecutionPolicy in powershell: Get-ExecutionPolicy set Unrestricted -run(run as Administrator): powershell.exe -NoProfile -ExecutionPolicy Bypass -File "C:\Program Files\Zabbix Agent\scripts\zabbix_vbr_job.ps1" ExportXml -Check folder: "C:\Program Files\Zabbix Agent\scripts\TempXmlVeeam" -Also check zabbix_agent.conf configuration, Zabbix-Server-Web(Administration-General-Regular Expressions)

ThreshTheRed commented 1 year ago

Having the same problem on Windows Server 2019 Standard. It works on 2022 Standard tho.

Somehow, launching it manually from powershell: powershell.exe -NoProfile -ExecutionPolicy Bypass -File "C:\Program Files\Zabbix Agent\scripts\zabbix_vbr_job.ps1" ExportXml Creates files:

obraz

ThreshTheRed commented 1 year ago

Kind of workaround I did was to schedule a daily event on task scheduler.