Solved

LibreNMS - unable to connect.

Posted on 2016-11-24
2
97 Views
Last Modified: 2016-12-28
Hey Guys

I am trying to setup LibreNMS and am stuck at the following point: (config.php)

ve a look in defaults.inc.php for examples of settings you can set here. DO NOT EDIT defaults.inc.php! ### Database config $config['db_host'] = 'localhost'; $config['db_user'] = 'librenms'; $config['db_pass'] = 'random pass'; $config['db_name'] = 'librenms'; $config['db']['extension'] = "mysqli";// mysql or mysqli // This is the user LibreNMS will run as //Please ensure this user is created and has the correct permissions to your install $config['user'] = 'librenms'; ### Memcached config - We use this to store realtime usage $config['memcached']['enable'] = FALSE; $config['memcached']['host'] = "localhost"; $config['memcached']['port'] = 11211; ### Locations - it is recommended to keep the default $config['install_dir'] = "/opt/librenms"; ### This should *only* be set if you want to *force* a particular hostname/port ### It will prevent the web interface being usable form any other hostname #$config['base_url'] = "http://librenms.company.com"; ### Enable this to use rrdcached. Be sure rrd_dir is within the rrdcached dir ### and that your web server has permission to talk to rrdcached. #$config['rrdcached'] = "unix:/var/run/rrdcached.sock"; ### Default community $config['snmp']['community'] = array("public"); ### Authentication Model $config['auth_mechanism'] = "mysql"; # default, other options: ldap, http-auth #$config['http_auth_guest'] = "guest"; # remember to configure this user if you use http-auth ### List of RFC1918 networks to allow scanning-based discovery #$config['nets'][] = "10.0.0.0/8"; #$config['nets'][] = "172.16.0.0/12"; #$config['nets'][] = "192.168.0.0/16"; # Uncomment the next line to disable daily updates #$config['update'] = 0;
MySQL Error

php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution

There are no DNS errors anywhere on my network and I can browse/ping hostnames without issue. I tried using these instructions here : http://docs.librenms.org/Installation/Installation-Ubuntu-1604-Apache/#install-configure-mysql

I was not able to make these changes:

Within the [mysqld] section please add:

innodb_file_per_table=1
sql-mode=""

Because when I did, the MySQL services wouldn't start.

Any ideas?
Robert
0
Comment
Question by:castellansolutions
2 Comments
 
LVL 40

Accepted Solution

by:
noci earned 500 total points
ID: 41901316
Can you mark the config as code in the question? that would make it readable.

sql-mode="" should have been sql_mode="" it think.

and does the lookup of localhost work?... ie. ping localhost
0
 
LVL 6

Author Comment

by:castellansolutions
ID: 41903282
Thanks for the response. I was able to get it figured out. The problem was with the PHP file. When I copied over the text of the php file the first part <PHP was missing. I added that and it all worked.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
DNS Server Changes - 2003 to 2012 6 68
How to prevent loss of email when changing domain name servers? 3 25
DNS entry for intranet 1 19
server crashed 2 48
Most DNS problems are VERY easily troubleshot and identifiable if you can follow the steps a DNS query takes. I would like to share the step-by-step a DNS query takes from the origin to the destination. _____________________________________________…
Occasionally you run into the website or two that will not resolve properly using your own DNS servers.  Some people simply set up global forwarders for their DNS server.  I don’t recommend doing this because it can cause problems resolving addresse…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question