Use Existing Agents with Nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
asmgiadmin
Posts: 125
Joined: Tue Feb 12, 2013 5:00 pm

Use Existing Agents with Nagios XI

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Use Existing Agents with Nagios XI

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

Code: Select all

allowed_hosts=
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):

Code: Select all

only_from       =
Note: IPs are space separated

Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Use Existing Agents with Nagios XI

Post 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!
asmgiadmin
Posts: 125
Joined: Tue Feb 12, 2013 5:00 pm

Re: Use Existing Agents with Nagios XI

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Use Existing Agents with Nagios XI

Post 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.
asmgiadmin
Posts: 125
Joined: Tue Feb 12, 2013 5:00 pm

Re: Use Existing Agents with Nagios XI

Post 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?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Use Existing Agents with Nagios XI

Post 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.
asmgiadmin
Posts: 125
Joined: Tue Feb 12, 2013 5:00 pm

Re: Use Existing Agents with Nagios XI

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Use Existing Agents with Nagios XI

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
asmgiadmin
Posts: 125
Joined: Tue Feb 12, 2013 5:00 pm

Re: Use Existing Agents with Nagios XI

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