How to obtain a list of devices from Data Aggregator along with their respective polled item count

Document ID : KB000018148
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

A query can be run on the Data Repository (Vertica) system to output a list of all monitored devices along with their total polled item count.

Solution:

The query to run on the Data Repository system and how to run it:

  1. Log into the DR system.

  2. su to the database admin user account (dradmin by default)

  3. Change diretcory to /vertica/bin (under whichever directory vertica was installed in)

  4. Run: ./vsql

    *The password will be the database password. (dbpassword in the example from the documentation) orthe same password required in the adminTools UI when reviewing or administering the vertica database.

  5. Run:

    select device_item_id, device_name ,count(*)
    from v_poll_item
    group by device_item_id, device_name
    order by count(*) desc;