Nagios crashed: DB Connect Error [nagiosxi]:

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
msfhr
Posts: 14
Joined: Wed Aug 21, 2013 12:52 pm
Contact:

Nagios crashed: DB Connect Error [nagiosxi]:

Post by msfhr »

I am getting following error message when trying to login to NagiosXI.
DB Connect Error [nagiosxi]: Database connection failed DB Connect Error [nagiosxi]: Database connection failed
CPU jumped to 80x normal usage, npcd process leading the pack.

Tried repairing the database as per http://assets.nagios.com/downloads/nagi ... tabase.pdf but no go. I didn't get SQL error message after I started Nagios again so I didn't proceed further.

Centos 6.4x64 (virtual), Nagios (latest one forgot the version and can't retrieve it now as it's down), MySQL (mysql-server-5.1.69-1.el6_4.x86_64)
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios crashed: DB Connect Error [nagiosxi]:

Post by slansing »

Can you run the following and try accessing the interface again?:

Code: Select all

service httpd restart
service postgresql restart
msfhr
Posts: 14
Joined: Wed Aug 21, 2013 12:52 pm
Contact:

Re: Nagios crashed: DB Connect Error [nagiosxi]:

Post by msfhr »

Thanks for help slansing, that was it. It looks like postrgresql was stoppped. Does nagios uses two different db servers (mysql, postgresql)?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios crashed: DB Connect Error [nagiosxi]:

Post by tmcdonald »

That is correct. MySQL is used for object data, postgres is used for user data.
Former Nagios employee
msfhr
Posts: 14
Joined: Wed Aug 21, 2013 12:52 pm
Contact:

Re: Nagios crashed: DB Connect Error [nagiosxi]:

Post by msfhr »

thank you guys
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios crashed: DB Connect Error [nagiosxi]:

Post by slansing »

I'll close this as resolved!
Locked