How NDOUtils work

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
HanzKlotz
Posts: 4
Joined: Fri Nov 23, 2012 10:07 am
Location: Poland

How NDOUtils work

Post 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
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: How NDOUtils work

Post 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.
HanzKlotz
Posts: 4
Joined: Fri Nov 23, 2012 10:07 am
Location: Poland

Re: How NDOUtils work

Post 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.
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: How NDOUtils work

Post by jsmurphy »

Glad I could help :)
Locked