Error connecting to databases!
Posted: Wed Jun 15, 2011 3:02 pm
Hard drive of our server crashed and we decided restore nagios(2011R1.3) using backup file:
All was good till /E-importnagiosql:
But we haven’t any proxy, our server directly connected to internet and has real ip.
We decided to ignore the problem, manually was created the file - installed.importnagiosql
and installation was finished(after F and Z steps).
Nagios core was beginning to work, but nagiosxi wasn’t beginning to work, in all log file of nagiosxi/var/* we have only one record -
We rewrote originals folders (/usr/local/nagios, /usr/local/nagiosxi, /etc/nagiosql) to our backups folders. Then were restored tables from dump files. After all this we still have error in all log file of nagiosxi/var/* -
- 1-/usr/local/nagios and /usr/local/nagiosxi
2-/etc/nagiosql
3-dump of:
3.1 table nagios
3.2 table nagiosql
3.3 table nagiosxi from postgres
All was good till /E-importnagiosql:
Code: Select all
ERROR: Unable to login to NagiosQL on 'localhost' - exiting. If you have a proxy configured, this may be the cause of the problem.We decided to ignore the problem, manually was created the file - installed.importnagiosql
Nagios core was beginning to work, but nagiosxi wasn’t beginning to work, in all log file of nagiosxi/var/* we have only one record -
We used restore_defaults.sh but without success.ERROR CONNECTING TO DATABASES!
We rewrote originals folders (/usr/local/nagios, /usr/local/nagiosxi, /etc/nagiosql) to our backups folders. Then were restored tables from dump files. After all this we still have error in all log file of nagiosxi/var/* -
ERROR CONNECTING TO DATABASES!