Now I got it. "All files" has been implemented for scenarios where you
have one file per object, like one YAML or JSON file per single host.
This is for systems using a directory as their "inventory". The fact
that you're using CSV suggests that's probably not what you are trying
to accomplish.

In case you just want to import from "a bunch of distinct CSV files" in
a single run please open two issues on GitHub with a short description
asking fileshipper to:

* allow one to choose whether to expect single or multiple objects from
each file when importing from a directory
* allow to provide custom file matching patterns (like srv*.csv) when
defining an import source.

And who knows, Christmas isn't that far away... As a workaround right
now you need either multiple Import Source definitions or an external
tool concatenating your CSV files from a cron job or similar. Please pay
attention to keep only one header line when doing so.

Best,
Thomas

Am 10.03.2017 um 16:15 schrieb Valentin Höbel:
Hi Thomas,

I am talking about the field "File name*" which allows me to either
provide a specific file (e.g. "hosts.csv" or "* (all files)".

When selecting "* (all files)", it looks like nothing is imported.
The configuration of the import source is:
Import source name: Hosts
Source Type: Import from files (fileshipper)
Key column name: Hostname
File format: CSV
Field delimiter: ;
Value enclosure: "
Base directory: /srv/some_dir
File name: * (all files)

Please let me know if you need more specific information (e.g. all
relevant config files from Director and Fileshipper or screenshots). I
will then spin up a test system (because I am not able to copy data or
take screenshots from the current system).

As I mentioned before, this import source works when I select a specific
file.

Best regards
Valentin

-- 
Thomas Gelf
Principal Consultant

NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg
Tel: +49 911 92885-0 | Fax: +49 911 92885-77
CEO: Julian Hein, Bernd Erk | AG Nuernberg HRB18461
http://www.netways.de | thomas.g...@netways.de

** OSDC 2017 - Mai - osdc.de **
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to