mod_gearman worker and databases

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
evisus
Posts: 82
Joined: Tue Apr 26, 2016 1:19 pm

mod_gearman worker and databases

Post by evisus »

Hello

I'm testing solutions for distributed nagios xi and mod_gearman is what has worked best.

My question:
Is it possible to send to a database (on the same worker server) the results of checks carried out in the worker?

I need to have a single database with information distributed checks.

I hope I have explained well, thanks
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: mod_gearman worker and databases

Post by tmcdonald »

That's something you might need to ask the mod_gearman devs about. I've only ever used it for distributed checks, so any sort of "forking" of the data I am unsure of.
Former Nagios employee
evisus
Posts: 82
Joined: Tue Apr 26, 2016 1:19 pm

Re: mod_gearman worker and databases

Post by evisus »

ok, and in the case of ndo. Is it possible to configure one instance nagios two databases ?, at least in version 1.4 was mentioned as a possibility in the future, but today use ndo 2.0 and documentation is not updated.

I need to create a new database general data (contacts, checks, historical data, etc.), only with the information of a nagios host group or nagios contact .

Any idea that can perform like that ??

Thanks for your time
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: mod_gearman worker and databases

Post by tmcdonald »

NDO can still only push to one database as far as my understanding and reading of the code/docs goes. You would probably need to pull out the data from the NDO tables and insert them into your own database for your own needs.
Former Nagios employee
evisus
Posts: 82
Joined: Tue Apr 26, 2016 1:19 pm

Re: mod_gearman worker and databases

Post by evisus »

ok, thanks for your help and time
Locked