It
looks like you might not have the $config['install_dir'] variable properly set in your config file:
# grep -n 'includes/db.inc.php' includes/definitions.inc.php
528:require_once($config['install_dir'] . "/includes/db.inc.php");
However, as you can see above, our copy of definitions.inc.php has that include on line 528 (we are running latest stable revision, 7407). It is possible that line 435 of that file in your revision is different, and doesn't refer to that config variable, but
you will have to see what is on that line first to know.
Assuming that it also uses that same config variable, you just need to update/add this line in your config.php:
$config['install_dir'] = "/opt/observium";
If that doesn't fix it, then you will need to check what line 435 actually is, by running the following command:
# head -435 /opt/observium/includes/definitions.inc.php | tail -1
And then provide the output here.
On 01/21/2016 06:55 AM, Serghei Golipad wrote:
Any one else has this problem?
/opt/observium/html/weathermap# ./map-poller.php
PHP Fatal error: require_once(): Failed opening required '/includes/db.inc.php' (include_path='.:/usr/share/php:/usr/share/pear') in /opt/observium/includes/definitions.inc.php on line 435
Map fails to appear under weathermap in the main menu.
Thanks
PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS EMAIL.
Kelway Ltd is a Company registered in England and Wales.
This email is sent for and on behalf of Kelway Holdings Limited. Kelway Holdings Limited is the UK holding company for Kelway Limited trading as Kelway. The registered office for Kelway Holdings
Limited (Company Number 05872067) and its UK group undertakings is 10 Fleet Place, London, EC4M 7RB. VAT Registration 902 1949 39.
Confidentiality: This e-mail contains proprietary information, some or all of which may be confidential and/or legally privileged. It is for the intended recipient only. If an addressing or transmission
error has misdirected this e-mail, please notify the author by replying to this e-mail and then delete the original. If you are not the intended recipient you may not use, disclose, distribute, copy, print or rely on any information contained in this e-mail.
You must not inform any other person other than Kelway or the sender of its existence.
For more information about Kelway please visit
www.kelway.com
_______________________________________________
observium mailing list
observium@observium.orghttp://postman.memetic.org/cgi-bin/mailman/listinfo/observium