mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 15:19:58 -05:00
12 lines
311 B
PowerShell
12 lines
311 B
PowerShell
|
|
function Get-IcingaAgentBinary()
|
||
|
|
{
|
||
|
|
$IcingaRootDir = Get-IcingaAgentRootDirectory;
|
||
|
|
$IcingaBinary = (Join-Path -Path $IcingaRootDir -ChildPath '\sbin\icinga2.exe');
|
||
|
|
|
||
|
|
if ((Test-Path $IcingaBinary) -eq $FALSE) {
|
||
|
|
throw 'Icinga Agent binary could not be found';
|
||
|
|
}
|
||
|
|
|
||
|
|
return $IcingaBinary;
|
||
|
|
}
|