Icinga / icinga-powershell-framework

This PowerShell module will allow to fetch data from Windows hosts and use them for inventory and monitoring solutions. Together with the Icinga Web 2 module, a detailed overview of your Windows infrastructure will be drawn.
MIT License
78 stars 33 forks source link

IfW Powershell Framework - JEA Service orphaned #734

Closed Wintermute2k6 closed 5 months ago

Wintermute2k6 commented 6 months ago

Issue Description

Under some circumstances it seems possible that the main icinga2 service get's stuck (crashed but in service tab still listed as running)and therefore the JEA Service keeps on running. There should be a solution for a graceful restart/graceful kill of both services to have them running in dependency again.

Because SC failure icinga2.exe reset= 0 actions= restart/0/restart/0/restart/0 doesn't cover this edge case.

ref/NC/816257

LordHepipud commented 6 months ago

Side note: It's the icingapowershell service and not the icinga2 service

Wintermute2k6 commented 6 months ago

apology, my failure .. thanks for correcting

Wintermute2k6 commented 6 months ago

ref/NC/816257 Addition:

Under certain circumstances the Icinga PowerShell service may crash. This crash leaves an orphaned JEA session behind, which causes the service to terminate itself after a few milliseconds when restarted automatically/manually. Since the service is not active in this situation, the monitoring raises a critical alarm in the service check. The service should be allowed to run in parallel and only actively attempt to establish a new JEA session if the old, orphaned process disappears for some reason.