Library

Docs
Beta

Products

Adding Additional Instances To ClusterAlerting On Log EventsAnalyzing LogsAuthenticating and Importing Users with AD and LDAPChanging Data Store PathConfiguring FiltersConfiguring InputsConfiguring Multi Tenancy in Nagios Log ServerConfiguring NXLog To Send Additional Log FilesCreating a Log Server DashboardForwarding Logs from Nagios Log Server to Another DestinationHow To Configure NXLog To Send Multi line Logs To Nagios Log Server.How To Configure Windows To Send Logs To Nagios Log ServerHow To Create A Nagios Log Server Instance In The Amazon EC2 CloudHow To Export Or Schedule Reports In Nagios Log ServerHow To integrate Nagios Log Server with XIHow to Backup and Restore the Nagios Log ServerHow to use a Proxy Server with Nagios Log ServerIntegrating Nagios Log Server with Nagios XILog Server Dashboard OverviewManaging ClustersManaging IndicesManaging Snapshots and MaintenanceMonitoring A New Log SourceMonitoring Apache Logs with Nagios Log ServerMonitoring Linux System Logs using Nagios Log ServerMonitoring Squid Proxy Server With Nagios Log ServerNagios Log Server Adding Additional Instances To ClusterNagios Log Server Administrator GuideNagios Log Server Alerting On Log EventsNagios Log Server Analyzing LogsNagios Log Server Architecture and Overview NWC15Nagios Log Server Changing Data Store PathNagios Log Server Cluster Timezone SettingsNagios Log Server Configuration OverviewNagios Log Server Configuring Input FiltersNagios Log Server Configuring InputsNagios Log Server Configuring NXLog To Send Additional Log FilesNagios Log Server Configuring NXLog To Send Multi Line Log FilesNagios Log Server Conversion for VirtualBoxNagios Log Server Custom Alert Message Email TemplateNagios Log Server Data Backup and ArchivingNagios Log Server ELK documentationNagios Log Server ESXi Syslog ConfigNagios Log Server Exporting Log DataNagios Log Server Full Architecture OverviewNagios Log Server How To Configure SSLNagios Log Server How To Create A Nagios Log Server Instance In The Amazon EC2 Cloud EnvironmentNagios Log Server How To Install Using VMwareNagios Log Server How To Select A DownloadNagios Log Server Important Files And DirectoriesNagios Log Server Introduction WebinarNagios Log Server Jobs Subsystem ArchitectureNagios Log Server License EntitlementsNagios Log Server Listening On Privileged PortsNagios Log Server Log Monitoring and Log Management with Nagios NWC14Nagios Log Server Logging InNagios Log Server Managing ClustersNagios Log Server Managing IndicesNagios Log Server Managing InstancesNagios Log Server Managing Snapshots and MaintenanceNagios Log Server Managing UsersNagios Log Server Monitor Your Log Server InstancesNagios Log Server Monitoring A New Log SourceNagios Log Server Offline UpgradeNagios Log Server Overview And TerminologyNagios Log Server Performance And Storage WalkthroughNagios Log Server Poller Subsystem ArchitectureNagios Log Server Real Life Experience of Nagios Log Server NWC15Nagios Log Server Removing An Instance From A ClusterNagios Log Server Sending Multiline Log Files Using SyslogNagios Log Server Sending NXLogs With SSLNagios Log Server Sending Nagios Core Logs To Nagios Log ServerNagios Log Server Sending syslog with SSL/TLSNagios Log Server Single Instance DeploymentNagios Log Server Updating Logstash PatternsNagios Log Server Upgrade InstructionsNagios Log Server Using An Output To Create Nagios XI Passive ObjectsNagios Log Server Using GeoIP DataNagios Log Server Using The Custom Includes PageRemoving An Instance From A ClusterSend Alerts Based on the Log Server Audit LogSending ESXi Logs To Nagios Log ServerSending Mac OS X Logs To Nagios Log ServerSending NXLogs With SSL/TLSSending Nagios Core Logs To Nagios Log ServerSending syslog With SSL/TLSUpgrade Nagios Log ServerUsing An Output To Create Nagios XI Passive ObjectsWaiting for Database StartupNagios Log Server Monitoring Using NCPA + Nagios XI

Waiting for Database Startup

Description

Nagios Log Server is a useful way to search and store large amounts of data however the start up process is resource intensive and may take some time to complete. If your instance of Log Server presents the message "Waiting for Database Startup" for more than a few minutes you may want to investigate the problem further.

First Verify The Process Is Running

First you will want to confirm the elasticsearch (2024R1) or opensearch (2024R2+) is running as expected. Login to your Nagios Log Server instance via the console or SSH and run the following command as root:

Log Server 2024R1

systemctl status elasticsearch

You should see output similar to the block below:


● elasticsearch.service - LSB: This service manages the elasticsearch daemon
Loaded: loaded (/etc/rc.d/init.d/elasticsearch; generated)
Active: active (running) since Tue 2025-01-28 14:28:34 CST; 20h ago
Docs: man:systemd-sysv-generator(8)
Process: 967 ExecStart=/etc/rc.d/init.d/elasticsearch start (code=exited, status=0/SUCCESS)
Tasks: 59 (limit: 10883)
Memory: 1.1G
CPU: 26min 7.966s
CGroup: /system.slice/elasticsearch.service
└─1180 /bin/java -Xms870m -Xmx870m -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -


Log Server 2024R2+

systemctl status opensearch

You should see output similar to the block below:


● opensearch.service - OpenSearch Loaded: loaded (/usr/lib/systemd/system/opensearch.service; enabled; preset: disabled) Active: active (running) since Fri 2025-08-22 17:12:48 CDT; 4 days ago Docs: https://www.elastic.co Process: 1981 ExecStartPost=php /var/www/html/nagioslogserver/www/index.php cli CLI_SynchronizeOpensearchConfiguration run> Main PID: 1023 (java) Tasks: 126 (limit: 48676) Memory: 4.2G (peak: 5.3G) CPU: 3h 46min 30.692s CGroup: /system.slice/opensearch.service └─1023 /usr/local/nagioslogserver/opensearch/jdk/bin/java -Xshare:auto -Dopensearch.networkaddress.cache.ttl=60 ->


The "Active:" line in the output should read "active (running)" as in the examples above. If it does not read active try restarting the process by running the following command as root on the command line of your server:

Log Server 2024R1

systemctl restart elasticsearch

Log Server 2024R2+

systemctl restart opensearch

Then after a few minutes check again to see if the process is in a running state. If it is not you will want to contact the Nagios Support team to help investigate the problem.

Nagios Support Resources

If The Process Is Running

If the process is in a running state and the "Waiting for Database Startup" is still present it may indicate that you have a system that is under resourced. You will want to use the tools and documentation for your operating system to make a determination as to where the restriction maybe however you may want to try the following if possible:

  1. Increase the amount of RAM available to the system up to 64Gb
  2. Increase the number of processors available to the system ( Minimum 4 )
  3. Ensure that your your iowait times are low ( below 5% ).

If you are using a virtual system you will also want to make sure your hypervisor isn't over provisioned and has enough resources for all virtual systems at peak times.

Finally if you are at your resource limits for your current host or cluster you might want to consider adding another node to your Log Server cluster.

Adding Additional Instances To A Nagios Log Server Cluster - 2024R1

Adding Additional Instances To A Nagios Log Server Cluster - 2024R2+

Final Thoughts

Additional considerations and/or tuning recommendations may be available on our community forums. We encourage and value community contributions/feedback that help us to make our products better.

https://support.nagios.com/forum/

Nagios Enterprises, LLC

© All rights reserved. 2026