Failed when when I create more than 4 maps

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
studionews
Posts: 4
Joined: Mon Jan 15, 2007 5:33 am

Failed when when I create more than 4 maps

Post by studionews »

Hi

When I create more than 4 maps the fiveth doesn't good.

Why ? Can't we not create more than 4 maps ?

thk
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Re: Failed when when I create more than 4 maps

Post by chadd »

studionews wrote:Hi

When I create more than 4 maps the fiveth doesn't good.

Why ? Can't we not create more than 4 maps ?

thk
Check these things in your php.ini:

; Maximum size of POST data that PHP will accept.
post_max_size = 20M (default is much lower)

; Maximum allowed size for uploaded files.
upload_max_filesize = 10M (default is much lower)

Also make sure you are giving php enough memory in php.ini as well.

Answer to your question is, yes, more than 4 maps works fine. Good luck.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Failed when when I create more than 4 maps

Post by Howie »

chadd wrote: Check these things in your php.ini:

; Maximum size of POST data that PHP will accept.
post_max_size = 20M (default is much lower)

; Maximum allowed size for uploaded files.
upload_max_filesize = 10M (default is much lower)
How/Why do these two make a difference? I'm curious...

Anyway, memory_limit does for sure, and indeed you can have many more than 4 maps. Memory should be released between maps in the poller too, so the memory_limit should only affect the size of one map, rather than the total size of all maps. If not, I've broken something somewhere...
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: Failed when when I create more than 4 maps

Post by streaker69 »

Howie wrote:
chadd wrote: Check these things in your php.ini:

; Maximum size of POST data that PHP will accept.
post_max_size = 20M (default is much lower)

; Maximum allowed size for uploaded files.
upload_max_filesize = 10M (default is much lower)
How/Why do these two make a difference? I'm curious...

Anyway, memory_limit does for sure, and indeed you can have many more than 4 maps. Memory should be released between maps in the poller too, so the memory_limit should only affect the size of one map, rather than the total size of all maps. If not, I've broken something somewhere...
I could see that MAYBE the first option MIGHT have an effect, but the second should not.
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Post by chadd »

I think this is the one that ended up doing the trick for me:


; Maximum size of POST data that PHP will accept.
post_max_size = 20M (default is much lower)

I found the information in another forum, because I was having the same problem - and I think it was because of the size of my map (over 2M - the default POST limit). I made both changes at the same time, so I am guessing that the above one is the one that mattered.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

chadd wrote:I think this is the one that ended up doing the trick for me:


; Maximum size of POST data that PHP will accept.
post_max_size = 20M (default is much lower)

I found the information in another forum, because I was having the same problem - and I think it was because of the size of my map (over 2M - the default POST limit). I made both changes at the same time, so I am guessing that the above one is the one that mattered.
Which is weird, because weathermap doesn't use POST requests at all (OR uploads). I guess this is some typical PHP quirk. The manual doesn't mention any link between locally created files and post_max_size. That's why I asked. Gotta love PHP :P
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!)
studionews
Posts: 4
Joined: Mon Jan 15, 2007 5:33 am

Post by studionews »

Hi,

I tested in my php.ini that :


; Maximum size of POST data that PHP will accept.
post_max_size = 20M (default is much lower)

; Maximum allowed size for uploaded files.
upload_max_filesize = 10M (default is much lower)

Now all is right !!!!!!!!!! I can create more than 4 maps

Thank you very much
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Post by chadd »

glad that you got it working. Just out of curiosity, which one of the two/three settings did the trick for you (if you know)? Also, what was the file size your 4th map? Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests