Can edit weathermap, but *.png file is not generated

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
runlikeanantelope
Cacti User
Posts: 63
Joined: Thu Feb 15, 2007 12:08 pm

Can edit weathermap, but *.png file is not generated

Post by runlikeanantelope »

Installed weathermap as stand-alone configuration in /var/www/html/weathermap.

I can browse to http://server/weathermap/editor.php and edit a map with nodes and links.

When I try to run this command, it fails:

[root@localhost weathermap]# php weathermap --config MyConfig.conf --output test.png --htmloutput test.html
Content-type: text/html
X-Powered-By: PHP/4.3.9


PHP Warning: fopen(MyConfig.conf): failed to open stream: No such file or directory in /var/www/html/weathermap/Weathermap.class.php on line 2065
Couldn't open config file MyConfig.conf for reading
Could not read Weathermap config file. No output produced.

But the file is there:

[root@localhost configs]# pwd
/var/www/html/weathermap/configs
[root@localhost configs]# ls -al
total 20
drwxrwxrwx 2 1000 users 4096 May 2 15:44 .
drwxr-xr-x 7 1000 users 4096 May 2 15:42 ..
-rw-r--r-- 1 apache apache 1091 May 2 15:38 MyConfig.conf
-rw-r--r-- 1 1000 users 243 May 2 15:44 simple.conf


However, if I just execute "php weathermap" it doesn't give me errors, but anytime I edit the simple.conf file, nothing ever changes in the weathermap.png file?
runlikeanantelope
Cacti User
Posts: 63
Joined: Thu Feb 15, 2007 12:08 pm

Post by runlikeanantelope »

I needed to put the full path to the config file:

[root@localhost weathermap]# php weathermap --config /var/www/html/weathermap/configs/My Config.conf --output test.png --htmloutput test.html


Ooops! :oops:
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

runlikeanantelope wrote:I needed to put the full path to the config file:

[root@localhost weathermap]# php weathermap --config /var/www/html/weathermap/configs/My Config.conf --output test.png --htmloutput test.html


Ooops! :oops:
or the path relative to the weathermap directory:
php weathermap --config configs/MyConfig.conf --output test.png --htmloutput test.html should work too.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest