Markus Kraus of My Cloud-(R)evolution has written an excellent article on monitoring Veeam Backup and Replication using PRTG without needing to use the Veeam Enterprise Manager.
His article is available here: http://mycloudrevolution.com/2016/03/21/veeam-prtg-sensor-reloaded/
Since the original article is in German, Markus has kindly agreed to let us offer an English version of the article in the Knowledge Base.
FREE Backup for VMs, Windows, Linux, laptops, NAS and more! Veeam® Backup & Replication™ Community Edition is the must-have FREE backup software to protect virtual, physical and cloud workloads. This free gift from Veeam can protect up to 10 workloads: VMware, Hyper-V, Windows & Linux servers, laptops, NAS and more! I run Veeam ONE Free and today when I logged on it told me I needed a license. No problem, followed the link & got one right quick. The problem is I can't figure out where to install the file. Accoring to KB1481 there should be a 'License' tab in the Veeam Monitor Server Settings, but I don't have that tab. In this video I demonstrate a quick and easy way to backup/restore/move your ESXi 5.1 virtual machines using Veeam backup and replication v6.5.For more infor. Veeam Backup & Replication Community Edition. Veeam Backup & Replication Community Edition is the FREE solution that provides host-based backup and replication for VMware, Hyper-V, and AHV. Also, it is an agent-based backup solution for Windows and Linux workstations and servers which is a physical computer or in the cloud. Release notes / Documentation. Veeam Backup & Replication Community Edition. Download product. Release notes / Documentation. Veeam Agent for Microsoft Windows FREE. Download product. Release notes / Documentation. Veeam Agent for Linux FREE. Download product.
If you’re already using the Veeam Enterprise Backup Manager, you may also be interested in this article, which explains how to monitor Veeam using Enterprise Manager.
33 Replies
![Veeam Veeam](https://www.veeam.com/content/dam/veeam/global/stencils_screenshot.png.web.1280.1280.png?ck=1528190316680&ck=1528190316680)
DISCLAIMER: This CUSTOM SENSOR and its underlying script was made by http://mycloudrevolution.com/. We ONLY translated the how-to into English. For any question to this approach, please get in contact with https://github.com/mycloudrevolution/Advanced-PRTG-Sensors/
Note: There is a known issue when upgrading to Veeam v10. For more information or updates, see the GitHub page. |
Veeam PRTG Sensor Reloaded
Thanks for all the feedback on my PRTG – Veeam B & R Monitoring article. It’s become clear to me that Veeam Enterprise Server and its RESTful API isn’t as widespread as I thought. So, I’ve created a new version of my PRTG Veeam Advanced Sensor – the Veeam PRTG Sensor Reloaded.
- Use the Veeam Powershell Snapin
- Take the target server (Veeam B&R server) as a parameter
- Report on repository usage
- Simple to extend
I quickly ran into a fundamental problem when using the Veeam Powershell Snapin in conjunction with PRTG:
The Veeam PowerShell Plugin is 64-bit only, but PRTG runs all scripts on the probe in 32-bit only.
Free License Plate Search
After some research and testing, I found the PSx64 tool from PRTG Tools Family (@prtgtoolsfamily), which has proven to be a good and robust solution.
The PSx64 tool is added to PRTG as an EXE/Script Advanced sensor:
How to install free vpn on amazon firestick. You can also include parameters, for example, the FQDN of the Veeam B&R server:
-f= PowerShell Script-p= Parameter für das Script – z.B. „-BRHost veeam01.lan.local“
Since the script requires powershell session credentials to set up the connection to the Veeam Backup & Recovery Server, these credentials need to be entered into PRTG, and then you need to use the option “use Windows credentials of parent device”.
Note: The script below is cut-and-paste from GitHub. To get a copy of the most recent version, use this GitHub Gist
Many thanks to Shawn Masterson (@smasterson24) for creating this fantastic Veeam Report, which I used as the basis for this sensor.
Version 1.2 – 09.08.2016
- New: BackupCopy Sessions
- Improvement: Exclude unused data
- Improvement: PS Region definitions
- Improvement: PS Required definitions
- Tested with Veeam B&R Version 9 Update 1 und Update 2
Version 1.3 – 03.11.2016
- New: Debug
- New: additional parameters “-reportmode -repoCritical -repoWarn”
- Improvement: reorganize the regions
I’ve created a GitHub Repository with the most current scripts. I invite you to take part in this project. Whether it’s a pull request, bug report or feature request – all input and participation is welcome.
DISCLAIMER: This CUSTOM SENSOR and its underlying script was made by http://mycloudrevolution.com/. We ONLY translated the how-to into English. For any question to this approach, please get in contact with https://github.com/mycloudrevolution/Advanced-PRTG-Sensors/
Thank you Markus for the great work!It's a pleasure to monitor our Veeam environment with your powershell sendor.
Is there a minimum version of Veeam Backup & Replication required to run the script?
Dear team,
Many thanks for this script, this one fully success when my distant probe is on the same server of veeam server.But when my probe is on one server and Veeam on otherone, I have the terrible message 'JSON' shema is not correct.
I use this argument is the success exemple: -f='PRTG-VeeamBRStats.ps1'For the 2 different server (PRTG distant and Veeam), I use this one: -f='PRTG-VeeamBRStats.ps1' -p='-BRHost srv-veeam-1.jans.local'
All the orther options are the same (write on disk, ..)
Any idea ?
First, many thanks again :)
Hi there,
Please activate the 'Write EXE result to disk' option in the sensor's settings and post the log files (Result of Sensor XXX.Data.txt and Result of Sensor XXX.txt) located on the corresponding probe under 'C:ProgramDataPaesslerPRTG Network MonitorLogs (Sensors)'.
Best regards.
Please activate the 'Write EXE result to disk' option in the sensor's settings and post the log files (Result of Sensor XXX.Data.txt and Result of Sensor XXX.txt) located on the corresponding probe under 'C:ProgramDataPaesslerPRTG Network MonitorLogs (Sensors)'.
Best regards.
I am also getting a JSON error on this sensor. The output appears correct when run directly through Powershell, and I get data in my log that is actually my data, but I think there is something wrong with the formatting.
Error in PRTG:
XML: XML Parser mismatch: Wanted , got -- JSON: The returned JSON does not match the expected structure (Invalid JSON.). (code: PE231)
From my log:
From my data log (i removed identifying information and replaced with <>):
Hi there,
Unfortunately, the output is entirely incorrect. Please note that the output has to begin with '<prtg>' followed by '<result>', like this:
Unfortunately, the output is entirely incorrect. Please note that the output has to begin with '<prtg>' followed by '<result>', like this:
Best regards.
That's what I thought, and that is what I get from the script when it is run directly in Powershell. Somewhere along the lines, formatting for PRTG is failing. I guess I need to figure that out. Thanks!
I'm receiving an error when i start the sensor: 'Connect-VBRServer : Failed to connect to Veeam Backup & Replication server: Access denied. '
The security context is set to 'Use Windows Credentials of Parent Device'
Which user account do i need to use in order to get it running?
R,
Hi there,
Have you entered the correct user details in the Windows Credentials of Parent Device?
Best regards.
Have you entered the correct user details in the Windows Credentials of Parent Device?
Best regards.
Thank for the tip, i overlooked the credentials of the parent device, the script is up and running.
Thank,
Thanks Dariusz, it is working.
Does anyone know if its possible to monitor the status of the Backupobject (VM's) rather than the backupjob.We have multiple objects per job and in the currtent situation the status shows failed when one of the backupobjects has failed to create a backup.
R,
Hi,
I am using the script but running into an issue. I believe I have everything working correctly.
If I run the script manually from Powershell on the PRTG server, or check the 'result of sensor' log from the PRTG logs folder, I see the expected output
However, from PRTG console I get error 'response not well-formed: '(Starting to process ..etc, etc.
Where am I going wrong?Thanks in advance
Hi there,
There must be something in the log that breaks the output. Please activate the 'Write EXE result to disk' option in the sensor's settings and post the log files (Result of Sensor XXX.Data.txt and Result of Sensor XXX.txt) located on the corresponding probe under 'C:ProgramDataPaesslerPRTG Network MonitorLogs (Sensors)'.
Best regards.
There must be something in the log that breaks the output. Please activate the 'Write EXE result to disk' option in the sensor's settings and post the log files (Result of Sensor XXX.Data.txt and Result of Sensor XXX.txt) located on the corresponding probe under 'C:ProgramDataPaesslerPRTG Network MonitorLogs (Sensors)'.
Best regards.
Hello together, I have the problem, that if I want to create the following error:
https://push.schmandre.de/2018-10-09_10:35:18_cfc261be3694455c35c20db4908524ed.png
I have two virtual machines. One with Veeam (X.X.X.105) and one with PRTG (X.X.X.104). (X are just placeholders for IP. In real they are filled with right numbers).
Cause they are not in a domain, I've entered the following parameters at the PRTG Veeam sensors to let PRTG connect to the Veeam machine:
https://push.schmandre.de/2018-10-09_10:35:18_cfc261be3694455c35c20db4908524ed.png
I have two virtual machines. One with Veeam (X.X.X.105) and one with PRTG (X.X.X.104). (X are just placeholders for IP. In real they are filled with right numbers).
Cause they are not in a domain, I've entered the following parameters at the PRTG Veeam sensors to let PRTG connect to the Veeam machine:
-f='PRTG_VeeamBRStats.ps1' -p='-BRHost X.X.X.105“ |
and as programm PSx64.exe
I've enabled the powershell by the 'Set-ExecutionPolicy RemoteSigned' command.
Now I dont have any ideas to fix the problem )=
Hope anyone has an idea.
Best regards
Schmand_
I've enabled the powershell by the 'Set-ExecutionPolicy RemoteSigned' command.
Now I dont have any ideas to fix the problem )=
Hope anyone has an idea.
Best regards
Schmand_
Hi Anré,
The same is valid as for the posters before. :)
Please activate the 'Write EXE result to disk' option in the sensor's settings and post the log files (Result of Sensor XXX.Data.txt and Result of Sensor XXX.txt) located on the corresponding probe under 'C:ProgramDataPaesslerPRTG Network MonitorLogs (Sensors)'.
Best regards.
The same is valid as for the posters before. :)
Please activate the 'Write EXE result to disk' option in the sensor's settings and post the log files (Result of Sensor XXX.Data.txt and Result of Sensor XXX.txt) located on the corresponding probe under 'C:ProgramDataPaesslerPRTG Network MonitorLogs (Sensors)'.
Best regards.
So maybe here can be the problem.
I just have added a new sensor to the local probe which is running on my prtg sever.
As I understand I have to create a second local probe on my Veeam Server?
I just have added a new sensor to the local probe which is running on my prtg sever.
As I understand I have to create a second local probe on my Veeam Server?
Cause as you can see, the VeeamSnapIn cannot be found, cause on the prtg server, veeam isnt is installed.
Hi André,
Could you issue the following PowerShell Command on the PRTG Core Server to see what you get back?
Could you issue the following PowerShell Command on the PRTG Core Server to see what you get back?
Get-PSSnapin -Name VeeamPSSnapIn |
Best regards.
Hello Dariusz,
thanks for the fast reply. On the PRTG Core Server I get the following message:
Best regards.
Hi André,
The error message indicates that the VMWare Snapin could not be found on the PRTG Server. Unfortunately, I am not sure what to do at this point as this script is not created by us as mentioned in the initial Top Answer:
https://github.com/mycloudrevolution/Advanced-PRTG-Sensors/
Best regards.
The error message indicates that the VMWare Snapin could not be found on the PRTG Server. Unfortunately, I am not sure what to do at this point as this script is not created by us as mentioned in the initial Top Answer:
https://github.com/mycloudrevolution/Advanced-PRTG-Sensors/
Best regards.
Hi Dariusz,
the problem that the Veaam SnapIn cannot be found on prtg core server is correct. But on the server where Veeam is installed I'll get the following reply.
So correct me if Iam wrong but is there a way to execute the powershell script at the target machine (Veeam) and not on the Core PRTG server?
Hi André,
Could you try installing the snapin on the Core Server?
https://www.veeam.com/kb1489
Best regards.
Could you try installing the snapin on the Core Server?
https://www.veeam.com/kb1489
Best regards.
Anyone got any suggestions on why I am getting this issue when I manually try running the command?
PS C:Program Files (x86)PRTG Network MonitorCustom SensorsEXEXML> .PSx64.exe -f='PRTG-VeeamBRStats.ps1' -p='-BRHost xxx.xxx.xxx.xxx'0: PowerShell environment initialization failed
This is on the PRTG core server and in a 64bit PS window I can access the Veeam snap-in
Any suggestions? Am I doing something wrong? When I run the script manually (not using PSx64.exe) it works correctly.
It's more likely that you'll receive a response on their GitHub repository :)
Home depot free wood floor installation. Hi everyone
Veeam One Free License Installed
I installed ps64 and the script on the probe and it doesn<t work
If i go on the probe directly and try to run the .ps1 -p x.x.x.x it says the user doesn't have the right to connect to the BR server
But the same script works on the BR server itself
And yes i installed the Veeam console on the probe
Any help?
Please post that as an issue in their Github repository. We can't assist with this, unfortunately :(
Hi quick question, i was able to make the sensor work
Now when a backup fail we go get the error, but if we do another backup and it success the Sensor still has 1 in fail, and give us a down status
How can we fix that?
Thanks
See my previous reply :/ Sorry for not being of much help here, but 3rd party scripts are out of scope. When recreating the Sensor, does it show the status correctly? Or when pausing/resuming?
Can you please update the Script for Veeam V11? Powershell Snapin isn't working anymore. So you have to Import Powershell-Module.Thanks in advance.
Does anybody know what to change, to get it working in V11 ?
Hi there,
for everyone asking for a fixed version for version 11 of Veeam, please note the Disclaimer above:
DISCLAIMER: This CUSTOM SENSOR and its underlying script was made by http://mycloudrevolution.com/. We ONLY translated the how-to into English. For any question to this approach, please get in contact with https://github.com/mycloudrevolution/Advanced-PRTG-Sensors/
Apparently, there is already an ongoing discussion (German) on the developer's blog:
https://mycloudrevolution.com/de/2016/03/21/veeam-prtg-sensor-reloaded/
This being said, please check back the developers Github space for any updates. Once released, we will update the article here as well.
Thank you very much in advance,
Sebastian
for everyone asking for a fixed version for version 11 of Veeam, please note the Disclaimer above:
DISCLAIMER: This CUSTOM SENSOR and its underlying script was made by http://mycloudrevolution.com/. We ONLY translated the how-to into English. For any question to this approach, please get in contact with https://github.com/mycloudrevolution/Advanced-PRTG-Sensors/
Apparently, there is already an ongoing discussion (German) on the developer's blog:
https://mycloudrevolution.com/de/2016/03/21/veeam-prtg-sensor-reloaded/
This being said, please check back the developers Github space for any updates. Once released, we will update the article here as well.
Thank you very much in advance,
Sebastian
Hi
I downloaded the latest version of ps-script (from github) and psx64.exe (from https://prtgtoolsfamily.com/downloads/sensors). It works fine.
I also would try the script, but I can't find the psx64.exe on the prtgtoolsfamily-website.
Hello Guenter,
You will find the application PSx64 in the list on the PRTG Tools Familywebsite mentioned above, as illustrated below:
Regards.
Please log in or register to enter your reply.
Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.