Working for me now

because in config by default is directory for map "weathermap" path is http://<observiumip>/weathermap/map.htmlhttp:///weathermap/map.html (for example)


ACKNOWLEDGE the map now works

Observium 17.1.8329 (rolling) Weathermap 0.97c


email-header-praha1


Tomas Chott
technický ředitel

chott@praha1.net
Phone: +420 245 004 005
Mobile: +420 733 123 135

Metropolitní síť Praha 1 z.s.p.o.
Jindrisska 18
110 00 Praha 1
Czech Republic
www.praha1.net

Popis: Facebook


Od: observium [observium-bounces@observium.org] za uživatele chott@praha1.net [chott@praha1.net]
Odesláno: 25. ledna 2017 11:04
Komu: Observium Network Observation System; Michael
Předmět: Re: [Observium] Weathermap graph guideline

I have similar problem
by this guide
http://blog.best-practice.se/2014/07/using-php-weathermap-with-observium.htmlhttp://blog.best-practice.se/2014/07/using-php-weathermap-with-observium.html

at first after install get this error


PHP Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/share/php/Console/Getopt.php on line 109
PHP Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/share/php/Console/Getopt.php on line 154
PHP Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/share/php/Console/Getopt.php on line 154
PHP Strict Standards: Non-static method PEAR::isError() should not be called statically in /opt/observium/html/weathermap/weathermap on line 60
WARNING: configs//networkmap.conf: OVERLIBGRAPH is used, but HTMLSTYLE is static. This is probably wrong. [WMWARN41]

Repair
you need to add a @ in the php files before the PEAR - meaning @PEAR::isError instead of PEAR::isError

Now:

root@observium:/opt/observium/html/weathermap# ./map-poller.php
WARNING: configs//core.conf: OVERLIBGRAPH is used, but HTMLSTYLE is static. This is probably wrong. [WMWARN41]

root@observium:/opt/observium/html/weathermap# ./weathermap
PHP Warning:  fopen(weathermap.conf): failed to open stream: No such file or directory in /opt/observium/html/weathermap/lib/Weathermap.class.php on line 1789
PHP Warning:  file_get_contents(weathermap.conf): failed to open stream: No such file or directory in /opt/observium/html/weathermap/lib/Weathermap.class.php on line 3080

but no generate maps into folder


email-header-praha1


Tomas Chott
technický ředitel

chott@praha1.net
Phone: +420 245 004 005
Mobile: +420 733 123 135

Metropolitní síť Praha 1 z.s.p.o.
Jindrisska 18
110 00 Praha 1
Czech Republic
www.praha1.net

Popis: Facebook


Od: observium [observium-bounces@observium.org] za uživatele Sophanith Chhom [sophanith.chhom@gmail.com]
Odesláno: 25. ledna 2017 10:46
Komu: Michael
Kopie: Observium Network Observation System
Předmět: Re: [Observium] Weathermap graph guideline

Still look same problem even try to run different directory:

[root@observium observium]# /opt/observium/html/weathermap/map-poller.php
PHP Fatal error:  require_once(): Failed opening required '/includes/db.inc.php' (include_path='.:/usr/share/pear:/usr/share/php') in /opt/observium/includes/definitions.inc.php on line 475
[root@observium observium]# cd html/
[root@observium html]# /opt/observium/html/weathermap/map-poller.php
PHP Fatal error:  require_once(): Failed opening required '/includes/db.inc.php' (include_path='.:/usr/share/pear:/usr/share/php') in /opt/observium/includes/definitions.inc.php on line 475
[root@observium html]# cd weathermap/
[root@observium weathermap]# /opt/observium/html/weathermap/map-poller.php
PHP Fatal error:  require_once(): Failed opening required '/includes/db.inc.php' (include_path='.:/usr/share/pear:/usr/share/php') in /opt/observium/includes/definitions.inc.php on line 475


On Wed, Jan 25, 2017 at 3:53 PM, Michael <michael@smarsz.com> wrote:
Try running it from within the /opt/observium directory.  The script is looking for the includes subdirectory as a relative location.

