centreon / centreon-plugins

Collection of standard plugins to discover and gather cloud-to-edge metrics and status across your whole IT infrastructure.
https://www.centreon.com
Apache License 2.0
310 stars 273 forks source link

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

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 ??

garnier-quentin commented 1 year ago

It's not a centreon-plugins issue. Check nscp github and official doc

lzmarouane commented 1 year ago

Thank you @garnier-quentin