Page 1 of 1

access the NAgiosXI from web console its throwing the error

Posted: Mon Dec 09, 2019 1:46 am
by vinish098
We started testing the connectivity ofoffload DB and Nagios. The Nagios server was able to connect to all 3 offloading DB's.

But when we are trying to access the NAgiosXI from web console its throwing the error connection failed: Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (22).
while we are stop the mariadb services it will throws that error.

and these are configuration files: vi /usr/local/nagios/etc/ndo2db.cfg
vi /usr/local/nagiosxi/html/config.inc.php

and kindly please check the below attachments. and please do the needful help.


Regards
Sai kiran

Re: access the NAgiosXI from web console its throwing the er

Posted: Mon Dec 09, 2019 10:01 am
by lmiltchev
Did you follow ALL OF THE STEPS, outlined in the document below?

https://assets.nagios.com/downloads/nag ... Server.pdf

It seems like that in the configs, your database server is still set as "localhost"... You should have:

Code: Select all

"dbserver" => '<IP_OF_MYSQL_OR_MARIADB_SERVER>'
Please revisit our official document on the topic, and make sure you followed all steps.