Page 1 of 1

How to configure NagiosXI to use proxy to reach NCPA agents

Posted: Tue Nov 19, 2019 9:32 am
by imadc
Hello Team,

How to configure NagiosXI to use proxy or middle server that will be used as a hop to reach NCPA agents

In our use case we have NagiosXI on Data-center A
NagiosXI have access to only one server in Data-center B

What is the recommended way to reach and do active checks on all servers that are hosted in Data-center B through using one server that will be ackting as a proxy or a hop to direct those active checks inside DC B from NagiosXI in DC A.

Thanks
Insurity

Re: How to configure NagiosXI to use proxy to reach NCPA age

Posted: Tue Nov 19, 2019 2:49 pm
by ssax
I'd probably look at doing something like mod_gearman and setting up an external gearman worker in the other data centers, please see here for more information:

https://assets.nagios.com/downloads/nag ... ios_XI.pdf
https://support.nagios.com/kb/article.php?id=484

NOTE: Make sure that you follow the "Remote Worker Considerations" and the "Host groups and Service groups​" sections from the second link above and then follow the "Disable Worker​" section from the first link once you've setup your exclude groups.

You could also use check_by_ssh to run remote commands:

https://assets.nagios.com/downloads/nag ... ng_SSH.pdf

Let me know if you have any questions or if I can clarify anything.

Re: How to configure NagiosXI to use proxy to reach NCPA age

Posted: Wed Nov 20, 2019 9:26 am
by imadc
Thanks ssax

Want to ask if we can we install a NagiosXI server on the remote Datacenter B using the same licensee? Seem an easier option

Because form the notes of the Mod-Gearman it is not clear what need to be provisioned or run inside Datacenter B only I see what need to be executed on the NagiosXI. So not sure how the traffic will flow

Thanks
Insurity

Re: How to configure NagiosXI to use proxy to reach NCPA age

Posted: Wed Nov 20, 2019 9:38 am
by imadc
Also another alternative will Passive check be a solution to this case

Where all Remote NCPA agent will push metric and data to the remote NagiosXI

In the case of this passive checks connection required : NCPA Agents -> NagiosXI only required the reverse is not required

Is that a try statement?

Re: How to configure NagiosXI to use proxy to reach NCPA age

Posted: Wed Nov 20, 2019 1:48 pm
by mbellerue
You can only have 1 active instance of Nagios XI per license. You can have a backup server ready, but it can't be used for active monitoring while your primary is still in operation.

I think your best bet here is passive checks with NCPA, as you described in your last post.