IBM Support

Re-index a RTM device

How To


Summary

This article explains on the response to cacti log file that indicates two devices need to be re-indexed.

Environment

The cacti log file shows that two devices need to be re-indexed.
2020/06/11 09:35:16 - POLLER: Poller[1] WARNING: You have 1 Devices with bad SNMP Indexes. Devices: Device[14] totaling 17 Data Sources. Please Either Re-Index, Delete or Disable these Data Sources.


Steps

  1. Locate the reindex command.
    [admin@test06 ~]# find /opt/* -name poller_reindex_hosts.php -print
    /opt/IBM/cacti/cli/poller_reindex_hosts.php
  2. View the reindex usage.
    [admin@test06 ~]# php /opt/IBM/cacti/cli/poller_reindex_hosts.php --help
    Cacti Reindex Host Utility, Version 1.2.10 (DB: 1.2.10), Copyright (C) 2004-2020 The Cacti Group
    usage: poller_reindex_hosts.php --id=[host_id|all] [--qid=[ID|all]]
       [--host-descr=[description]] [--debug]
    --id=host_id             - The host_id to have data queries reindexed or 'all' to reindex all hosts
    --qid=query_id           - Only index on a specific data query id; defaults to 'all'
    --host-descr=description - The host description to filter by (SQL filters acknowledged)
    --force                  - Force Graph and Data Source Suggested Name Re-mapping for all items
    --debug                  - Display verbose output during execution
  3. Test the re-index command.
    [admin@test06 ~]# php /opt/IBM/cacti/cli/poller_reindex_hosts.php --id=all --qid=all --debug
    WARNING: Do not interrupt this script.  Reindexing can take quite some time
    DEBUG: There are '46' data queries to run
    DEBUG: Data query number '1' host: '1' SNMP Query Id: '1' starting
    DEBUG: Data query number '1' host: '1' SNMP Query Id: '1' ending
    ... ...
    DEBUG: Data query number '39' host: '49' SNMP Query Id: '16' starting
    DEBUG: Data query number '39' host: '49' SNMP Query Id: '16' ending
    DEBUG: Data query number '40' host: '49' SNMP Query Id: '17' starting
    DEBUG: Data query number '40' host: '49' SNMP Query Id: '17' ending
    ... ...
    DEBUG: Data query number '45' host: '49' SNMP Query Id: '22' starting
    DEBUG: Data query number '45' host: '49' SNMP Query Id: '22' ending
    DEBUG: Data query number '46' host: '49' SNMP Query Id: '23' starting
    DEBUG: Data query number '46' host: '49' SNMP Query Id: '23' ending
    [admin@test06 ~]#

Document Location

Worldwide


[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSZT2D","label":"IBM Spectrum LSF RTM"},"ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"}]

Document Information

More support for:
IBM Spectrum LSF RTM

Software version:
All Version(s)

Document number:
6369129

Modified date:
02 December 2020

UID

ibm16369129

Manage My Notification Subscriptions