icingaweb2-module-pve icon indicating copy to clipboard operation
icingaweb2-module-pve copied to clipboard

Documentation on key column is missing

Open dynamicat opened this issue 7 years ago • 6 comments

Hi there, When I try to add a PVE host I get the following message:

This Import Source failed when last checked at 2019-04-09 17:10:21: No key column "ph-a-10" in row 1

dynamicat avatar Apr 09 '19 15:04 dynamicat

How does your import source config look like? I'd guess that you specified the key column wrong.

nbuchwitz avatar Apr 09 '19 15:04 nbuchwitz

You mean the director import source?

dynamicat avatar Apr 09 '19 17:04 dynamicat

So I still get the same error: This Import Source failed when last checked at 2019-04-10 11:17:51: No key column "ph-a-04" in row 1

This is the table on row 1 of the table import_source:

  id source_name key_column provider_class import_state last_error_message last_attempt description
  1 ph-a-04 ph-a-04 Icinga\Module\Pve\ProvidedHook\Director\ImportSour... failing   2019-04-10 11:15:36 NULL

dynamicat avatar Apr 10 '19 09:04 dynamicat

The key column name should be name as showed in the exampl

nbuchwitz avatar Apr 10 '19 10:04 nbuchwitz

Everything has worked correctly. Many thanks. Is there any guide on how to use it?

dynamicat avatar Apr 10 '19 11:04 dynamicat

No there isn't any documentation beside from the example, but a PR with some lessons learned is always welcome!

nbuchwitz avatar Apr 10 '19 11:04 nbuchwitz

Done in #19

nbuchwitz avatar Jun 22 '24 19:06 nbuchwitz