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)
Nagios crashed: DB Connect Error [nagiosxi]:
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagios crashed: DB Connect Error [nagiosxi]:
Can you run the following and try accessing the interface again?:
Code: Select all
service httpd restart
service postgresql restartRe: Nagios crashed: DB Connect Error [nagiosxi]:
Thanks for help slansing, that was it. It looks like postrgresql was stoppped. Does nagios uses two different db servers (mysql, postgresql)?
Re: Nagios crashed: DB Connect Error [nagiosxi]:
That is correct. MySQL is used for object data, postgres is used for user data.
Former Nagios employee
Re: Nagios crashed: DB Connect Error [nagiosxi]:
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]:
I'll close this as resolved!