Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Config error ?

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
StarLog
Cacti User


Joined: 02 Jun 2007
Posts: 128

PostPosted: Mon Jul 16, 2007 11:13 pm    Post subject: Config error ? Reply with quote

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

PostPosted: Tue Jul 17, 2007 3:00 am    Post subject: Re: Config error ? Reply with quote

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

PostPosted: Tue Jul 17, 2007 6:48 am    Post subject: Reply with quote

Excellent, thanks for the help.
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Tue Jul 17, 2007 6:58 am    Post subject: Re: Config error ? Reply with quote

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

PostPosted: Tue Jul 17, 2007 8:05 am    Post subject: Re: Config error ? Reply with quote

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

PostPosted: Tue Jul 17, 2007 8:15 am    Post subject: Re: Config error ? Reply with quote

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

PostPosted: Tue Jul 17, 2007 8:18 am    Post subject: Reply with quote

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

PostPosted: Tue Jul 17, 2007 8:35 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group