Page 1 of 2
Use Existing Agents with Nagios XI
Posted: Tue Feb 19, 2013 10:54 am
by asmgiadmin
I'm working to implement Nagios XI in alongside Nagios Core, with NSClient++ and NRPE for Windows and Linux servers respectively. I've read that XI can use existing agents and wondering best method to import hosts into XI.
With NSClient++ 0.3.7.493 2009-10-12
Not positive of NRPE version
Is there a way to check for agent on host import? Any advice on appreciated.
Re: Use Existing Agents with Nagios XI
Posted: Tue Feb 19, 2013 11:05 am
by lmiltchev
You can review our documentation on migrating from Nagios Core to XI here:
http://assets.nagios.com/downloads/nagi ... ngfromcore
After you set up your hosts in XI, you will still have to allow the Nagios XI IP on the client machines:
With NSClient++ - modify the following line in NSC.ini (or nsclient.ini) and restart the service:
Note: IPs are coma separated
With NRPE - modify the following line in "/etc/xinetd.d/nrpe" and restart the daemon (if you are using xinetd):
Note: IPs are space separated
Hope this helps.
Re: Use Existing Agents with Nagios XI
Posted: Tue Feb 19, 2013 11:11 am
by slansing
The agents themselves can not do any importing, are you looking to mirror what you are monitoring on the Core system? If so you can import the core config files to the XI system and we can point you in the right direction with that. I believe by "using existing agents" the point was that you can monitor the exact same systems, of course, you will need to add configuration to reach those servers, and for them to reach the Nagios XI system. If you could provide a little more detail we would be glad to help!
Re: Use Existing Agents with Nagios XI
Posted: Tue Feb 19, 2013 11:51 am
by asmgiadmin
Thanks, I'll review migration info.
Existing Nagios Core config files are not accurate, so starting XI implementation from scratch. Reason to use existing agents is to minimize effort of installing agent on each server.
I'd like to begin importing hosts on Nagios XI server and associate with host groups. Since many windows server are already running nsclient++ I'm just wondering best to add to new XI server.
Re: Use Existing Agents with Nagios XI
Posted: Tue Feb 19, 2013 11:54 am
by slansing
Oh definitely, especially if you are going to use the same IP for the Nagios XI system as you did for the Core system, the agents you already have in place can stay where they are, they will just need a new rule for the new IP, and changed port/password/encryption information if you changed that as well. Other than that you should be good to reuse them.
Re: Use Existing Agents with Nagios XI
Posted: Tue Feb 19, 2013 12:20 pm
by asmgiadmin
OK - I will not be able to update config files with new IP right away.
What is preferred method for importing hosts, so that nsclient++ communication succeeds when IP is updated on client?
Re: Use Existing Agents with Nagios XI
Posted: Tue Feb 19, 2013 1:20 pm
by slansing
The preferred method should be listed in the documentation Lmiltchev posted above, let us know if you have questions about it. Last thing that we would like to see happen is something wonky during an import of that data.
Re: Use Existing Agents with Nagios XI
Posted: Tue Feb 19, 2013 1:27 pm
by asmgiadmin
Current Windows server are running nsclient++ and are associated with existing Nagios Core server IP.
If I bulk import servers with existing nsclient++ associated with old IP now, will communication succeed when nsclient++ config file is updated with new XI IP? Are there any additional steps?
Re: Use Existing Agents with Nagios XI
Posted: Tue Feb 19, 2013 1:34 pm
by lmiltchev
After you make changes in the NSC.ini (or nsclient.ini, depending on the version) file, you need to restart the nsclient++ service, so that the changes can take effect.
Re: Use Existing Agents with Nagios XI
Posted: Tue Feb 19, 2013 4:32 pm
by asmgiadmin
Can anyone recommend a way to push new agents to Windows / Linux servers with existing agents? Will npush agent as described here -
http://assets.nagios.com/presentations/ ... tation.odp work?
I'm confused how it mentions being built in to XI.