Correct monitored service name: IISADMIN -> W3SVC #3
+1
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fixes #2
fixes #3
ref/IP/58070
How to install this ...
... for testing
Enable-WindowsOptionalFeature -FeatureName IIS-WebServerRole -Online
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
Install-IcingaComponent -Name plugins
... in production
C:\iispatch
New-IcingaRepository -Name iispatch -Path C:\iispatch -Snapshot
Install-IcingaComponent -Name iis -Snapshot
Now
C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-iis\provider/public/New-IcingaProviderFilterDataIIS.psm1
must look as in files changed here!Test
Tested on WS25, WS16 and 2012r2.
With this PR, Invoke-IcingaCheckIISHealth may complain with "[UNKNOWN] IIS Service: The IIS tools are not installed" (on 2012r2 or even crash on newer ones). At least this is a different error message than #2. And it can be fixed like this:
Enable-WindowsOptionalFeature -FeatureName IIS-ManagementScriptingTools -Online
WS16+
2012r2
🤷♂️
Friendly reminder
– https://learn.microsoft.com/en-us/windows-server/get-started/extended-security-updates-overview
My recommendations
@Wintermute2k6
Until the next release, as a bridge technology, install this PR as above. Or wait for it to be merged and use our snapshot repo.
@bobapple
Merge this, so that customers can directly use our snapshot repo instead of a custom one created from the @Al2Klimov namespace. The diff is dead simple and it works on my machineTM.