Page 1 of 1

Check if both servers have drive mounted

Posted: Mon Nov 07, 2016 2:25 pm
by bvi1998
Hi,

We are having a MS cluster issue where both nodes end up have one of the drives mounted. I have a PS script which checks both servers for the existence of the drive (can be done with WMI or Powershell). It checks the server the script is running from, then it remotely checks the other one.If they both have drive F: mounted, I will send an alert. But of course, I get access denied when trying to run the wmi call on the remote server.

Can anyone think of how I might be able to monitor this situation?

If drive F: is mounted on server1, plus server2, send an alert.

The above is what I am trying to do.

Thanks in advance for any assistance!

Re: Check if both servers have drive mounted

Posted: Mon Nov 07, 2016 3:45 pm
by avandemore
You should be able to use BPI to create meta objects and alert on them:

Using Nagios BPI

Does this help?

Re: Check if both servers have drive mounted

Posted: Tue Nov 08, 2016 12:47 pm
by bvi1998
Hi, we are using Open Source, does that matter? I have not seen this...
Thanks!

Re: Check if both servers have drive mounted

Posted: Tue Nov 08, 2016 1:46 pm
by avandemore