Page 1 of 1

Database used by Nagios Core

Posted: Mon Oct 14, 2019 10:23 am
by hpzaramk
Hi,

We have implemented Nagios Core 4.4.3 on RHEL 7.5. May i know what's the DB used by Nagios core. Does it has any embedded DB to store the events, nodes, etc ?

And does the NCPA agent on the monitored nodes uses any light weight DB ?

Thanks,
Ram.

Re: Database used by Nagios Core

Posted: Mon Oct 14, 2019 11:03 am
by benjaminsmith
Hello Ram,

By default, Nagios Core does not use any database and the NCPA agent uses a SQLite database.

Let us know if you have any other questions.

Re: Database used by Nagios Core

Posted: Mon Oct 14, 2019 12:40 pm
by hpzaramk
Hi Benjaminsmith,

Thanks for the response. If the Nagios core does not use any database, where does the status change events and object definitions are stored in the backend ?

Can you please elaborate on this..

Thanks,
Ram.

Re: Database used by Nagios Core

Posted: Mon Oct 14, 2019 1:38 pm
by benjaminsmith
Hello Ram,

You'll find this data in the following directory. The status.dat file is used to store the current status, comment, and downtime information. Historical data is found in the nagios.log file.

Code: Select all

/usr/local/nagios/var
All of the configuration data is stored in text files in the following directory.

Code: Select all

/usr/local/nagios/etc

Re: Database used by Nagios Core

Posted: Mon Oct 14, 2019 1:44 pm
by hpzaramk
Thanks, Does it mean Nagios core doesn't support any external database type of architecture for storage of configuration and events ?

Does Nagios maintains all data as flat files instead of having dedicated database. Please advise if my understanding is correct.

Thanks,
Ram.

Re: Database used by Nagios Core

Posted: Mon Oct 14, 2019 1:54 pm
by benjaminsmith
Hi Ram,

There are two addons for Nagios Core for external databases.

Ndoutils
This application will write event data to a MySQL database.

https://exchange.nagios.org/directory/A ... ls/details
https://assets.nagios.com/downloads/nag ... OUtils.pdf

NagiosQL
Used to manage configurations from the web interface. However, config files are still written out to text files and loaded into Nagios core memory.

https://exchange.nagios.org/directory/A ... QL/details