Hello,
I am trying to install Windows Failover Cluster monitoring by carefully following each step indicated in this URL: https://github.com/zbx-sadman/WSFC. The problem is that when the powershell script is executed, the following error appears:
Import-Module : The specified module 'FailoverClusters' was not loaded because no valid module file was found in any
module directory.
At C:\Zabbix\scripts\wsfc.ps1:496 char:1
+ Import-Module -Name FailoverClusters -Verbose:$False -Cmdlet Get-*
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (FailoverClusters:String) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Comman ds.ImportModuleCommand
Get-Cluster : The term 'Get-Cluster' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zabbix\scripts\wsfc.ps1:500 char:16
+ $Clusters = Get-Cluster
+ ~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-Cluster:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
WARNING: No cluster(s) availabile
I changed the user running the service, removing the LocalSystem and placing a computer administrator user and the result is the same. I have also changed in the wsfc.ps1 the path where the FailoverClusters module is located and the same message still appears. If I place the module in the directory where the script is the message changes that it cannot load the DLLs it needs for the module load.
Please I require your help to implement this monitoring.
Thank you.
I am trying to install Windows Failover Cluster monitoring by carefully following each step indicated in this URL: https://github.com/zbx-sadman/WSFC. The problem is that when the powershell script is executed, the following error appears:
Import-Module : The specified module 'FailoverClusters' was not loaded because no valid module file was found in any
module directory.
At C:\Zabbix\scripts\wsfc.ps1:496 char:1
+ Import-Module -Name FailoverClusters -Verbose:$False -Cmdlet Get-*
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (FailoverClusters:String) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Comman ds.ImportModuleCommand
Get-Cluster : The term 'Get-Cluster' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Zabbix\scripts\wsfc.ps1:500 char:16
+ $Clusters = Get-Cluster
+ ~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-Cluster:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
WARNING: No cluster(s) availabile
I changed the user running the service, removing the LocalSystem and placing a computer administrator user and the result is the same. I have also changed in the wsfc.ps1 the path where the FailoverClusters module is located and the same message still appears. If I place the module in the directory where the script is the message changes that it cannot load the DLLs it needs for the module load.
Please I require your help to implement this monitoring.
Thank you.
Comment