| Cheshire Cat Computing https://steveshipway.org/forum/ |
|
| Perl 5.10 and RRDtool https://steveshipway.org/forum/viewtopic.php?f=2&t=1689 |
Page 1 of 6 |
| Author: | stevesh [ Tue Dec 09, 2008 5:35 pm ] |
| Post subject: | Perl 5.10 and RRDtool |
There have been a couple of people reporting problems running RRDtool 1.2.x modules with Perl 5.10. If you get Perl crashes (half-completed pages etc) then you may be affected. Check your apache logs to see errors about 'unable to free scalar' or similar. So far, recommended actions are: 1) Reinstall RRDTool and the RRD Perl modules from source, if you installed from an RPM. Most RPMs are built for Perl 5.8 and this may be a cause. 2) Upgrade to RRDtool 1.3.4 (or whatever is most recent) as the 1.3 branch may not have this problem. Please report your system config (run 'perl -V' and post the details here) if you're being affected by this. |
|
| Author: | Rednarb [ Wed Nov 25, 2009 7:19 am ] |
| Post subject: | Re: Perl 5.10 and RRDtool |
| Author: | stevesh [ Wed Nov 25, 2009 9:38 am ] |
| Post subject: | Re: Perl 5.10 and RRDtool |
Are you getting any error messages in your web server error logs? That would be the apache logs/error_log file I think for you. This would give indications of any perl errors. Also, if you are using mod_perl or speedycgi then disable them temporarily and try again - sometimes they can hide error messages or can even introduce new errors. Let me know if theres anything in the error logs. |
|
| Author: | Rednarb [ Wed Nov 25, 2009 11:01 am ] |
| Post subject: | Re: Perl 5.10 and RRDtool |
Thanks for looking into this. No errors in the apache2 error logs. I am using speedycgi so I disabled it (first line of routers2.cgi and change of cache statement in conf) but other than it running a lot slower there's no change in output and no change in the log files. I noticed in the verify page that it says "RRDs library found OK (Version 1.3.1)" but I'm running RRDtool 1.4.2... is this OK? Should I expect the library version to be different from the binary? |
|
| Author: | stevesh [ Wed Nov 25, 2009 7:00 pm ] |
| Post subject: | Re: Perl 5.10 and RRDtool |
| Author: | Rednarb [ Thu Nov 26, 2009 3:53 am ] |
| Post subject: | Re: Perl 5.10 and RRDtool |
I found RRDs.pm and other RRD related perl stuff in other spots and blew it away. Then reinstalled rrdtool 1.4.2. I then had to put a libadd statement in routers2.conf and now verify is reporting "RRDs library found OK (Version 1.4.2)". Thanks for your help with this! However, the initial problem of graphs not showing up when using 6-hour view still exists. I've touched the cgi, cleared cache, etc. to no avail. |
|
| Author: | stevesh [ Thu Nov 26, 2009 10:48 am ] |
| Post subject: | Re: Perl 5.10 and RRDtool |
So, as I understand it, when using Perl 5.10 and Routers2 2.20, if you are looking at the Summary page for 6-hour with the 'active' option set, you get no graphs displayed (as if all interfaces were inactive). Can you give a definite confirm that the RRD files for these graphs have a 60-sec interval? If they are 5-min interval, then attempting to do a 6-hour summary may extract unusual data and give routers2 the impression that they are zero... thugh this shouldnt happen. I'll check the isactive() function code for behaviour in 6-hour mode. |
|
| Author: | Rednarb [ Thu Nov 26, 2009 11:20 am ] |
| Post subject: | Re: Perl 5.10 and RRDtool |
You've got it correct. I've also confirmed that they are 1-minute interval graphs. Also, this worked perfectly until the Ububntu upgrade I just did which included 1000's of package updates. Routers2 2.20 Perl 5.10.0 RRDtool 1.4.2 /etc/issue: Ubuntu 9.04 \n \l uname -a: Linux jii-btn1 2.6.28-16-server #55-Ubuntu SMP Tue Oct 20 20:50:00 UTC 2009 i686 GNU/Linux |
|
| Author: | susangarcia703 [ Thu Jan 05, 2012 3:26 am ] |
| Post subject: | Re: Perl 5.10 and RRDtool |
Just wanted to say that i had problems running RRDtool 1.2.x modules with Perl 5.10 too. After reinstalling RRDTool and the RRD Perl modules from source it seems to have stopped crashing. Will give an update if anything crops up. Thanks |
|
| Author: | chrisclark [ Tue Feb 21, 2012 5:08 am ] |
| Post subject: | Re: Perl 5.10 and RRDtool |
What a great tool the internet is! I was having the same issue and found this post! Great work Steve you stopped me pulling my hair out |
|
| Page 1 of 6 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|