Page 1 of 1

DB Connect Error [nagiosxi]: Database connection failed DB C

Posted: Mon Jun 24, 2013 2:18 am
by WillemDH
Hello,

This morning we noticed it wasn't possible to log into Nagios, the following error was displayed:

DB Connect Error [nagiosxi]: Database connection failed DB Connect Error [nagiosxi]: Database connection failed

After rebooting the server, going to the Nagios XI web interface resulted in a "This page cannot be displayed" error.

So I logged into the server and did a service httpd status, which showed me the httpd status wasn't running. When I tried to start it, I got the following error:

touch: cannot touch /var/lock/subsys/httpd: No space left on devices

Looking up this error, showed it had something to do with insufficient inodes available. When doing a df -i

it showed /dev/mapper/VolGroup00-LogVol100 had used 100 % of its inodes. It has 630784 inodes and all of them seem used.

A already tried a reboot, but the problem persists..

Please let me knwo what I can do to get our Nagios up and running again..

Re: DB Connect Error [nagiosxi]: Database connection failed

Posted: Mon Jun 24, 2013 8:37 am
by WillemDH
I found out what the problem is. The /var/spool/snmptt folder was using up all the inodes. I installed the snmptt this weekend.. For the moment I deleted all files in the snmptt folder, rebooted the server and then also had to do a mysql db repair following your procedure in http://assets.nagios.com/downloads/nagi ... tabase.pdf

In the meantime I found out that a misconfigured group policy made all servers send traps to the Nagios server. We reconfigured the gpo and things are calming down at the moment.

Re: DB Connect Error [nagiosxi]: Database connection failed

Posted: Mon Jun 24, 2013 9:41 am
by slansing
Yikes! Well, let us know if this issue crops up again, and if we can help.. thanks!