Hi Team,
While access the GUI web console ,i am getting the ERROR - " DB Connect Error [nagiosxi]: database connection failed ".
I already tried to start / stop the mysqld,but it didn't work.
Please provide us the solution.
Thanks & Regards
Kumar Gaurav
Email: [email protected]
DB Connect Error [nagiosxi]: database connection failed
-
wipro-cloud-services
- Posts: 58
- Joined: Thu Nov 11, 2010 4:42 am
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: DB Connect Error [nagiosxi]: database connection failed
I moved this to the XI forum as this is not a core question. Anyway, when you say that you restarted mysql and it did not work, what exactly do you mean? Was the database not started, or did the errors not change in XI? Have you altered the mysql passwords at all?
Code: Select all
service mysqld status
service postgresql statusNagios-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.
-
wipro-cloud-services
- Posts: 58
- Joined: Thu Nov 11, 2010 4:42 am
Re: DB Connect Error [nagiosxi]: database connection failed
Hi,
We are able to login on Nagios web console after server reboot,however i am not able to view the Service Status "No matching services found".
I am able to view the Host details.
Could you please help on this to get the fix.
Authenticating with public key "imported-openssh-key"
[root@domU-12-31-39-0B-40-21 ~]# service mysqld status
mysqld (pid 1043) is running...
[root@domU-12-31-39-0B-40-21 ~]# service postgresql status
postmaster (pid 1087) is running...
[root@domU-12-31-39-0B-40-21 ~]#
Thanks & Regards
Kumar Gaurav
We are able to login on Nagios web console after server reboot,however i am not able to view the Service Status "No matching services found".
I am able to view the Host details.
Could you please help on this to get the fix.
Authenticating with public key "imported-openssh-key"
[root@domU-12-31-39-0B-40-21 ~]# service mysqld status
mysqld (pid 1043) is running...
[root@domU-12-31-39-0B-40-21 ~]# service postgresql status
postmaster (pid 1087) is running...
[root@domU-12-31-39-0B-40-21 ~]#
Thanks & Regards
Kumar Gaurav
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: DB Connect Error [nagiosxi]: database connection failed
You may be experiencing crashed tables depending on how you rebooted your server. Lets run the database repair script and see if you have your services back in their tables on the web interface. Also, run the following commands and share the output:
http://assets.nagios.com/downloads/nagi ... tabase.pdf
Code: Select all
df -iCode: Select all
df -h-
wipro-cloud-services
- Posts: 58
- Joined: Thu Nov 11, 2010 4:42 am
Re: DB Connect Error [nagiosxi]: database connection failed
Hi,
I tried the command ,but no luck,
Pls find the below details for further investigation.
[root@domU-12-31-39-0B-40-21 ~]# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/xvdf 524288 105880 418408 21% /
tmpfs 176551 1 176550 1% /dev/shm
[root@domU-12-31-39-0B-40-21 ~]#
[root@domU-12-31-39-0B-40-21 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvdf 7.9G 6.0G 1.6G 80% /
tmpfs 856M 0 856M 0% /dev/shm
[root@domU-12-31-39-0B-40-21 ~]#
pls help me for the next .
Regards,
Kumar Gaurav
I tried the command ,but no luck,
Pls find the below details for further investigation.
[root@domU-12-31-39-0B-40-21 ~]# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/xvdf 524288 105880 418408 21% /
tmpfs 176551 1 176550 1% /dev/shm
[root@domU-12-31-39-0B-40-21 ~]#
[root@domU-12-31-39-0B-40-21 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvdf 7.9G 6.0G 1.6G 80% /
tmpfs 856M 0 856M 0% /dev/shm
[root@domU-12-31-39-0B-40-21 ~]#
pls help me for the next .
Regards,
Kumar Gaurav
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: DB Connect Error [nagiosxi]: database connection failed
As previously asked, did you alter the mysql or postgres passwords at all? Run the command below as well please and return the output.
Code: Select all
tail -n 50 /var/log/httpd/error_logNagios-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.