Page 1 of 1

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

Posted: Mon Dec 02, 2013 10:35 am
by rdhall01
receiving thei error
DB Connect Error [nagiosxi]: Database connection failed DB Connect Error [nagiosxi]: Database connection failed
When trying to connect to nagiosxi
I have retarted nagios httpd and mysql and postgres no luck

df -h shows
tmpfs 7.9G 0 7.9G 0% /dev/shm full

so I tried another article
http://support.nagios.com/forum/viewtop ... nect+Error
on the forum that said to run the following

cp /usr/share/logwatch/default.conf/logwatch.conf to /etc/logwatch/conf/logwatch.conf

no luck
I am one version behind right now but cant give the specific nagiosxi can t get into gui

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

Posted: Mon Dec 02, 2013 11:08 am
by scottwilkerson
rdhall01 wrote:df -h shows
tmpfs 7.9G 0 7.9G 0% /dev/shm full
This is only a partial output, it should look like

Code: Select all

# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
                       12G  6.8G  4.1G  63% /
tmpfs                 947M     0  947M   0% /dev/shm
I would guess your disk is full

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

Posted: Mon Dec 02, 2013 11:12 am
by rdhall01
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
49G 22G 25G 47% /
/dev/sda1 145M 20M 118M 15% /boot
tmpfs 7.9G 0 7.9G 0% /dev/shm
/root/rhel-server-5.7-x86_64-dvd.iso
3.6G 3.6G 0 100% /mnt/cdrom

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

Posted: Mon Dec 02, 2013 11:19 am
by scottwilkerson
doesn't look like the root partition is full, lets check the inodes

Code: Select all

df -i
If these aren't full lets try to restart postgresql

Code: Select all

service postgresql restart

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

Posted: Mon Dec 02, 2013 11:25 am
by rdhall01
df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/VolGroup00-LogVol00
13107200 147716 12959484 2% /
/dev/sda1 38152 40 38112 1% /boot
tmpfs 2054903 1 2054902 1% /dev/shm
/root/rhel-server-5.7-x86_64-dvd.iso
0 0 0 - /mnt/cdrom
tmpfs 2054903 1 2054902 1% /dev/shm


service postgresql restart
Stopping postgresql service: [ OK ]
Starting postgresql service: [ OK ]


still get the DB Connect Error [nagiosxi]: Database connection failed DB Connect Error [nagiosxi]: Database connection failed while trying to get into the gui

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

Posted: Mon Dec 02, 2013 11:35 am
by sreinhardt
Thanks for the response, closing this thread as you have a ticket in with lmiltchev.