Nagios XI logentries table crashes frequently

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Jithin
Posts: 5
Joined: Mon Oct 27, 2014 11:08 pm

Nagios XI logentries table crashes frequently

Post by Jithin »

We have NagiosXI setup ready on our staging/production environment.

But We are getting logentries table crashed error frequently, every time we’ll repair or sometimes it turns to truncate table as well. Could you suggest any permanent solution for this.

Code: Select all

 Log
 Table './nagios/nagios_logentries' is marked as crashed and last (automatic?) repair failed
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios XI logentries table crashes frequently

Post by hsmith »

I would like some more information:
  1. What version of XI are you running?
  2. How much free space do you have? df -h
  3. How do your inodes look? df -ih
  4. How are you doing on memory usage? free -m
  5. How much of a load is your CPU under? top | head -n5
  6. Is your DB offloaded?
Former Nagios Employee.
me.
Jithin
Posts: 5
Joined: Mon Oct 27, 2014 11:08 pm

Re: Nagios XI logentries table crashes frequently

Post by Jithin »

(1)I'm using XI version of Nagios XI 2014R2.7
(2)We have above 60% on disk space .but once we get this issue all the logentries will fail and mysqld.log and /var/log/messages increase in GBs
(3)root 3.8M 186K 3.6M 5% /
(4,5) memory and CPU seems to be OK even during this issue.
(6) We have not done any customized off loading DB.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI logentries table crashes frequently

Post by scottwilkerson »

Does this happen after powerloss?

The most common reason for crashed tables in MySQL is power failure, or in the case of a VM, the host machine shutting down abruptly without shutting down the VM properly first such as

Code: Select all

shutdown -h now
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Jithin
Posts: 5
Joined: Mon Oct 27, 2014 11:08 pm

Re: Nagios XI logentries table crashes frequently

Post by Jithin »

Our servers are running on cloud and since last 2-3 months servers are up and running
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Nagios XI logentries table crashes frequently

Post by jdalrymple »

It's not uncommon for the backup process to fill the disk (on a nightly basis) which then causes the databases to crash. Is your free disk space adequate to absorb your nightly uncompressed backups prior to compression/shipping?
Jithin
Posts: 5
Joined: Mon Oct 27, 2014 11:08 pm

Re: Nagios XI logentries table crashes frequently

Post by Jithin »

Hi ,


We had almost 60% free disk space.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios XI logentries table crashes frequently

Post by hsmith »

Maybe if we rotate the MySQL log and wait for this to happen we can figure out a cause.

Stop your mysql service

Code: Select all

service mysqld stop
Rename /var/log/mysqld.log

Code: Select all

mv /var/log/mysqld.log /var/log/mysqld.log.old
Start mysql

Code: Select all

service mysqld start

Once it happens again, please attach the log to this post for us to look at.

Meanwhile, it would be nice to see the top | head -n5 command to see what that usage is at. I've seen high CPU load cause this before.
Former Nagios Employee.
me.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios XI logentries table crashes frequently

Post by rkennedy »

I'd like to gather a bit more information about your environment.
How many host / service checks are you running?
How much resources are assigned to this machine?
Former Nagios Employee
Locked