Database used by Nagios Core

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
hpzaramk
Posts: 25
Joined: Wed Nov 21, 2018 12:06 am

Database used by Nagios Core

Post 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.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Database used by Nagios Core

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
hpzaramk
Posts: 25
Joined: Wed Nov 21, 2018 12:06 am

Re: Database used by Nagios Core

Post 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.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Database used by Nagios Core

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
hpzaramk
Posts: 25
Joined: Wed Nov 21, 2018 12:06 am

Re: Database used by Nagios Core

Post 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.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Database used by Nagios Core

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked