Page 1 of 1

Powershell Script problem from Nagios XI

Posted: Wed Dec 02, 2020 6:15 am
by danic01
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

Code: Select all

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
Any help would be appreciated thanks

Re: Powershell Script problem from Nagios XI

Posted: Wed Dec 02, 2020 5:51 pm
by cdienger
Can you share a copy of the script?

Are you able to run the check-failover-cluster.ps1 script on the command line of the Windows machine?