|
|
| Author |
Message |
StarLog Cacti User
Joined: 02 Jun 2007 Posts: 128
|
Posted: Mon Jul 16, 2007 11:13 pm Post subject: Config error ? |
|
|
The entry that has KEYPOS is indicating an error, I was sure the syntax was correct.
| Code: | 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 |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Tue Jul 17, 2007 3:00 am Post subject: Re: Config error ? |
|
|
| 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. |
|
| Back to top |
|
 |
StarLog Cacti User
Joined: 02 Jun 2007 Posts: 128
|
Posted: Tue Jul 17, 2007 6:48 am Post subject: |
|
|
| Excellent, thanks for the help. |
|
| Back to top |
|
 |
streaker69 Cacti Pro User
Joined: 27 Mar 2006 Posts: 647 Location: Psychic Amish Network Administrator
|
Posted: Tue Jul 17, 2007 6:58 am Post subject: Re: Config error ? |
|
|
| 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. |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Tue Jul 17, 2007 8:05 am Post subject: Re: Config error ? |
|
|
| 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. |
|
| Back to top |
|
 |
streaker69 Cacti Pro User
Joined: 27 Mar 2006 Posts: 647 Location: Psychic Amish Network Administrator
|
Posted: Tue Jul 17, 2007 8:15 am Post subject: Re: Config error ? |
|
|
| Howie wrote: | | 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. |
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: |
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: |
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. |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Tue Jul 17, 2007 8:18 am Post subject: |
|
|
OK - then that's just gone into the bug list for 0.93  |
|
| Back to top |
|
 |
streaker69 Cacti Pro User
Joined: 27 Mar 2006 Posts: 647 Location: Psychic Amish Network Administrator
|
Posted: Tue Jul 17, 2007 8:35 am Post subject: |
|
|
| Howie wrote: | OK - then that's just gone into the bug list for 0.93  |
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. |
|
| Back to top |
|
 |
|