failed to import-module icinga2agent

This forum was archived to /woltlab and is now in read-only mode. Please register a new account on our new community platform.

You can create a thread on the new site and link to an archived thread. This archive is available as knowledge base, safe and secured.

More details here.
  • hi all,


    Code
    1. Get-Module -ListAvailable
    2. didnt find Icinga2 module
    3. import-module icinga2agent didnd work
    4. where to find the path to icinga2agent module ? tried on windows 2012R2 and 2016 same result
  • Hi,


    run the following command in PowerShell

    Code
    1. echo $env:PSModulePath


    This returns some paths (separated with a semicolon) where you can store the Icinga 2 PowerShell module. Create in one of the returned path a sub-folder named like the module ("Icinga2Agent") and store the moduel (the .psm1 file) in that folder. Now you should be able to find and use the module.


    For more details please have a look into the install documentation of the Icinga 2 PowerShell module here:

    https://github.com/Icinga/icin…er/doc/02-Installation.md