Page 1 of 1
Bulk loading host and services?
Posted: Thu Apr 22, 2010 1:54 pm
by TSCAdmin
I was wondering if there was a way that I could bulk load host and server configs into Nagios XI? I have approximately 1200 hosts, each with 12 standard service checks. Obviously, I'd rather not have the servers entered by hand if we can do it in bulk.
Two options immediately come to mind:
1) Writing the mySQL insert statements directly (in which case I have to figure out the database schema (with mySQL workbench) and the syntax used for record insertion (with mySQL query analyzer)).
2) Using the "Nagios Core Configuration Import" procedure. I'm not entirely certain of using that interface for that quantity of hosts and services (14,400).
Are there any options I'm missing?
Re: Bulk loading host and services?
Posted: Thu Apr 22, 2010 3:11 pm
by tonyyarusso
TSCAdmin wrote:2) Using the "Nagios Core Configuration Import" procedure. I'm not entirely certain of using that interface for that quantity of hosts and services (14,400).
This *should* work actually - give it a try. There's also a configuration import prep tool in XI that will do some sanity checks / formatting for you before you pass it into that part.
Re: Bulk loading host and services?
Posted: Tue Jun 29, 2010 2:54 pm
by aaldrich
tonyyarusso wrote:TSCAdmin wrote:2) Using the "Nagios Core Configuration Import" procedure. I'm not entirely certain of using that interface for that quantity of hosts and services (14,400).
This *should* work actually - give it a try. There's also a configuration import prep tool in XI that will do some sanity checks / formatting for you before you pass it into that part.
Where can I find this Nagios Core Configuration Procedure and the configuration import Prep Tool in XI?
We are developing scripts to deploy VMs in Vsphere and would like to add newly deployed hosts automatically to nagios for monitoring
as an ongoing process and also delete them from nagios when decommissioned
Suggestions?
Re: Bulk loading host and services?
Posted: Tue Jun 29, 2010 4:21 pm
by mmestnik
Start another topic(or find the topic already started) for the NagiosXI automation stuff, though this can be done and there is some bits of pointers floating around.
As for your import it's all documented in our Nagios Library linked off our site nagios.com.
Re: Bulk loading host and services?
Posted: Mon Jul 05, 2010 6:33 am
by Box293
How did you go with the bulk import?