![](https://secure.gravatar.com/avatar/09c9775271db6b36c5e1f0bf776e93bb.jpg?s=120&d=mm&r=g)
Guys,
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 (UK) 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 (UK) 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.co.uk
![](https://secure.gravatar.com/avatar/9113800bbd271c46f4585a9549d85c15.jpg?s=120&d=mm&r=g)
Is the packet php-pear installed? /Markus Den 21 jan. 2016 12:56 em skrev "Serghei Golipad" s.golipad@kelway.com:
Guys,
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.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/09c9775271db6b36c5e1f0bf776e93bb.jpg?s=120&d=mm&r=g)
That was my 1st thought but it is:
/opt/observium# dpkg -l php-pear Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-========================-=================-=================-====================================================== ii php-pear 5.6.14+dfsg-0+deb all PEAR - PHP Extension and Application Repository
From: observium <observium-bounces@observium.orgmailto:observium-bounces@observium.org> on behalf of Markus Klock <markus@best-practice.semailto:markus@best-practice.se> Reply-To: Observium Network Observation System <observium@observium.orgmailto:observium@observium.org> Date: Thursday, 21 January 2016 at 11:59 To: Observium Network Observation System <observium@observium.orgmailto:observium@observium.org> Subject: Re: [Observium] Weatherman and Observium
Is the packet php-pear installed? /Markus
Den 21 jan. 2016 12:56 em skrev "Serghei Golipad" <s.golipad@kelway.commailto:s.golipad@kelway.com>: Guys,
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.comhttp://www.kelway.com
_______________________________________________ observium mailing list observium@observium.orgmailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/09c9775271db6b36c5e1f0bf776e93bb.jpg?s=120&d=mm&r=g)
That was my 1st thought but it is:
/opt/observium# dpkg -l php-pear Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-========================-=================-=================-====================================================== ii php-pear 5.6.14+dfsg-0+deb all PEAR - PHP Extension and Application Repository
From: observium <observium-bounces@observium.orgmailto:observium-bounces@observium.org> on behalf of Markus Klock <markus@best-practice.semailto:markus@best-practice.se> Reply-To: Observium Network Observation System <observium@observium.orgmailto:observium@observium.org> Date: Thursday, 21 January 2016 at 11:59 To: Observium Network Observation System <observium@observium.orgmailto:observium@observium.org> Subject: Re: [Observium] Weatherman and Observium
Is the packet php-pear installed? /Markus
Den 21 jan. 2016 12:56 em skrev "Serghei Golipad" <s.golipad@kelway.commailto:s.golipad@kelway.com>: Guys,
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.comhttp://www.kelway.com
_______________________________________________ observium mailing list observium@observium.orgmailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/6187c2a03e7d3a83f7a224bed4672a05.jpg?s=120&d=mm&r=g)
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:
Guys,
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.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/09c9775271db6b36c5e1f0bf776e93bb.jpg?s=120&d=mm&r=g)
Looks like new SVN pull comes with commented out of install DIR ;)
Cheers
From: observium <observium-bounces@observium.orgmailto:observium-bounces@observium.org> on behalf of Joseph Zancocchio <joseph@nyi.netmailto:joseph@nyi.net> Reply-To: "observium@observium.orgmailto:observium@observium.org" <observium@observium.orgmailto:observium@observium.org> Date: Thursday, 21 January 2016 at 14:54 To: "observium@observium.orgmailto:observium@observium.org" <observium@observium.orgmailto:observium@observium.org> Subject: Re: [Observium] Weatherman and Observium
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: Guys,
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.comhttp://www.kelway.com
_______________________________________________ observium mailing list observium@observium.orgmailto:observium@observium.orghttp://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (3)
-
Joseph Zancocchio
-
Markus Klock
-
Serghei Golipad