DB connect error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dmanem
Posts: 83
Joined: Fri Apr 13, 2012 10:27 am

DB connect error

Post by dmanem »

Hello,

I am having Database connection error when I try to open Nagios XI. I tried deleting the error and access logs but that has not cleared any space.

Thank you,
Deepika
You do not have the required permissions to view the files attached to this post.
lcontreras
Posts: 48
Joined: Thu Sep 13, 2012 7:15 pm

Re: DB connect error

Post by lcontreras »

Hi,

You have to look for for others files that you could delete, the problem is that you don't have space on disk, and for that reason mysql doesn't start. You have to make room on your server enough for mysql server could start.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: DB connect error

Post by mguthrie »

This will give you all files larger than 32MB in the var directory:

Code: Select all

find /var/* -size +32768k
DO NOT delete something unless you know what it is ;)
dmanem
Posts: 83
Joined: Fri Apr 13, 2012 10:27 am

Re: DB connect error

Post by dmanem »

Hello,

I ran the command you sent me and these are the entries that showed up. I think I can delete the mail logs and maybe notifications. I am not sure what else to delete.Please let me know.

Thank you,
Deepika Manem
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: DB connect error

Post by scottwilkerson »

Don't delete anything in /var/lib/mysql

That is the Mysql database files...

If this is a virtual machine you might want to look at this
http://library.nagios.com/library/produ ... -disk-size
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Re: DB connect error

Post by niebais »

It's quite possible that some logs in /var have filled up bigger than they should be. Usually a messages file gets too large or the apache httpd log files.
dmanem
Posts: 83
Joined: Fri Apr 13, 2012 10:27 am

Re: DB connect error

Post by dmanem »

Hello,

I have hard disk space of 64GiB but one of my partition /dev/sda2 has 9.90GiB. This is what NagiosXI is using and now this partition is full and I was trying to extend this partition to use the unallocated partition as well but it looks like the /dev/sda2 partition is locked.I am not sure how to unlock it. Attached is a screenshot that explains this. Any help would be appreciated.

Thank you,
Deepika Manem
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: DB connect error

Post by scottwilkerson »

Gparted doesn't manage Linux lvm partitions

As I outlined before, we have instructions on extending the drive here
http://library.nagios.com/library/produ ... -disk-size
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
dmanem
Posts: 83
Joined: Fri Apr 13, 2012 10:27 am

Re: DB connect error

Post by dmanem »

That worked.

Thank you,
Deepika Manem
Locked