I’m trying to geht Icinga2 working for monitoring my “Windows 10” System.
On this windows system I have disk C: and a disk Z: which is mounted directory hosted on the NAS.
This directory has been mounted via “Windows Explorer”, via “New-SmbMapping” and via “New-PSDrive”. I tried this 3 ways to connect the shared directory to the System but I have problems with the “disk-windows” check. It can never check disk Z:, disk C: everything is ok.
Now I tried to analyse what is going on. I tried to execute the check_disk.exe which is used für the CheckCommand “disk-Windows”.
If I am connected with a normal user account to the windows system via RDP the check_disk shows me all connected drives:
DISK OK - free space:C:\ 63168409600 B (50%); Z:\ 502717411328 B (51%); | ‘C:’=63168409600B;;;0;126591598592 ‘Z:’=502717411328B;;;0;976214888448
If I start check_disk.exe in a CMD which is running under “LOCAL SYSTEM” (the same Rights as the agent), I geht the following output:
DISK OK - free space:C:\ 64396439552 B (51%); | ‘C:’=64396439552B;;;0;126591598592
If I run a CMD under “” I get the same output - no Z:
I start the CMDs for testing with “PSTools”:
psexec -i -s cmd.exe
psexec -i -u “” cmd.exe
The check_disk.exe Shows all drives including Z: only in my interactive cmd session.
Does anybody of you has any idea what is going on or what do I have to to to get the “check_disk.exe” working with the agent and drive Z:?