Page 1 of 3
Free disk space: Invalid Drive
Posted: Fri Sep 25, 2015 9:21 am
by sixstringssteve
I am monitoring some Windows 2012 R2 VM's with our Nagios Core deployment. It monitors the C: perfectly, but I have two other drives E: and F: says they are invalid.
define service{
use generic-service
host_name <hostname>
service_description E:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l e -w 80 -c 90
}
define service{
use generic-service
host_name <hostname>
service_description F:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l f -w 80 -c 90
}
root@nagios:/etc/nagiosql/hosts# /usr/local/nagios/libexec/check_nt -H x.x.x.x -p 12489 -v USEDDISKSPACE -l c -w 80
c:\ - total: 79.66 Gb - used: 19.51 Gb (24%) - free 60.14 Gb (76%) | 'c:\ Used Space'=19.51Gb;63.72;0.00;0.00;79.66
root@nagios:/etc/nagiosql/hosts# /usr/local/nagios/libexec/check_nt -H x.x.x.x -p 12489 -v USEDDISKSPACE -l e -w 80
free disk space : Invalid drive
root@nagios:/etc/nagiosql/hosts# /usr/local/nagios/libexec/check_nt -H x.x.x.x -p 12489 -v USEDDISKSPACE -l f -w 80
Free disk space : Invalid drive
Any ideas here?
Re: Free disk space: Invalid Drive
Posted: Fri Sep 25, 2015 9:48 am
by hsmith
Hello,
Here is a quote from a
thread I found with a similar issue.
syappstech wrote:Since I see a few people are having the same issue and I've found no resolution, I wanted to share what I found and how I fixed this.
This issue was impacting us on one single Windows 2008 Server R2 server. All of our other servers E:\ drives could be monitored without issue. On a whim, I checked the security settings at the root of the drive.
The drive permission at the root of the E:\ drive was restricted to the Domain Admins group and Domain Users only.
I looked at the same permissions on the F:\ drive, which was able to be monitored by nagios correctly. That drive had the same, but also have \Everyone, \CREATOR OWNER and \SYSTEM.
I added the \SYSTEM back to the root permissions on the E:\ drive and bam, nagios was able to now see that drive and report on it's free disk space.
This is now resolved, at least, for me. Hopefully this will help others who have run in to this issue as well.
Re: Free disk space: Invalid Drive
Posted: Fri Sep 25, 2015 3:19 pm
by sixstringssteve
I saw that one, in my case the permissions are all set correctly.
Re: Free disk space: Invalid Drive
Posted: Mon Sep 28, 2015 9:11 am
by hsmith
Is it a network drive?
Re: Free disk space: Invalid Drive
Posted: Mon Sep 28, 2015 4:07 pm
by sixstringssteve
No, vm virtual drive on Hyper-V...so is the C:\ that registers just fine....
Re: Free disk space: Invalid Drive
Posted: Mon Sep 28, 2015 4:22 pm
by tgriep
What version of nsclient are you running on the windows system?
Can you check the nsclient.log file on the windows system for any errors?
Re: Free disk space: Invalid Drive
Posted: Tue Sep 29, 2015 8:11 am
by sixstringssteve
NSClient++ 0,4,1,73 2012-12-17
There are only these two log entries....
2015-09-23 12:11:01: e:..\..\..\..\trunk\modules\CheckSystem\PDHCollector.cpp:139: Failed to query performance counters: PdhCollectQueryData failed: : -2147481643: No data to return.
2015-09-25 09:41:49: e:..\..\..\..\trunk\modules\CheckSystem\PDHCollector.cpp:139: Failed to query performance counters: PdhCollectQueryData failed: : -2147481643: No data to return.
Re: Free disk space: Invalid Drive
Posted: Tue Sep 29, 2015 11:48 am
by hsmith
Can you upgrade to the
latest stable version and let us know if that fixes this?
Re: Free disk space: Invalid Drive
Posted: Tue Sep 29, 2015 4:29 pm
by sixstringssteve
No Change..still says invalid drive....but it detects the C:\ just fine.....it is just the E:\ and F:\ drive that are listing as invalid....
Re: Free disk space: Invalid Drive
Posted: Wed Sep 30, 2015 1:54 pm
by lmiltchev
Are the "E:" and "F:" drives "detected" by check_nrpe?
Code: Select all
./check_nrpe -H <Windows client IP> -p 5666 -c alias_disk