Powershell Script problem from Nagios xi

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
danic01
Posts: 2
Joined: Wed Nov 07, 2018 7:20 am

Powershell Script problem from Nagios xi

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Powershell Script problem from Nagios xi

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.