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    


seg fault

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



Joined: 12 Nov 2003
Posts: 16

PostPosted: Mon May 14, 2007 10:29 am    Post subject: seg fault Reply with quote

i run check.php and it works out great...

system:
Debian 4.0 (etch)
PHP: 5.2.0-8+etch1

it segfaults if i have any nodes in the config... take them out it works perfect...

dont know where to go.

--jeremy
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2162
Location: United Kingdom

PostPosted: Mon May 14, 2007 10:42 am    Post subject: Re: seg fault Reply with quote

dgman wrote:
i run check.php and it works out great...

system:
Debian 4.0 (etch)
PHP: 5.2.0-8+etch1

it segfaults if i have any nodes in the config... take them out it works perfect...

dont know where to go.

--jeremy


This is in the FAQ. You need to upgrade the GD library to the one in Debian's unstable repository. I don't use Debian personally, but this post has more info on how to do the upgrade: http://forums.cacti.net/viewtopic.php?p=98806#98806

Unfortunately, there's no way to get the exact version number from PHP for the GD library, otherwise I would have added that to check.php too It *is* possible to detect if it's the built-in PHP version, or the seperate one though. Maybe that would be useful.
Back to top
dgman



Joined: 12 Nov 2003
Posts: 16

PostPosted: Mon May 14, 2007 1:47 pm    Post subject: Ok That is fixed now new problem... Reply with quote

for some reason the plugin is reading the rra data backwords what is in is out and out is in. can i force it to use the data correctly???
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2162
Location: United Kingdom

PostPosted: Mon May 14, 2007 2:59 pm    Post subject: Re: Ok That is fixed now new problem... Reply with quote

dgman wrote:
for some reason the plugin is reading the rra data backwords what is in is out and out is in. can i force it to use the data correctly???


Well, it doesn't for anyone else that I know of, so I'd be surprised if it really is (let me know the circumstances if you disagree), but there are two ways to change the order:

* change the order of the nodes in the NODES line for a link. The expectation is that node 1 is the one that traffic is measured in and out of. By changing the order of the nodes, you reverse that assumption. I think this might actually be your problem.

* You can tell the rrd data source plugin to read the values out of the RRD file in the opposite order: TARGET yourrrdfile.rrd:traffic_out:traffic_out:traffic_in (assuming you're using the standard Cacti interface traffic template). If you are using the standard template, this shouldn't be necessary ever.

If it still seems to be acting wrong (like the colours are backwards), then run a poller cycle with DEBUG logging turned on, and see what the ReadData lines say in the WEATHERMAP section of the log.
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