mickem / nscp

NSClient++
http://nsclient.org
GNU General Public License v2.0
246 stars 94 forks source link

Exclude the check of "System Reserved" partition in a Windows server #802

Closed lzmarouane closed 1 year ago

lzmarouane commented 1 year ago

Hi, how can i exclude the check of "System Reserved" partition in a Windows server using the NRPE

I used this command to exlude some partitions /usr/lib64/nagios/plugins/check_centreon_nrpe3 -H 192.168.111.91 -p 5666 -t 30 -u -2 -P 8192 -c check_drivesize -a "drive=" "perf-config=used(unit:B)used %(ignored:true)" "filter=type = 'fixed' and name not regexp '.yst.*'" "warning=total_used>90%" "critical=total_used>95%"

But it doesn't work for "System Reserved" partition"

can you help me ??

lzmarouane commented 1 year ago

after much trial and error, got it working by redoing the command as follows:

check_nrpe -H x.x.x.x -c check_drivesize -a "filter=type in ('fixed') and name not regexp '.(System Reserved|SYSTEM RESE).' and drive_or_id not like '?'" "warning=used>90%" "critical=used>95%"