Skip to content

Commit

Permalink
Adjust release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelZ committed Jun 7, 2022
1 parent 9a011cc commit 1e64593
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
11 changes: 7 additions & 4 deletions Custom Sensors/EXEXML/Get-SSLReport.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ You can easily parse this using `Get-SSLReport -servername example.com | Convert
2019-11-22 Version 0.1 Initial Version
2021-03-19 Version 0.1.1 Updated input from "host" to match parameter name of function "ServerName"
2022-06-07 Version 0.1.2 Updated error handling
2022-06-07 Version 0.1.3 Improve cache behavior
.EXAMPLE
Expand Down Expand Up @@ -124,9 +125,11 @@ function Get-SSLReport {
)

# Construct the URI part for Caching
if ($MaxCacheAgeHours -eq 0)
{
if ($MaxCacheAgeHours -eq 0) {
$MaxCacheAgeHours -eq 1
$cacheString = "&startNew=on"
} elseif ($MaxCacheAgeHours -lt 0) {
$cacheString = ""
} else {
$cacheString = "&fromCache=on&maxAge=$MaxCacheAgeHours"
}
Expand Down Expand Up @@ -155,10 +158,10 @@ function Get-SSLReport {
{
"IN_PROGRESS" {
Write-Verbose "Scan is in progress. Waiting."
start-sleep -Seconds 10; return Get-SSLReport -serverName $serverName -maxCacheAge $maxCacheAge -timeoutSec $timeoutSec }
start-sleep -Seconds 10; return Get-SSLReport -serverName $serverName -maxCacheAge -1 -timeoutSec $timeoutSec }
"DNS" {
Write-Verbose "Scan is in progress. Waiting."
start-sleep -Seconds 10; return Get-SSLReport -serverName $serverName -maxCacheAge $maxCacheAge -timeoutSec $timeoutSec }
start-sleep -Seconds 10; return Get-SSLReport -serverName $serverName -maxCacheAge -1 -timeoutSec $timeoutSec }
"ERROR" {
throw $parsed.statusMessage
}
Expand Down
1 change: 1 addition & 0 deletions Custom Sensors/EXEXML/QualysSSLReport.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ System.String. A JSON string that PRTG can understand as a custom sensor
.NOTES
2019-11-22 Version 0.1 Initial Version
2022-06-07 Version 0.1.2 Updated error handling
.EXAMPLE
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ Use at least 1 hour.
|------------|---------------|-------------|
|2019-11-22 | Version 0.1 | Initial Version |
|2021-03-19 | Version 0.1.1 | Updated input from "host" to match parameter name of function "ServerName" |
|2022-06-07 | Version 0.1.2 | Updated error handling |
|2022-06-07 | Version 0.1.2 | Updated error handling |
|2022-06-07 | Version 0.1.3 | Improve cache behavior |

0 comments on commit 1e64593

Please sign in to comment.