@@ -37,6 +37,8 @@ function Show-Icinga()
37
37
$JEAContext = Get-IcingaJEAContext ;
38
38
$JEASessionFile = Get-IcingaJEASessionFile ;
39
39
$IcingaForWindowsCert = Get-IcingaForWindowsCertificate ;
40
+ $ServicePid = Get-IcingaForWindowsServicePid ;
41
+ $JEAServicePid = Get-IcingaJEAServicePid ;
40
42
41
43
if ([string ]::IsNullOrEmpty($DefinedServiceUser )) {
42
44
$DefinedServiceUser = ' ' ;
@@ -47,8 +49,11 @@ function Show-Icinga()
47
49
if ([string ]::IsNullOrEmpty($JEASessionFile )) {
48
50
$JEASessionFile = ' ' ;
49
51
}
50
- if ($null -eq $IcingaForWindowsCert -Or [string ]::IsNullOrEmpty($IcingaForWindowsCert )) {
51
- $IcingaForWindowsCert = ' Not installed' ;
52
+ if ([string ]::IsNullOrEmpty($ServicePid )) {
53
+ $ServicePid = ' ' ;
54
+ }
55
+ if ([string ]::IsNullOrEmpty($JEAServicePid )) {
56
+ $JEAServicePid = ' ' ;
52
57
}
53
58
54
59
$Output += ' ' ;
@@ -57,6 +62,8 @@ function Show-Icinga()
57
62
$Output += ([string ]::Format(' PowerShell Root => {0}' , (Get-IcingaForWindowsRootPath )));
58
63
$Output += ([string ]::Format(' Icinga for Windows Service Path => {0}' , $IcingaForWindowsService.Directory ));
59
64
$Output += ([string ]::Format(' Icinga for Windows Service User => {0}' , $IcingaForWindowsService.User ));
65
+ $Output += ([string ]::Format(' Icinga for Windows Service Pid => {0}' , $ServicePid ));
66
+ $Output += ([string ]::Format(' Icinga for Windows JEA Pid => {0}' , $JEAServicePid ));
60
67
$Output += ([string ]::Format(' Icinga Agent Path => {0}' , $IcingaAgentService.RootDir ));
61
68
$Output += ([string ]::Format(' Icinga Agent User => {0}' , $IcingaAgentService.User ));
62
69
$Output += ([string ]::Format(' Defined Default User => {0}' , $DefinedServiceUser ));
@@ -69,9 +76,15 @@ function Show-Icinga()
69
76
$Output += ([string ]::Format(' Api Check Forwarder => {0}' , (Get-IcingaFrameworkApiChecks )));
70
77
$Output += ([string ]::Format(' Debug Mode => {0}' , (Get-IcingaFrameworkDebugMode )));
71
78
$Output += ' ' ;
72
- $Output += ' Icinga for Windows Certificate' ;
79
+ $Output += ' Icinga for Windows Certificate: ' ;
73
80
$Output += ' ' ;
74
- $Output += $IcingaForWindowsCert ;
81
+ if ($null -eq $IcingaForWindowsCert -Or [string ]::IsNullOrEmpty($IcingaForWindowsCert )) {
82
+ $Output += ' Not installed' ;
83
+ } else {
84
+ $Output += ([string ]::Format(' Issuer => {0}' , ($IcingaForWindowsCert.Issuer )));
85
+ $Output += ([string ]::Format(' Subject => {0}' , ($IcingaForWindowsCert.Subject )));
86
+ }
87
+
75
88
$Output += ' ' ;
76
89
77
90
$Output += (Show-IcingaRegisteredBackgroundDaemons );
0 commit comments