Monitor Disk Usage of Windows Mount Points...

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.
jasonlehman
Posts: 31
Joined: Wed Jul 29, 2015 7:59 am

Monitor Disk Usage of Windows Mount Points...

Post by jasonlehman »

We are using Nagios Core running on CentOS.
We have several Windows servers we are monitoring & have NSClient++ installed on all of them.
There are no issues monitoring Windows servers drives, that have drive letters assigned; such as the C:\ drive.
An example of how we monitor the Windows servers C: drive is this...

check_command check_nt!USEDDISKSPACE!-l c -w 90 -c 95

The issue we have is trying to monitor a Windows/NTFS mounted volume.
Windows Mount Point...
https://en.wikipedia.org/wiki/NTFS_volume_mount_point

I've been searching on the web for a long time & cant find a solution.
What have others done to be able to monitor disk usage (I just want a email when the mount point starts to get full) on Windows/NTFS mount points w/ Nagios?

Thanks,
Jason
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Monitor Disk Usage of Windows Mount Points...

Post by lmiltchev »

I am sure you could find some 3rd party plugins on Nagios Exchange that will do the job for you. I found this listing:

https://exchange.nagios.org/directory/P ... ce/details

It seems like you can call this script via check_nrpe and nsclient++. Is this what you are looking for?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jasonlehman
Posts: 31
Joined: Wed Jul 29, 2015 7:59 am

Re: Monitor Disk Usage of Windows Mount Points...

Post by jasonlehman »

This could work, let me try it & see the results.
I am not familiar with check_nrpe
I am not even sure that plugin is installed on our Nagios, it may take me a while to test.
Thanks for your reply.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Monitor Disk Usage of Windows Mount Points...

Post by lmiltchev »

No problem. Let us know if you get stuck on something.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jasonlehman
Posts: 31
Joined: Wed Jul 29, 2015 7:59 am

Re: Monitor Disk Usage of Windows Mount Points...

Post by jasonlehman »

Update...
We dont have nrpe installed & configured. Looks like I got a lot of work ahead of me.
I'll try it, any non-nrpe suggestions?

FYI, I will be out for over a week; so I wont get to work on this for a bit.
I'll update when I return.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Monitor Disk Usage of Windows Mount Points...

Post by jdalrymple »

You do have NRPE, you just don't know it. In your case NRPE is provided by nsclient++

Look at this section of your nsclient.ini:

Code: Select all

[/modules]
NRPEServer = 1
[/settings/NRPE/server]
jasonlehman
Posts: 31
Joined: Wed Jul 29, 2015 7:59 am

Re: Monitor Disk Usage of Windows Mount Points...

Post by jasonlehman »

You are correct, NRPE is enabled in the nsclient.ini file on all of our servers.
What I dont know how to do is setup Nagios to run a remote powershell script & return the results to Nagios.
I am currently not doing any Nagios checks via NRPE.
Thanks
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Monitor Disk Usage of Windows Mount Points...

Post by tgriep »

Lets see if the check built in to NSClient works for you. Run this and see if you get the info you need. Please post the output.

Code: Select all

 /usr/local/nagios/libexec/check_nrpe -H xxx.xxx.xxx.xxx  -c Checkdrivesize
Be sure to check out our Knowledgebase for helpful articles and solutions!
jasonlehman
Posts: 31
Joined: Wed Jul 29, 2015 7:59 am

Re: Monitor Disk Usage of Windows Mount Points...

Post by jasonlehman »

Here is what I got...

Code: Select all

 /usr/local/nagios/libexec/check_nrpe -H xxx.xxx.xxx -c Checkdrivesize 
-bash: /usr/local/nagios/libexec/check_nrpe: No such file or directory
Here is what I think you wanted me to run...

Code: Select all

 /usr/lib64/nagios/plugins/check_nrpe -H xxx.xxx.xxx -c Checkdrivesize
Missing argument(s).
Note, I obviously changed the IP address back to xxx.xxx.xxx in the output.

Thanks
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Monitor Disk Usage of Windows Mount Points...

Post by tgriep »

You may want to upgrade your NSClient++.
Run the following to get the version on NSClient++ and post the output.

Code: Select all

/usr/lib64/nagios/plugins/check_nrpe -H xxx.xxx.xxx.xxx
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked