I want to exlude some services with startup type Automatic on Windows Server from being monitored. I understand that it should be done in service Services-Auto. Then i should add New entries in ‘Service check options’ named EXCLUDE, EXCLUDE2, EXCLUDE3 and in the value field windows service name?
Is it correct configured on above screeshot? Thanks for reply.
Page 1 / 1
Hello @jakubsz
You cannot add options (MACROS) like that, you need to use regular expression (Regexp) to exclude services.
A plugin pack is just an preconfigured Host template with is Services template (Not really ALL the possibility of the script behind) and maybe sometimes Discovery template to use Discovery module.
All the options (MACROS) are defined on the Command that the reason you cannot add options (MACROS) except if you create your command, your service template, host template in order to apply your host template to your host.
This is the kind of stuff I’m constantly hitting with nearly every single Centreon plugin - it’s becoming quite tiresome
It’s not the fault of the centreon-plugins sometimes. With NRPE, you have the nasty_metachars parameter who can complicate the execution of the command
Pour exclure la supervision de certains services voici ma commande en utilisant des --arg=”exclude=service_name” : /usr/lib/centreon/plugins//centreon_nsclient_restapi.pl --plugin=apps::nsclient::restapi::plugin --mode=query --hostname='**' --port='**' --proto='https' --legacy-password='***' --http-backend=curl --curl-opt="CURLOPT_SSL_VERIFYPEER => 0" --timeout=40 --command=check_service --arg="filter=start_type='auto' and is_trigger=0" --arg="service=*" --arg="exclude=TrustedInstaller" --arg="exclude=tiledatamodelsvc" --arg="warning=not state_is_perfect()" --arg="critical=not state_is_ok()" --arg='top-syntax=${problem_list}' --arg='detail-syntax=${name}=${state}(${start_type})' --arg="perf-config=none" --arg="exclude=ISSUSER"
vous pouvez ajouter l’exclusion d’autres services en ajoutant dans le champ extraoptions.
--arg=”exclude=service_name”
Hi, You can try this At the end of the “FILTER” macro, you can add -
start_type = 'auto' and is_trigger = 0 and name not like 'GoogleUpdaterInternalService' and name not like 'GoogleUpdaterService' and name not in ('xxxx','other service you want to exclude','xxxx','xxxx')
replace xxxx with actual service name you want to exclude and also replace service with changing version number in you case clr_optimization_vxxxx.x in front of not like ’xxxx’. it will exclude them no matter their version number.