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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rdhall01
Posts: 87
Joined: Wed Nov 09, 2011 9:53 am

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

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rdhall01
Posts: 87
Joined: Wed Nov 09, 2011 9:53 am

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

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rdhall01
Posts: 87
Joined: Wed Nov 09, 2011 9:53 am

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

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

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

Post by sreinhardt »

Thanks for the response, closing this thread as you have a ticket in with lmiltchev.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked