Nagios XI - High Load (mysqld/httpd)
Nagios XI 5.6.8
CentOS release 6.10 (Final)
64 bit
8 CPU
16GB Mem
load average: 104.40, 68.17, 63.40
The last few days post an upgrade a few days prior, the server has been spiking on load well over 100 for excessively long periods.
I have restarted the server, services, checked all logs and done various repairs on the database, even truncated tables, and done the dbmaint.
/usr/local/nagiosxi/scripts/repair_databases.sh
service mysqld stop
cd /var/lib/mysql/nagios
myisamchk -r -f nagios_logentries
myisamchk -r -f nagios_notifications
myisamchk -r -f nagios_statehistory
service mysqld start
rm -f /usr/local/nagiosxi/var/dbmaint.lock
php /usr/local/nagiosxi/cron/dbmaint.php
mysql -u ndoutils -pn@gweb nagios -e 'TRUNCATE TABLE nagios_logentries'
mysql -u ndoutils -pn@gweb nagios -e 'TRUNCATE TABLE nagios_notifications'
mysql -u ndoutils -pn@gweb nagios -e 'TRUNCATE TABLE nagios_statehistory'
/usr/local/nagiosxi/scripts/repair_databases.sh
But the nom log keeps reporting the error:
Database Error
A database connection error has been detected, please follow the repair prompt below. If the issue persists, please contact Nagios support.
Run the following from the CLI as root to attempt to repair the DB:
/usr/local/nagiosxi/scripts/repair_databases.sh
And the /var/log/messages has various references to unable to connect to the DB:
Dec 4 14:46:43 nagiosxi nagios: wproc: GLOBAL SERVICE EVENTHANDLER job 3024 from worker Core Worker 21670 is a non-check helper but exited with return code 1
Dec 4 14:46:43 nagiosxi nagios: wproc: early_timeout=0; exited_ok=1; wait_status=256; error_code=0;
Dec 4 14:46:43 nagiosxi nagios: wproc: stdout line 01: UNABLE TO CONNECT TO DB - EXITING!
Any advise on how to find and fix the issue would be appreciated.
Support update: Profile.zip downloaded and shared with team.
Nagios XI - High Load (mysqld/httpd)
Re: Nagios XI - High Load (mysqld/httpd)
Can you run this command on your Nagios server and post the output?
Edit:
Also, welcome to the forums!
Code: Select all
echo "SELECT table_name AS 'Table', round(((data_length + index_length) / 1024 / 1024), 2) 'Size in MB' FROM information_schema.TABLES WHERE table_schema IN ('nagios', 'nagiosql', 'nagiosxi');" | mysql -uroot -pnagiosxi --tableAlso, welcome to the forums!
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios XI - High Load (mysqld/httpd)
Attached herewith the out requested.
You do not have the required permissions to view the files attached to this post.
Re: Nagios XI - High Load (mysqld/httpd)
That looks good. And everything I can see in the profile looks good, except for the fact that top is showing a load of 100. Are you still experiencing high load, or does it happen intermittently?
If your server is experiencing high load right now, can you run this command and give me the output,
If your server is experiencing high load right now, can you run this command and give me the output,
Code: Select all
sar 1 5As 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios XI - High Load (mysqld/httpd)
It is very erratic, but stable for now.
The one thing I did notice, which may or may not be relevant.
Our license was in the last month, and up for renewal, and the performance issues started around the same time as we started receiving the reminders.
And as we loaded the updated licence, it is all stable again.
The one thing I did notice, which may or may not be relevant.
Our license was in the last month, and up for renewal, and the performance issues started around the same time as we started receiving the reminders.
And as we loaded the updated licence, it is all stable again.
Re: Nagios XI - High Load (mysqld/httpd)
Having the license lapse shouldn't cause high load on the system, but it does knock the number of hosts you can monitor down to just a handful of hosts. If you're good calling it where it's at we can close the thread. Otherwise if you want to try and grab the output of the sar command while the server is under load, we can keep troubleshooting.
Code: Select all
sar 1 5As 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!