winpre check_pdm.exe returns negative value for available disk space

12 posts / 0 new
Last post
MichaelDunn
Offline
Last seen: 7 years 9 months ago
Joined: 21.12.2012 - 01:02
winpre check_pdm.exe returns negative value for available disk space

On my Nagwin server, I am receiving the following when checking the HDD space on two out of four of my servers. I have one Windows Server 2008 box and the other three are running Windows Server 2003. I am getting this result on two of my Windows Server 2003 boxes, yet the other 03 box returns the correct value.

"DISK OK - usage: C: -5495.8 MB (-536.70% of total 1024.0 MB)"

All of them have identical configurations (winpre version, host.cfg on the nagwin server, nrpe.cfg on the clients). I have verified "check_pdm.exe --disk --drive c:" returns the correct HDD value when exeucted on the server directly. I have also removed and re-added the configurations, but this did not change a thing. Any help would be much appreciated. 

itefix
Offline
Last seen: 15 hours 46 min ago
Joined: 01.05.2008 - 21:33
If the command runs properly

If the command runs properly from a dos prompt, then the problem must be related to permissions. Try to give winrpe service account local administrator privileges.

MichaelDunn
Offline
Last seen: 7 years 9 months ago
Joined: 21.12.2012 - 01:02
I gave the SvcXinet account

I gave the SvcXinet account administrator rights and restarted the service but this did not change the output.

I forgot to mention in my original post that both of the servers I am having this issue with are Domain Controllers. I have a feeling that has something to do with it. I have again verified that the output from the "check_pdm --disk --drive C: " command is returning the correct result on both servers. 

 

Thoughts?

MichaelDunn
Offline
Last seen: 7 years 9 months ago
Joined: 21.12.2012 - 01:02
Maybe this information will

Maybe this information will help pin point the issue as well.

I added the same command (as listed above) to monitor the other volumes on the server. All of these values are being returned correctly to nagios. It is only the C: drive on Domain Controllers that are reporting a negative number. 

MichaelDunn
Offline
Last seen: 7 years 9 months ago
Joined: 21.12.2012 - 01:02
Thoughts? Suggestions? I'm

Thoughts? Suggestions? I'm stuck on this one. 

itefix
Offline
Last seen: 15 hours 46 min ago
Joined: 01.05.2008 - 21:33
Try to run the plugin in

Try to run the plugin in verbose mode (--verbose) and publish results here.

MichaelDunn
Offline
Last seen: 7 years 9 months ago
Joined: 21.12.2012 - 01:02
Do you want me to run this

Do you want me to run this argument with the check_pdm plugin on the monitored server? I tried on both the server (check_pdm --disk --drive C: --verbose) and (check_pdm --verbose) and on the Nagios server (check_nrpe -h xxx.xxx.xxx.xxx -c check_pdm_c --verbose), both made no difference in the output. I know I'm entering it in wrong, but not sure where. 

itefix
Offline
Last seen: 15 hours 46 min ago
Joined: 01.05.2008 - 21:33
If you run check_pdm on the

If you run check_pdm on the monitored server with --verbose option, it will list WQL command used for getting disk information.

MichaelDunn
Offline
Last seen: 7 years 9 months ago
Joined: 21.12.2012 - 01:02
Ok, I have ran the check_pdm

Ok, I have ran the check_pdm command with the --verbose option but no output is produced. Not sure what I'm doing wrong but again, I feel like I'm missing something way simple here. 

 

If you could give me step by step directions, that would be very helpful.

itefix
Offline
Last seen: 15 hours 46 min ago
Joined: 01.05.2008 - 21:33
Try double --verbose

Try double --verbose --verbose to get more detailed info.

MichaelDunn
Offline
Last seen: 7 years 9 months ago
Joined: 21.12.2012 - 01:02
Hey TK,  I have tried the

Hey TK, 

I have tried the double --verbose --verbose argument on the monitored server, again, with no results or output being displayed. Would it be possible to communicate through email or setup a time to maybe have you work with me for a few minutes? I keep investing time into this issue and I feel like I'm getting nowhere. 

Again, this is only happening on the system drive on DC's. Additionally monitored volumes on the DC are returning the correct results and non DC servers are returning correct results on the system drive. 

I'm going crazy here!

itefix
Offline
Last seen: 15 hours 46 min ago
Joined: 01.05.2008 - 21:33
I am not sure what i can do

I am not sure what i can do here. You say that it works everywhere except your domain controller. This plugins uses WMI and i have no idea why wmi doesn't work on your DC. There may be group policies, user rights restrictions. That may be an access issue (maybe you get better results if you run as administrator).