×
Back to Opsview FAQ
Internal documentation only
This page has been marked as draft.
Show Total Disk Size in Windows Drive Service Check (ShowAll)
How to display the total disk size in nsc_checkdrivesize service checks within the Status Information section. Note that the total size will not be reflected in the graph.
- Normal service check without
ShowAll=longon nsc_checkdrivesize:
-H $HOSTADDRESS$ -c nsc_checkdrivesize -a 'Drive=%WINDOWS_DRIVE%: %WINDOWS_DRIVE:1%' -C '%NRPE_CERTIFICATES:1%' -k '%NRPE_CERTIFICATES:2%' -r '%NRPE_CERTIFICATES:3%' -y '%NRPE_CIPHERS:1%'
- Results will show:
OK: All drives within bounds.|'C: %'=36%;0;7 'C:'=48342548480B;0;5235424337;0;74791776256
- Add
ShowAll=longin the service check, to display the total disk size in Results tab. - Example on a Windows Disk Drive Service Check nsc_checkdrivesize:
-H $HOSTADDRESS$ -c nsc_checkdrivesize -a 'ShowAll=long Drive=%WINDOWS_DRIVE%: %WINDOWS_DRIVE:1%' -C '%NRPE_CERTIFICATES:1%' -k '%NRPE_CERTIFICATES:2%' -r '%NRPE_CERTIFICATES:3%' -y '%NRPE_CIPHERS:1%
- Results will now show:
OK: C:: Total: 69.7G - Used: 45G (64%) - Free: 24.6G (36%)|'C: %'=36%;0;7 'C:'=48347365376B;0;5235424337;0;74791776256
- After adding
ShowAll=long, the service check now shows Total Disk Size and Used Disk Size.
["Geneos"]
["FAQ"]