Config error ?

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
StarLog
Cacti User
Posts: 150
Joined: Sat Jun 02, 2007 3:57 pm

Config error ?

Post by StarLog »

The entry that has KEYPOS is indicating an error, I was sure the syntax was correct.

Code: Select all

 07/17/2007 12:06:16 AM - WEATHERMAP: Poller[0] About to write image file. If this is the last message in your log, increase memory_limit in php.ini
07/17/2007 12:06:15 AM - WEATHERMAP: Poller[0] Unrecognised config on line 25: KEYPOS cactiupdown
07/17/2007 12:06:15 AM - WEATHERMAP: Poller[0] Map: /www/htdocs/plugins/weathermap/configs/Server Traffic -> /www/htdocs/plugins/weathermap/output/weathermap_3.html & /www/htdocs/plugins/weathermap/output/weathermap_3.png
The code at line 25:

KEYPOS cactiupdown
SCALE cactiupdown 0 0.5 192 192 192
Cacti v0.8.8a
Weathermap 9.7a
--------------------
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Config error ?

Post by Howie »

StarLog wrote:KEYPOS cactiupdown
KEYPOS is used to indicate the position of the key/legend on the map. Yours doesn't. It should be something like KEYPOS cactiupdown 10 10 or, if you don't want it to be visible either leave it out, or use KEYPOS cactiupdown -1 -1.
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!)
StarLog
Cacti User
Posts: 150
Joined: Sat Jun 02, 2007 3:57 pm

Post by StarLog »

Excellent, thanks for the help.
Cacti v0.8.8a
Weathermap 9.7a
--------------------
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Re: Config error ?

Post by streaker69 »

Howie wrote:
StarLog wrote:KEYPOS cactiupdown
KEYPOS is used to indicate the position of the key/legend on the map. Yours doesn't. It should be something like KEYPOS cactiupdown 10 10 or, if you don't want it to be visible either leave it out, or use KEYPOS cactiupdown -1 -1.
I keep leaving it out, and for some reason the editor keeps putting it back in.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Config error ?

Post by Howie »

streaker69 wrote:
Howie wrote:
StarLog wrote:KEYPOS cactiupdown
KEYPOS is used to indicate the position of the key/legend on the map. Yours doesn't. It should be something like KEYPOS cactiupdown 10 10 or, if you don't want it to be visible either leave it out, or use KEYPOS cactiupdown -1 -1.
I keep leaving it out, and for some reason the editor keeps putting it back in.
Does it put it in wrong (without the coordinates)? I thought I had fixed that in 0.92... I can believe that it'd put the -1 -1 version in.
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!)
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Re: Config error ?

Post by streaker69 »

Howie wrote:
streaker69 wrote:
Howie wrote: KEYPOS is used to indicate the position of the key/legend on the map. Yours doesn't. It should be something like KEYPOS cactiupdown 10 10 or, if you don't want it to be visible either leave it out, or use KEYPOS cactiupdown -1 -1.
I keep leaving it out, and for some reason the editor keeps putting it back in.
Does it put it in wrong (without the coordinates)? I thought I had fixed that in 0.92... I can believe that it'd put the -1 -1 version in.
I just tested it. I went into my map, and removed the KEYPOS for a second scale that I'm using to change the color of the node text. I then went into the editor and pulled up Map Properties, and made no changes, but hit the submit button.

I get the following errors

Code: Select all

Notice: Undefined index: cactiupdown in /var/www/html/plugins/weathermap/Weathermap.class.php on line 4586

Notice: Undefined index: cactiupdown in /var/www/html/plugins/weathermap/Weathermap.class.php on line 4589

Notice: Undefined index: cactiupdown in /var/www/html/plugins/weathermap/Weathermap.class.php on line 4589

Notice: Undefined index: cactiupdown in /var/www/html/plugins/weathermap/Weathermap.class.php on line 4589
And it puts the KEYPOS cactiupdown back into the config file. So then when I rebuild the maps, I get:

Code: Select all

07/17/2007 09:14:51 AM - WEATHERMAP: Poller[0] Unrecognised config on line 26: KEYPOS cactiupdown
I am using the most recent version of the editor.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

OK - then that's just gone into the bug list for 0.93 :roll:
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!)
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

Howie wrote:OK - then that's just gone into the bug list for 0.93 :roll:
I did just add the -1 -1 and a dummy title to the scale and now I don't get any errors, so it's ok if it adds it back in, just make sure it puts in -1 -1 for it's location.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests