Pencarian

Rabu, 06 Maret 2019

Cacti Recache Event Detected for Device

Pengingat untuk recache cacti
If you feel the need for manual re-indexing, you may run it from cli. Calling the script with the parameter –help yields
shell>php -q poller_reindex_hosts.php --help
Cacti Reindex Host Script 1.0, Copyright 2007 - The Cacti Group

usage: poller_reindex_hosts.php -id=[host_id|All] [-d] [-h] [--help] [-v] [--version]

-id=host_id   - The host_id to have data queries reindexed or 'All' to reindex all hosts
-d            - Display verbose output during execution
-v --version  - Display this help message
-h --help     - Display this help message
Running it in debug mode for the host with id=2 may yield
shell>php -q poller_reindex_hosts.php -id=2 -d
WARNING: Do not interrupt this script.  Reindexing can take quite some time
DEBUG: There are '1' data queries to run
DEBUG: Data query number '1' starting
DEBUG: Data query number '1' ending
A silent run for all devices is issued by
shell>php -q poller_reindex_hosts.php -id=All
WARNING: Do not interrupt this script.  Reindexing can take quite some time
.....shell>
Note: Stop the Poller during Re-Indexing Re-Indexing interferes with the poller operation. Please make sure, that the poller is not running and will not start during a reindex operation

https://docs.cacti.net/manual:087:6_reference.4_cli_script.2_reindex_hosts

Tidak ada komentar:

Posting Komentar