NagiosXI as Poller & Collector

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sbaviswa
Posts: 17
Joined: Tue Jan 22, 2013 9:04 am

NagiosXI as Poller & Collector

Post by sbaviswa »

Hi

Would like to have some documents to configure NagiosXI into poller & collector.
The scenario:
There will be a central nagiosxi server & DB server working as collector + nagiosxi pollers in all the branch datacenters.
The pollers must poll the metrics of devices under their scope. Later the centralized collector must receive all the metrics and stored centrally.

Any help is welcome.

Regards
Viswa
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NagiosXI as Poller & Collector

Post by tmcdonald »

It actually sounds like Nagios Fusion might be a better fit:

https://www.nagios.com/downloads/nagios-fusion/

We developed it basically for the same reason, to be a central collector/view for all monitored objects.
Former Nagios employee
sbaviswa
Posts: 17
Joined: Tue Jan 22, 2013 9:04 am

Re: NagiosXI as Poller & Collector

Post by sbaviswa »

Thanks for the reply.

The idea of fusion is just to collate the views/dashboards of all associated nagiosxi instances. Which means the data resides only on the distributed nodes & not centrally.

Our customer would like to have a true distributed setup where the data is collected centrally from all the other distributed nodes. Hence ruggedness in terms of db replication, etc can be done in the central location.

I can quote an example like how FullyAutomatedNagios operates --> A distributed nagios core installations with a central centureon server & db

If I use fusion (incase nagiosxi does not suite for poller-collector configurations), then all the distributed nodes must be built will ha & db replication. Is that correct?

regards - viswa
karthek
Posts: 64
Joined: Fri Aug 14, 2015 5:55 am
Location: INDIA

Re: NagiosXI as Poller & Collector

Post by karthek »

Then you should have a look at DNX method.

https://assets.nagios.com/downloads/gen ... utions.pdf

I bet this is what you are looking for.

#####EDIT#####

Few more solutions:

https://assets.nagios.com/downloads/nag ... ios_XI.pdf
https://labs.consol.de/nagios/mod-gearm ... od_gearman
"Machines don't make mistakes, we do."
sbaviswa
Posts: 17
Joined: Tue Jan 22, 2013 9:04 am

Re: NagiosXI as Poller & Collector

Post by sbaviswa »

DNX is an alternate method of mod_gearman. It just spreads the checks across different worker machines.

To my understanding :
1. DNX & mod_gearman are for distributing the load of the nagios server (in terms of checks processing)
2. MNTOS is for combining the tactical overviews of multiple nagios instances
3. fusion is for combining the views/ dashboard of multiple nagios instances

None of the method I understand can be configured as a poller-collector setup in a truely distributed environment.

So any suggestions as I mentioned earlier is welcome.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: NagiosXI as Poller & Collector

Post by eloyd »

Mod_gearman does exactly what you're asking. From the document referenced:
Mod_Gearman and its worker processes intercept checks made by Nagios and run them externally, process them, and send them back to the Nagios server
It does not hold the results of the check, and it is not able to be queried or display stats or anything else - it just does the work and reports back to Nagios where the results are processed, notifications are sent, and reports generated.

Otherwise, you are, indeed, talking about multiple Nagios servers, which you could then use DNX to send back to a central server for reporting and alerting.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
sbaviswa
Posts: 17
Joined: Tue Jan 22, 2013 9:04 am

Re: NagiosXI as Poller & Collector

Post by sbaviswa »

@ eloyd ---> can the DNX worker process servers be located in a different datacenter, get the local monitored data and send it to the central nagios server located somewhere else.
Request you to see my previous post..
To my understanding (correct me if I am wrong) the checks gets dispersed (intercepted) to the DNX servers from the nagios server. Hence all monitored data will first reach to nagios server and then spread.
But my requirement is that all monitoring to be done locally at the respective datacenters and the data must be pushed to the central server at specified intervals.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: NagiosXI as Poller & Collector

Post by eloyd »

Here's how I would do it:
  • Assume you have two data centers (just for this example) plus one central location.
  • Set up a Nagios XI server at each data center, plus one at your central location.
  • Ensure NRDP is enabled on the central Nagios server.
  • Each data center Nagios server performs all checks local to each data center.
  • Duplicate all hosts and services from data center Nagios servers on the central server as passive checks.
  • Set event handlers on each data center Nagios server checks to use NRDP to send the check result back to the central Nagios server simultaneously.
  • (Optionally, you could use cron to read /usr/local/nagios/var/nagios.log and duplicate sending commands that way)
You now have three Nagios servers, two of which are performing work and sending alerts in data centers, and a third which is simply collecting all service data in real time as passive checks, but not doing anything with it except being able to be used for reports, etc.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
sbaviswa
Posts: 17
Joined: Tue Jan 22, 2013 9:04 am

Re: NagiosXI as Poller & Collector

Post by sbaviswa »

Super eloyd... I think this sounds interesting.
Give me some time to try this method in the test environment and give feedback on how it works.

BTW in this case the central server can be considered as a DR location too right...
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: NagiosXI as Poller & Collector

Post by eloyd »

The central server would, by definition, have the same service checks on it as the data center servers, they would just be defined as passive. You would have to force them to check in a DR scenario, or else you would have to define them as active but disabled and then enable them in a DR scenario.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Locked