Check if both servers have drive mounted

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
bvi1998
Posts: 5
Joined: Wed Jun 01, 2016 10:55 am

Check if both servers have drive mounted

Post 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!
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Check if both servers have drive mounted

Post by avandemore »

You should be able to use BPI to create meta objects and alert on them:

Using Nagios BPI

Does this help?
Previous Nagios employee
bvi1998
Posts: 5
Joined: Wed Jun 01, 2016 10:55 am

Re: Check if both servers have drive mounted

Post by bvi1998 »

Hi, we are using Open Source, does that matter? I have not seen this...
Thanks!
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Check if both servers have drive mounted

Post by avandemore »

Previous Nagios employee
Locked