Page 1 of 1
mod_gearman worker and databases
Posted: Thu Jun 02, 2016 5:12 pm
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
Re: mod_gearman worker and databases
Posted: Fri Jun 03, 2016 10:42 am
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.
Re: mod_gearman worker and databases
Posted: Fri Jun 03, 2016 1:47 pm
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
Re: mod_gearman worker and databases
Posted: Fri Jun 03, 2016 2:21 pm
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.
Re: mod_gearman worker and databases
Posted: Fri Jun 03, 2016 2:24 pm
by evisus
ok, thanks for your help and time