Importing hosts from a csv file

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Importing hosts from a csv file

Post 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.
pzusa
Posts: 34
Joined: Fri Jun 24, 2011 9:54 am

Re: Importing hosts from a csv file

Post 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
Locked