access the NAgiosXI from web console its throwing the error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vinish098
Posts: 136
Joined: Fri Oct 21, 2016 6:30 am

access the NAgiosXI from web console its throwing the error

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

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

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked