Question

Excluding services from monitoring on Windows.


Badge

Hello Team

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.


2 replies

Userlevel 1
Badge +6

Hello @jakubsz 

You cannot add options (MACROS) like that, you need to use regular expression (Regexp) to exclude services.

Documentation is really light about your plugin pack : https://docs.centreon.com/pp/integrations/plugin-packs/procedures/operatingsystems-windows-nsclient-05-nrpe/ for the supervision of this operating system.

And the older documentation also :

https://docs-older.centreon.com/older/

Plugin Packs : https://docs-older.centreon.com/docs/plugins-packs/fr/latest/ or https://docs-older.centreon.com/docs/plugins-packs/en/latest/

You could have more help and understanding about plugins and regular expressions on SugarBug website https://www.sugarbug.fr/

https://www.sugarbug.fr/atelier/techniques/plugins/plugins_centreon/regex-perl/

And also the syntax about NSClient++ : https://docs.nsclient.org/checks/

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.

Command behind your service template :

$USER1$/$_HOSTNRPECLIENT$ -H $HOSTADDRESS$ -p $_HOSTNRPEPORT$ -t $_HOSTNRPETIMEOUT$ $_HOSTNRPEEXTRAOPTIONS$ -c check_service -a "filter=$_SERVICEFILTER$" "service=$_SERVICESERVICE$" "exclude=$_SERVICEEXCLUDE$" "exclude=$_SERVICEEXCLUDE2$" "warning=$_SERVICEWARNING$" "critical=$_SERVICECRITICAL$" 'top-syntax=$_SERVICETOPSYNTAX$' 'detail-syntax=$_SERVICEDETAILSYNTAX$' $_SERVICEEXTRAOPTIONS$

Regards,

Userlevel 1
Badge +6

And also here :

And others things about NSClient++ :

 

 

 

Reply