ConSol-Monitoring / snclient

SNClient+ - Cross platform monitoring agent
MIT License
47 stars 9 forks source link

check_drivesize: disk usage is shown as own drive #109

Closed teanva closed 3 months ago

teanva commented 3 months ago

Check_drivesize shows two drives although there is only one.

image

Command line:

-c check_drivesize OK - All 2 drive(s) are ok |'C:\ used'=16275165184B;128763451802;144858883277;0;160954314752 'C:\ used %'=10.1%;80;90;0;100 ' used'=34463744B;83882803;94368154;0;104853504 ' used %'=32.9%;80;90;0;100

-c check_drivesize drive=C OK - All 2 drive(s) are ok |'C:\ used'=16279162880B;128763451802;144858883277;0;160954314752 'C:\ used %'=10.1%;80;90;0;100 ' used'=34463744B;83882803;94368154;0;104853504 ' used %'=32.9%;80;90;0;100

-c check_drivesize drive=C: OK - All 2 drive(s) are ok |'C:\ used'=16279162880B;128763451802;144858883277;0;160954314752 'C:\ used %'=10.1%;80;90;0;100 ' used'=34463744B;83882803;94368154;0;104853504 ' used %'=32.9%;80;90;0;100

snclient: v0.22 check_nrpe: v4.1.0

Gent00157 commented 3 months ago

Hi, I tried and I can confirm that. In my case I get an extra info about "System Reserved" partition. if I configure alias in the ini file and execute it, then it is working correctly. In your case it might be EFI partition (according to 100MB size) - can you check disk management and confirm it please?

sni commented 3 months ago

You could also try the latest nightly build, i recently fixed detecting mounted volumes on windows with https://github.com/ConSol-Monitoring/snclient/commit/2759c2f0f2a8b9dd3604d041354d903a5d3db9da

teanva commented 3 months ago

I tested with v0.22.0011 but no change.

Second drive seems to be boot volume:

Partitions

sni commented 3 months ago

could you try the latest nightly again, i change a few things again with 6e513fe7107c562bf1872541c3b17ca245c64475

teanva commented 3 months ago

Thanks, v0.22.0012 fixed the problem:

DiskStatus

sni commented 3 months ago

thanks for the feedback