Page 1 of 2

Data Base Error

Posted: Mon Apr 15, 2013 3:28 pm
by tavo2k4
My trial license expired, I got a 30 day extension from Sales Department. After I applied 30 day license extension I could not see any of my configured servers in Nagios.

I restarted Nagios (Linux) server, but after the reboot I get "Database connection failed DB Connect Error [nagiosxi]" in my browser.

Can I get help on this please, I an evaluating for some of our customers but I can not do the last tests.

Thanks,

Gus G

Re: Data Base Error

Posted: Mon Apr 15, 2013 4:19 pm
by abrist
Is selinux enabled?
Open up a terminal to the XI box, and run:

Code: Select all

getenforce
Post the output here.

Re: Data Base Error

Posted: Mon Apr 15, 2013 4:30 pm
by tavo2k4
It is "Disabled"

Re: Data Base Error

Posted: Mon Apr 15, 2013 4:32 pm
by abrist
Next, is postgres running?

Code: Select all

service postgresql status
If it is, you may have to fix your db:
http://support.nagios.com/wiki/index.ph ... .22_in_log

Re: Data Base Error

Posted: Tue Apr 16, 2013 7:56 am
by tavo2k4
No, postregs is not running.

Do I need to fix my DB?

Thanks,
Gus G.

Re: Data Base Error

Posted: Tue Apr 16, 2013 10:04 am
by scottwilkerson
You can start postgresql with

Code: Select all

service postgresql start
However, it could be stopped because the drive is full, I would run the following to check

Code: Select all

df -h
df -i

Re: Data Base Error

Posted: Tue Apr 16, 2013 10:35 am
by tavo2k4
I tried to start DB but it fails.

I am running Nagios as a virtual server, I expanded HD space to make sure I have enough to run Nagios, but it is still failing.

frustrating, I had all my servers set up and working, all I needed was screen shoots of my configuration to show to our customers.

Thanks

Re: Data Base Error

Posted: Tue Apr 16, 2013 10:37 am
by slansing
What is the exact error you receive when trying to start postgres? Don't worry this is not the end of the world, we should be able to get your install up and running again.

Re: Data Base Error

Posted: Tue Apr 16, 2013 11:12 am
by tavo2k4
Starting postgresql service: [FAILED]

Re: Data Base Error

Posted: Tue Apr 16, 2013 12:40 pm
by scottwilkerson
again can you run

Code: Select all

df -h
df -i
and post the output