Basically im trying to monitor a file server cluster between 2 nodes and seem to be missing something as i keep getting this in Nagios but the script runs perfectly locally on both cluster nodes
Get-ClusterNode : The term 'Get-ClusterNode' 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:\\Program Files (x86)\\Nagios\\NCPA\\plugins\\check-failover-cluster.ps1:41 char:5
+ Get-ClusterNode -ErrorAction SilentlyContinue