Michael



On 25 January 2017 6:59:47 PM LHDT, Sophanith Chhom <sophanith.chhom@gmail.com> wrote:
>I try to figure out and fix my weathermap,  it shows error as
>following:
>
>[root@observium logs]# /opt/observium/html/weathermap/map-poller.php
>PHP Fatal error:  require_once(): Failed opening required
>'/includes/db.inc.php'
>(include_path='.:/usr/share/pear:/usr/share/php') in
>/opt/observium/includes/definitions.inc.php on line 475
>
>any advice to make it working pls?
>
>
>
>On Wed, Jan 25, 2017 at 3:54 AM, chott@praha1.net <chott@praha1.net>
>wrote:
>
>> For me does not work generating MAPS
>>
>> editor.php working, i can get Node from Observium, get Link...thats
>all
>>
>>
>> [image: email-header-praha1]
>>
>>
>> *Tomas Chott technický ředitel*
>>
>> chott@praha1.net
>> Phone:
>> * +420 245 004 005 <+420%20245%20004%20005> *Mobile:* +420 733 123
>135
>> <+420%20733%20123%20135>*
>>
>> *Metropolitní síť Praha 1 z.s.p.o.*
>> Jindrisska 18
>> 110 00 Praha 1
>> Czech Republic
>> www.praha1.net
>>
>> [image: Popis: Facebook] <http://www.facebook.com/praha1net>
>> <http://www.linkedin.com/pub/tomas-chott/49/97a/1aa>
>> ------------------------------
>> *Od:* observium [observium-bounces@observium.org] za uživatele Derek
>[
>> dandenoth@gmail.com]
>> *Odesláno:* 24. ledna 2017 18:35
>> *Komu:* Observium Network Observation System
>> *Předmět:* Re: [Observium] Weathermap graph guideline
>>
>> I don't believe Weathermap is an official extension of Observium,
>however
>> I did it using this webpage's instructions:
>>
>> http://blog.best-practice.se/2014/07/using-php-weathermap-
>> with-observium.html
>>
>> Also, FWIW, it broke when I attempted to use RRDcached.
>>
>> ~Derek
>>
>> On Mon, Jan 23, 2017 at 10:42 PM, chott@praha1.net <chott@praha1.net>
>> wrote:
>>
>>> +1
>>>
>>> for me :-)
>>>
>>>
>>> [image: email-header-praha1]
>>>
>>>
>>> *Tomas Chott technický ředitel*
>>>
>>> chott@praha1.net
>>> Phone:
>>> * +420 245 004 005 <+420%20245%20004%20005> *Mobile:* +420 733 123
>135
>>> <+420%20733%20123%20135>*
>>>
>>> *Metropolitní síť Praha 1 z.s.p.o.*
>>> Jindrisska 18
>>> 110 00 Praha 1
>>> Czech Republic
>>> www.praha1.net
>>>
>>> [image: Popis: Facebook] <http://www.facebook.com/praha1net>
>>> <http://www.linkedin.com/pub/tomas-chott/49/97a/1aa>
>>> ------------------------------
>>> *Od:* observium [observium-bounces@observium.org] za uživatele
>Sophanith
>>> Chhom [sophanith.chhom@gmail.com]
>>> *Odesláno:* 24. ledna 2017 4:37
>>> *Komu:* observium@observium.org
>>> *Předmět:* [Observium] Weathermap graph guideline
>>>
>>> Hi All,
>>>
>>> I am just a new for Observium and looking it to replace Cacti.
>>>
>>> I am looking a guide fro Weathermap setup but it seems not useful
>how to
>>> add node/graph.
>>>
>>> Can you sent link for instruction to do it or guide please?
>>>
>>>
>>> Thanks,
>>>
>>> _______________________________________________
>>> observium mailing list
>>> observium@observium.org
>>> http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
>>>
>>>
>>
>> _______________________________________________
>> observium mailing list
>> observium@observium.org
>> http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
>>
>>



--
Name : Mr. CHHOM Sophanith
H/P: (+855) 88 918 8000