Comments (19)
Hello,
Veeam Console Connection works on that Server?
Have tried the manual execution of the Script, or only in PRTG?
If you have tried the manual execution, what is the Error?
Best Regards,
Markus
from advanced-prtg-sensors.
From memory there is.
Currently I launch it manually, as I announced using the port in your script I have error messages but if I use 9392 nothing displayed.
from advanced-prtg-sensors.
Have you modifed any ports during Veeam B&R Setup? If so you need to modify also the Port in Console Login Window.
Might you please post the error message from PS Console here?
from advanced-prtg-sensors.
Hello !
With your port i got this :
Invoke-WebRequest : Impossible de se connecter au serveur distant
Au caractère C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML\PRTG-VEEAM-SessionStats.ps1:11 : 12
+ $AuthXML = Invoke-WebRequest @Auth
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation : (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExcepti
on
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
Indexation impossible dans un tableau Null.
Au caractère C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML\PRTG-VEEAM-SessionStats.ps1:14 : 1
+ $Sessions = @{uri = "http://X.X.X.X:9399/api/reports/summary/job_ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation : (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArray
Invoke-RestMethod : Impossible de valider l'argument sur le paramètre «Uri». L’argument est Null ou vide. Indiquez un
argument qui n’est pas Null ou vide et réessayez.
Au caractère C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML\PRTG-VEEAM-SessionStats.ps1:20 : 39
+ [xml]$SessionsXML = invoke-restmethod @Sessions
+ ~~~~~~~~~
+ CategoryInfo : InvalidData : (:) [Invoke-RestMethod], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
Indexation impossible dans un tableau Null.
Au caractère C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML\PRTG-VEEAM-SessionStats.ps1:27 : 1
+ $VMs = @{uri = "http://X.X.X.X:9399/api/reports/summary/vms_overv ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation : (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArray
Invoke-RestMethod : Impossible de valider l'argument sur le paramètre «Uri». L’argument est Null ou vide. Indiquez un
argument qui n’est pas Null ou vide et réessayez.
Au caractère C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML\PRTG-VEEAM-SessionStats.ps1:33 : 34
+ [xml]$VMsXML = invoke-restmethod @VMs
+ ~~~~
+ CategoryInfo : InvalidData : (:) [Invoke-RestMethod], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
With 9392 port nothing is happening :
PS C:\Users\Administrateur.WIN-OAANMH1TN57> C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML\PRTG-VEEAM-SessionStats.ps1
We didn't change any ports during Veeam B&R setup.
EDIT : With my user for the script, i've access to console by launching it (rights : read only)
from advanced-prtg-sensors.
Can you access the Veeam Enterprise Manager by Internet Explorer from this Server?
Sorry, at first iI thought you are talking about the native Veeam PowerShell Script...
from advanced-prtg-sensors.
i've just Veeam B&R
from advanced-prtg-sensors.
This Script only works with veeam ent. Manager. Try this one:
https://github.com/mycloudrevolution/Advanced-PRTG-Sensors/blob/master/Veeam/PRTG-VeeamBRStats.ps1
But you need to Install veeam Console on your prtg Server first.
from advanced-prtg-sensors.
I'll try.
But i prefer your script with manager, my chief will install Veeam ent. Manager
Thank's for your helping
EDIT :
if (!(Get-PSSnapin -Name VeeamPSSnapIn -ErrorAction SilentlyContinue)) {
if (!(Add-PSSnapin -PassThru VeeamPSSnapIn)) {
# Error out if loading fails
Write-Error "`nERROR: Cannot load the VEEAM Snapin."
Exit
}
doesn't work because my PRTG Server don't have VEEAM.
from advanced-prtg-sensors.
Thats why i mentioned that you need to install Veeam Console on PRTG Server to use the other Script...
Do you think the issue Can be closed?
from advanced-prtg-sensors.
Not yet
In case for the users of Windows Server 2016 ;) like that I could give you the new manners.
from advanced-prtg-sensors.
OK, then might you please be more exact with your Problem description:
- Which script do you use at the moment?
- Which OS Version is the Server where PS Script is Executed
- Which PS Version uses the Server where PS Script is Executed
- Which Veeam Version do you Use?
from advanced-prtg-sensors.
At the moment i try this script :
https://gist.github.com/mycloudrevolution/713b2e4aa767257f84cc#file-prtg-veeam-sessionstats-ps1
I using Windows Server 2016 (PS version : 5.1.14393.1480) for my PRTG Server and using Windows Server 2008 R2 for Veeam (PS version : 2.0).
Veeam Version : 9.5
from advanced-prtg-sensors.
This Script does not require the Veeam PowerShell Module. But you need a Veeam Enterprise Manager and Veeam Ent. Plus License to gather the Stats.
I have not verified the Script with Windows 2016 Server and PS Version 5.1.
BTW: This Script is not Part of this Repository...
from advanced-prtg-sensors.
https://gist.github.com/mycloudrevolution/713b2e4aa767257f84cc#file-prtg-veeam-sessionstats-ps1
working with 9399 port (http) i didn't have error and the script executed successfully.
EDIT :
9080 : working for the WEBUI but doesn't work in the script
9399 : Does not give any results
EDIT 2 :
https://helpcenter.veeam.com/docs/backup/rest/em_web_api_reference.html?ver=95
from advanced-prtg-sensors.
up ^^
from advanced-prtg-sensors.
If no Data or Error is returned the possible problem is that no veeam Backup server is configured in ent. Manager. Have you checked that?
from advanced-prtg-sensors.
from advanced-prtg-sensors.
Sorry, then I am not able to do more remote Diag.
I have verified the Script a few days ago with the latest version and it has worked fine...
from advanced-prtg-sensors.
Script working now i have some results.
But in my PRTG Server i have nothing about my GB Size, protected VM, sucessfull
Any idea ?
EDIT :
EDIT 2 :
Adding the parameter -UseBasicParsing after Invoke-WebRequest @Auth = working
Now i'll configurate my probe :D
from advanced-prtg-sensors.
Related Issues (20)
- Since installation of CVE-2023-27532 HOT 5
- Probe on another server HOT 3
- Un-Managed Agent Jobs not covered
- Please add SureBackup Jobs HOT 1
- Verify/Update Session Filters
- Problem using remote probe HOT 15
- Access to the Veeam\backup path denied after v11 Veeam update HOT 37
- XML/JSON issue. (Code: PE233) (Code: PE231) HOT 27
- Your request has timed out HOT 2
- Veeam.Backup.Core.CBackupRepository Failed HOT 2
- XML: Structural error in xml file HOT 2
- CouldNotAutoloadMatchingModule HOT 5
- XML: Structural error in xml file, 12 open items. -- JSON: The returned JSON does not match the expected structure (Invalid JSON.). (code: PE231) HOT 1
- SyncSpaceInfoToDb Failed --> $RepoData = $repoList | Get-vPCRepoInfo HOT 5
- Backup Copy Jobs now recognized HOT 8
- 'Disconnect-VBRServer' is not recognized as the name of a cmdlet on new v3 script HOT 1
- Error when Repository unavailable HOT 3
- NULL can't be converted in to Type "System.Guid" HOT 1
- Veeam Backu V12 XML: Structural error in xml file, 2 open items. -- JSON: Das zurückgelieferte JSON entspricht nicht der erwarteten Struktur (Invalid JSON.). (Code: PE231) HOT 1
- Error SyncSpaceInfoToDB HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from advanced-prtg-sensors.