all scripts

This commit is contained in:
Alexpolo1
2023-03-09 09:06:25 +01:00
parent 49b677d254
commit bf7c3012b7
115 changed files with 68517 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
$urlHost = 'http://sysops-prod.east-west.dk'
$urlPath = '/nagios/cgi-bin/status.cgi?host=Equipment'
$uri = $urlHost + $urlPath
$request = [System.Net.HttpWebRequest]::Create($uri)
try {
[System.Net.HttpWebResponse]$request.GetResponse()
}
catch {
$ex = $_.Exception.InnerException
if($ex.Response -eq $null -or ([System.Net.HttpWebResponse]$ex.Response).StatusCode -ne [System.Net.HttpStatusCode]::Unauthorized) { throw $_ }
#$header = $_.Response.Headers['WWW-Authenticate']
}