Page 1 of 1

Importing hosts from a csv file

Posted: Wed Jun 29, 2011 3:36 am
by cwscribner
Hi all.

Is there a way to mass import hosts into XI? I've been grabbing data via nmap and have it in a .csv file so I was hoping to have some "seamless" way to import all of it.

Re: Importing hosts from a csv file

Posted: Wed Jun 29, 2011 5:37 am
by pzusa
You can do this, but first You have to change the format of the data (.csv) to what nagios understands (look at /usr/local/nagios/etc/hosts/ files for an example).
You can write a simple shell script to do this ;)
Then use Nagios Core Config Manager->Tools->Import Config Files to bulk import all data at once.

Take care

Michalux