mickem / nscp

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

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

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 NSClient++ REST API

I used this command to exlude some partitions /usr/lib/centreon/plugins/centreon_nsclient_restapi.pl --plugin=apps::nsclient::restapi::plugin --mode=query --hostname='x' --port='8443' --proto='https' --legacy-password='x' --http-backend=curl --insecure --command=check_drivesize --arg="drive=*" --arg="perf-config=used(unit:G)used %(ignored:true)" --arg="filter=type = 'fixed' and name not regexp '.*yst.*'" --arg="warning=total_used>80%" --arg="critical=total_used>90%" --exclude-drive=Z

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

can you help me ??

lzmarouane commented 1 year ago

i resolve it using this command : "filter=drive_or_id not like 'Volume' and type not in ('CDROM')"