Monitor Disk Usage of Windows Mount Points...
-
jasonlehman
- Posts: 31
- Joined: Wed Jul 29, 2015 7:59 am
Monitor Disk Usage of Windows Mount Points...
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
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...
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?
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...
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.
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...
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...
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.
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...
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:
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...
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
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...
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 CheckdrivesizeBe 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...
Here is what I got...
Here is what I think you wanted me to run...
Note, I obviously changed the IP address back to xxx.xxx.xxx in the output.
Thanks
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 directoryCode: Select all
/usr/lib64/nagios/plugins/check_nrpe -H xxx.xxx.xxx -c Checkdrivesize
Missing argument(s).Thanks
Re: Monitor Disk Usage of Windows Mount Points...
You may want to upgrade your NSClient++.
Run the following to get the version on NSClient++ and post the output.
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.xxxBe sure to check out our Knowledgebase for helpful articles and solutions!