Page 1 of 1

How NDOUtils work

Posted: Fri Nov 23, 2012 10:36 am
by HanzKlotz
Hi everyone !
I just have installed NDOUtils, and I wonder how it's works. I know that the ndomod is forwarding Nagios Data to ndo2db and ndo2db writes it to mySQL database. This scenario is quite good explained in NDO documentation. But I can't find any information about reading data from database. I.e. if I want to generate Nagios Availability Report, from where Nagios reads data? From archived logs or from database? Should I backup my archived logs or is it enough if I backup only database?
I can understand the reason of using database to store nagios data but where's the sense when I can't use it?
Am I miss something in NDO documentation?

Regards,
HanzKlotz

Re: How NDOUtils work

Posted: Sun Nov 25, 2012 7:32 pm
by jsmurphy
Nagios core will only read data from the local logs, so if you want to backup that data then backup the archived logs.

Usually you only use ndo2db if you have a plugin that requires it (i.e. Nagvis), but if you want to create your own plugins you can find the database schema information here: http://nagios.sourceforge.net/docs/ndou ... _Model.pdf, the document is a little bit old but still accurate to the best of my knowledge.

The ndo2db database is fairly straight forward and when I created a plugin using it years ago I just poked around the database a bit until I found the fields I needed.

Re: How NDOUtils work

Posted: Tue Nov 27, 2012 5:17 am
by HanzKlotz
Thanks for your response. Now I get it.
I thought that Nagios can read data from DB and NDO completely replace config files. Me stupid. Now I understand. thanks a lot.

Re: How NDOUtils work

Posted: Tue Nov 27, 2012 3:48 pm
by jsmurphy
Glad I could help :)