Free disk space: Invalid Drive

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.
sixstringssteve
Posts: 21
Joined: Thu Sep 17, 2015 4:28 pm

Re: Free disk space: Invalid Drive

Post by sixstringssteve »

root@nagios:/usr/local/nagios/libexec# ./check_nrpe -H x.x.x.x -p 5666 -c alias_disk
OK: All drives within bounds.|'C:\ %'=76%;10;5 'C:\'=19.54G;7.96;3.98;0;79.65

It looks like all it sees is the C:\
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Free disk space: Invalid Drive

Post by lmiltchev »

Can you run the following commands from the CMD prompt on the Windows box and show the output?

Code: Select all

diskpart
list volume
Be sure to check out our Knowledgebase for helpful articles and solutions!
sixstringssteve
Posts: 21
Joined: Thu Sep 17, 2015 4:28 pm

Re: Free disk space: Invalid Drive

Post by sixstringssteve »

DISKPART> list volume

Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ----- ---------- ------- --------- --------
Volume 0 D SQLServer CDFS DVD-ROM 3826 MB Healthy
Volume 1 System Rese NTFS Partition 350 MB Healthy System
Volume 2 C NTFS Partition 79 GB Healthy Boot
Volume 3 E SQL NTFS Partition 126 GB Healthy
Volume 4 F Data NTFS Partition 19 GB Healthy

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

Re: Free disk space: Invalid Drive

Post by lmiltchev »

Let's double check the permissions - from the CMD prompt, run the following command and show the output:

Code: Select all

icacls c: & icacls e: & icacls f:
Be sure to check out our Knowledgebase for helpful articles and solutions!
sixstringssteve
Posts: 21
Joined: Thu Sep 17, 2015 4:28 pm

Re: Free disk space: Invalid Drive

Post by sixstringssteve »

This looks promising....

C:\Windows\system32>icacls c: & icacls e: & icacls f:
c: NT SERVICE\TrustedInstaller:(F)
NT SERVICE\TrustedInstaller:(CI)(IO)(F)
NT AUTHORITY\SYSTEM:(M)
NT AUTHORITY\SYSTEM:(OI)(CI)(IO)(F)
BUILTIN\Administrators:(M)
BUILTIN\Administrators:(OI)(CI)(IO)(F)
BUILTIN\Users:(RX)
BUILTIN\Users:(OI)(CI)(IO)(GR,GE)
CREATOR OWNER:(OI)(CI)(IO)(F)
APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES:(RX)
APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES:(OI)(CI)(IO)(GR,GE)

Successfully processed 1 files; Failed processing 0 files
e: BUILTIN\Administrators:(OI)(CI)(F)
NT AUTHORITY\SYSTEM:(OI)(CI)(F)
CREATOR OWNER:(OI)(CI)(IO)(F)
BUILTIN\Users:(OI)(CI)(RX)
BUILTIN\Users:(CI)(AD)
BUILTIN\Users:(CI)(IO)(WD)
Everyone:(RX)

Successfully processed 1 files; Failed processing 0 files
f: BUILTIN\Administrators:(OI)(CI)(F)
NT AUTHORITY\SYSTEM:(OI)(CI)(F)
CREATOR OWNER:(OI)(CI)(IO)(F)
BUILTIN\Users:(OI)(CI)(RX)
BUILTIN\Users:(CI)(AD)
BUILTIN\Users:(CI)(IO)(WD)
Everyone:(RX)

Successfully processed 1 files; Failed processing 0 files

C:\Windows\system32>
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Free disk space: Invalid Drive

Post by lmiltchev »

I am not a 100% sure, but I think the "E:" and "F:" drive should have the same permissions for the "SYSTEM" as the "C:" drive. The only differences that I see are these:

Code: Select all

C:
NT AUTHORITY\SYSTEM:(M)
NT AUTHORITY\SYSTEM:(OI)(CI)(IO)(F)

E:
NT AUTHORITY\SYSTEM:(OI)(CI)(F)

F:
NT AUTHORITY\SYSTEM:(OI)(CI)(F)
Frankly, I haven't seen this problem before but I am pretty sure, this is a permissions issue.

On my workstation, for drive "d" I have:

Code: Select all

NT AUTHORITY\Authenticated Users:(OI)(CI)(F)
NT AUTHORITY\SYSTEM:(OI)(CI)(F)
BUILTIN\Administrators:(OI)(CI)(F)
Everyone:(OI)(CI)(F)
BUILTIN\Users:(OI)(CI)(F)
and my check against "d" drive works fine.
Be sure to check out our Knowledgebase for helpful articles and solutions!
sixstringssteve
Posts: 21
Joined: Thu Sep 17, 2015 4:28 pm

Re: Free disk space: Invalid Drive

Post by sixstringssteve »

I don't see how it can be permissions. I have another machine with same OS and all with an E: drive and it detects it fine. It is just this box.

The icacls settings on both boxes are identical.

I even removed and reinstalled the client.

Vm #2

C:\Windows\system32>icacls c: & icacls e:
c: NT SERVICE\TrustedInstaller:(F)
NT SERVICE\TrustedInstaller:(CI)(IO)(F)
NT AUTHORITY\SYSTEM:(M)
NT AUTHORITY\SYSTEM:(OI)(CI)(IO)(F)
BUILTIN\Administrators:(M)
BUILTIN\Administrators:(OI)(CI)(IO)(F)
BUILTIN\Users:(RX)
BUILTIN\Users:(OI)(CI)(IO)(GR,GE)
CREATOR OWNER:(OI)(CI)(IO)(F)
APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES:(RX)
APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES:(OI)(CI)(IO)(GR,GE)

Successfully processed 1 files; Failed processing 0 files
e: BUILTIN\Administrators:(OI)(CI)(F)
NT AUTHORITY\SYSTEM:(OI)(CI)(F)
CREATOR OWNER:(OI)(CI)(IO)(F)
BUILTIN\Users:(OI)(CI)(RX)
BUILTIN\Users:(CI)(AD)
BUILTIN\Users:(CI)(IO)(WD)
Everyone:(RX)

Successfully processed 1 files; Failed processing 0 files

C:\Windows\system32>
sixstringssteve
Posts: 21
Joined: Thu Sep 17, 2015 4:28 pm

Re: Free disk space: Invalid Drive

Post by sixstringssteve »

All fixed.

Now time to swallow some humility and admit my dumb a** had a mis-configuration in the Nagios cfg file and the IP was wrong......

I have not made a rookie mistake like that in a very long time.

smh
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Free disk space: Invalid Drive

Post by hsmith »

Oh man, same as the other thread? These are becoming easier and easier to 'resolve' :)

Should I lock this one up?
Former Nagios Employee.
me.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Free disk space: Invalid Drive

Post by eloyd »

Dumb a**ed mistakes are the best. They make you think thrice before posting the next time. ;-)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Locked