adding remote hosts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bongmendoza
Posts: 21
Joined: Fri Oct 28, 2011 12:12 pm

adding remote hosts

Post by bongmendoza »

Hello,

I need to add more than 1000 hosts to NagiosXi. They are all using the same services. However, each host will have a dependent/parent host. Can you please advise the best approach to achieve this.

So basically, once all of the hosts are added, I would also like to set the alerts that if the host is unreachable, it needs to check if the parent host is alive. If parent host is alive, then trigger an alert on the remote host. If the parent host is not alive, then only trigger alert on the parent host and ignore remote host.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: adding remote hosts

Post by lmiltchev »

We have a tool that can help you with this task. It is called "Bulk Host Import Wizard". It is a customer-only download. Please, see this link:

http://exchange.nagios.org/directory/Ad ... rd/details

Unfortunately, we are still working on the documentation for it, so it is not available at this time. Wizards are pretty much self-explanatory though, so you can first try it in a test environment. You can try adding all of the 1000+ hosts at once but you will have to modify your "/etc/php.ini" file first, otherwise the php will crash on you. You should increase your "memory_limit" and "max_execution_time" under the "Resource Limits" section in your php.ini file.
Note, there is another entry for "memory_limit" close to the bottom of the file. Uncomment (or increase) this one, because it would probably override the one in the "Resource Limits" section. Adding some many hosts at once will take some time!

Another option would to to add all of your files in chunks (maybe several hundred at a time). Again, do it in a test environment; don't do it on your production server.

Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
bongmendoza
Posts: 21
Joined: Fri Oct 28, 2011 12:12 pm

Re: adding remote hosts

Post by bongmendoza »

thanks for the quick response. Is there an eval version for this wizard? I am still evaluating Nagios XI to see if it fits our environment (which I'm pretty sure it will)...
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: adding remote hosts

Post by lmiltchev »

bongmendoza,

I sent you a private message. Please, check it out.
Be sure to check out our Knowledgebase for helpful articles and solutions!
bongmendoza
Posts: 21
Joined: Fri Oct 28, 2011 12:12 pm

Re: adding remote hosts

Post by bongmendoza »

thanks. I installed it and went through the wizard to add my hosts but I don't see them in the host list. Am I missing a step?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: adding remote hosts

Post by mguthrie »

Did the "Apply Configuration" phase complete successfully after running the wizard?
bongmendoza
Posts: 21
Joined: Fri Oct 28, 2011 12:12 pm

Re: adding remote hosts

Post by bongmendoza »

yes it did
Locked