Manually test a rule

You can run manually discovery using following options:

  • --filter-rule=<rule_name>: Run selected rule

  • --filter-host=<host_name>: Run all rules linked to hosttemplates used by host

  • --filter-poller=<poller_name>: Run rules for ressources linked to the poller

  • --dry-run: Run tests without configuration change

Note

You can combine --filter-*=<value> options. --dry-run option is an independant option.

Examples

Run all rules:

# /usr/share/centreon/www//modules/centreon-autodiscovery-server/cron/centreon_autodisco

Test all rules:

# /usr/share/centreon/www//modules/centreon-autodiscovery-server/cron/centreon_autodisco --dry-run

Test specific rule:

# /usr/share/centreon/www//modules/centreon-autodiscovery-server/cron/centreon_autodisco --filter-rule="OS-Linux-SNMP-Network-Interfaces-Discovery" --dry-run

Test all rules linked to hosttemplates used by specific host:

# /usr/share/centreon/www//modules/centreon-autodiscovery-server/cron/centreon_autodisco --filter-host="centreon-server" --dry-run

Test specific rule on predifined host:

# /usr/share/centreon/www//modules/centreon-autodiscovery-server/cron/centreon_autodisco --filter-rule="OS-Linux-SNMP-Network-Interfaces-Discovery" --filter-host="centreon-server" --dry-run