-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatible with latest Purity OS #3
Comments
We recently upgraded Purity to 6.5.7 and this script stopped working. The script was reporting the error: "Invoke-RestMethod : The underlying connection was closed: An unexpected error occurred on a send." I did some quick RESTAPI testing in Postman and determined that the API calls are still working. Maybe that will break in the future, but not at this version of Purity. For whatever reason (TLS related?), the script fails to make the RESTAPI connection in PowerShell 5, but in my debugging, I quickly discovered that it works perfectly fine in PowerShell 7. There's probably a much better solution to this problem, but the following workaround solved the problem for us by having PRTG launch the script using PowerShell 7. Install PowerShell 7 on your PRTG server and any PRTG probe servers (if you have them). Create a new .BAT file in your PRTG EXEXML folder on each server. I called mine:
Inside the .BAT file
Create a new EXE/Script Advanced sensor and select this new batch file. In the Parameters section, pass the full path to the unmodified Get-PureFA-Sensor.ps1 script, along with the previous parameters.
Note that the entire parameter is passed to PowerShell, so we have to remove the single-quotes around the strings. Anyway, this seems to work fine for us. Hope you have similar luck. |
Hi I had the same issue with Purity 6.5.7. Fixed it like that:
Cheers |
ladedruck's solution worked for me on 6.5.8. Thanks for that! |
Can confirm ladedruck's solution as well. We used our internal CA to generate a new certificate. The default self-signed cert doesn't have a CN, so isn't valid for PRTG to connect. Looks like [email protected] no longer works at Pure, unfortunately, so hopefully others here are smart enough to check this Issues section. I think I might fork it. |
emike09 did fork it, and his fork is working great for us. |
after upgrading to purity 6.5.x this wonderful monitor stopped functioning with "connection reset" errors.
called pure and they said they dropped support for the 1.x API versions
anyone have awareness of an updated sensor?
The text was updated successfully, but these errors were encountered: