2019-10-05 15:59:03 -04:00
|
|
|
function Test-IcingaThread()
|
|
|
|
|
{
|
|
|
|
|
param(
|
|
|
|
|
[string]$Thread
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
if ([string]::IsNullOrEmpty($Thread)) {
|
|
|
|
|
return $FALSE;
|
|
|
|
|
}
|
|
|
|
|
|
2021-12-09 11:42:06 -05:00
|
|
|
return $Global:Icinga.Public.Threads.ContainsKey($Thread);
|
2019-10-05 15:59:03 -04:00
|
|
|
}
|