Page 1 of 5
Monitor Disk Usage of Windows Mount Points...
Posted: Wed Jul 29, 2015 10:49 am
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
Re: Monitor Disk Usage of Windows Mount Points...
Posted: Wed Jul 29, 2015 12:46 pm
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?
Re: Monitor Disk Usage of Windows Mount Points...
Posted: Wed Jul 29, 2015 1:43 pm
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.
Re: Monitor Disk Usage of Windows Mount Points...
Posted: Wed Jul 29, 2015 3:30 pm
by lmiltchev
No problem. Let us know if you get stuck on something.
Re: Monitor Disk Usage of Windows Mount Points...
Posted: Thu Jul 30, 2015 2:16 pm
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.
Re: Monitor Disk Usage of Windows Mount Points...
Posted: Thu Jul 30, 2015 3:27 pm
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]
Re: Monitor Disk Usage of Windows Mount Points...
Posted: Mon Aug 10, 2015 8:01 am
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
Re: Monitor Disk Usage of Windows Mount Points...
Posted: Mon Aug 10, 2015 1:43 pm
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
Re: Monitor Disk Usage of Windows Mount Points...
Posted: Tue Aug 11, 2015 8:39 am
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
Re: Monitor Disk Usage of Windows Mount Points...
Posted: Tue Aug 11, 2015 4:46 pm
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