| Cheshire Cat Computing http://mail.steveshipway.org/forum/ |
|
| mrtg exits silently... http://mail.steveshipway.org/forum/viewtopic.php?f=11&t=1750 |
Page 1 of 1 |
| Author: | mpjames [ Thu Mar 12, 2009 9:14 am ] |
| Post subject: | mrtg exits silently... |
after setting the LogFormat: variable to rrdtool. SuSE Linux Enterprise (SLES9, SP4). It already has rrdtool (v. 1.0.46) and mrtg (v2.10.13) installed and I can't uninstall them because of other dependencies that SuSE/Novell have put in. So, I've installed mrtg 2.15.2 at /usr/local/mrtg-2/ and rrdtool 1.3.6 at /usr/local/rrdtool-1.3.6/. I followed the procedure at http://oss.oetiker.ch/rrdtool/doc/rrdbuild.en.html and eventually got rrdtool to build without errors (a story for another day). Anyhow, I changed my master config file (/etc/mrtg/mrtg.cfg) and set the LogFormat: rrdtool variable. Also in there are 4 Include: directives. Restarted mrtg (/usr/local/mrtg-2/bin/mrtg --daemon /etc/mrtg/mrtg.cfg) and it just dies quietly. It actually starts to create one .rrd file for the first include file, but that's it. I figure that the problem has to do with the extra versions of mrtg and rrdtool. Are there any logs that can tell me why mrtg is failing? I figure I need to add some PathAdd and/or LibAdd variables to the master cfg file, but which ones? testweb:~ # find / -name "RRDs.pm" /usr/lib/perl5/site_perl/5.8.3/Log/Log4perl/Appender/RRDs.pm /usr/lib/perl5/vendor_perl/5.8.3/i586-linux-thread-multi/RRDs.pm /usr/local/lib/perl5/site_perl/5.8.8/Log/Log4perl/Appender/RRDs.pm /usr/local/rrdtool-1.3.6/lib/perl/5.8.8/i686-linux/RRDs.pm testweb:~ # find / -name "RRDp.pm" /usr/lib/perl5/vendor_perl/5.8.3/RRDp.pm /usr/local/rrdtool-1.3.6/lib/perl/5.8.8/RRDp.pm testweb:~ # perl --version This is perl, v5.8.8 built for i686-linux |
|
| Author: | babydr [ Fri Mar 13, 2009 5:46 am ] |
| Post subject: | Re: mrtg exits silently... |
Hello mpjames, If this is the same as mine was it's mrtg Seg faulting , can you try something like ... /usr/local/mrtg-2/bin/mrtg --debug="base,snpo,snpo2,coca,repo,fork,time,log,eval,prof" $SOMECONF.cfg > ~/mrtg.log 2>&1 and then see if the file contains a Segmentation fault as the last entry , Or not as the case may be . Hth , JimL |
|
| Author: | mpjames [ Fri Mar 13, 2009 6:11 am ] |
| Post subject: | Re: mrtg exits silently... |
Yep, I got a seg fault. I guess I'll try re-compiling rrdtool and see what happens, unless you have another idea? testweb:~ # /usr/local/mrtg-2/bin/mrtg --debug="base,snpo,snpo2,coca,repo,fork,t ime,log,eval,prof" /etc/mrtg/mrtg.cfg > ~/mrtg.log 2>&1 Segmentation fault testweb:~ # cat mrtg.log --time: prog start Thu Mar 12 13:05:19 2009 --base: Creating Lockfiles /etc/mrtg/mrtg.cfg_l,/etc/mrtg/mrtg.cfg_l_30289 --base: Reading Config File: /etc/mrtg/mrtg.cfg --base: Reading Interface Config cache --base: Checking Config File --eval: libadd /usr/local/rrdtool-1.3.6/lib/perl/5.8.8/ --base: Loading RRD support --base: Loading default Locale --base: Starting main Loop --time: loop start Thu Mar 12 13:05:19 2009 --base: Populate Target object by polling SNMP and external Datasources --time: snmp read start Thu Mar 12 13:05:19 2009 --snpo: run snmpget from ifInOctets&ifOutOctets:public@192.168.10.10 --snpo: simple If: .15 --snpo: simple If: .15 --snpo: SNMPGet from public@192.168.10.10: -- ifInOctets.15,ifOutOctets.15 --snpo: SNMPfound -- '2669668442', '416318870' --snpo: run snmpget from ifInOctets&ifOutOctets:public@192.168.10.10 --snpo: simple If: .16 --snpo: simple If: .16 --snpo: SNMPGet from public@192.168.10.10: -- ifInOctets.16,ifOutOctets.16 --snpo: SNMPfound -- '1864182000', '767276627' --snpo: run snmpget from ifInOctets&ifOutOctets:public@192.168.10.10 --snpo: simple If: .17 --snpo: simple If: .17 --snpo: SNMPGet from public@192.168.10.10: -- ifInOctets.17,ifOutOctets.17 --snpo: SNMPfound -- '899829208', '3373659940' --snpo: run snmpget from ifInOctets&ifOutOctets:public@192.168.10.10 --snpo: simple If: .18 --snpo: simple If: .18 --snpo: SNMPGet from public@192.168.10.10: -- ifInOctets.18,ifOutOctets.18 --snpo: SNMPfound -- '4157501576', '3942571599' --snpo: run snmpget from ifInOctets&ifOutOctets:public@192.168.32.249 --snpo: simple If: .2 --snpo: simple If: .2 --snpo: SNMPGet from public@192.168.32.249: -- ifInOctets.2,ifOutOctets.2 --snpo: SNMPfound -- '1960168190', '4033312841' --snpo: run snmpget from ifInOctets&ifOutOctets:public@192.168.32.249 --snpo: simple If: .5 --snpo: simple If: .5 --snpo: SNMPGet from public@192.168.32.249: -- ifInOctets.5,ifOutOctets.5 --snpo: SNMPfound -- '2605882533', '3494833687' --snpo: run snmpget from ifInOctets&ifOutOctets:public@172.26.1.249 --snpo: simple If: .2 --snpo: simple If: .2 --snpo: SNMPGet from public@172.26.1.249: -- ifInOctets.2,ifOutOctets.2 --snpo: SNMPfound -- '4159917135', '2970651970' --snpo: run snmpget from ifInOctets&ifOutOctets:public@172.26.1.249 --snpo: simple If: .5 --snpo: simple If: .5 --snpo: SNMPGet from public@172.26.1.249: -- ifInOctets.5,ifOutOctets.5 --snpo: SNMPfound -- '3710703229', '479901950' --snpo: run snmpget from ifInOctets&ifOutOctets:public@192.168.72.249 --snpo: simple If: .5 --snpo: simple If: .5 --snpo: SNMPGet from public@192.168.72.249: -- ifInOctets.5,ifOutOctets.5 --snpo: SNMPfound -- '1477579591', '1402319289' --snpo: run snmpget from ifInOctets&ifOutOctets:public@192.168.22.249 --snpo: simple If: .5 --snpo: simple If: .5 --snpo: SNMPGet from public@192.168.22.249: -- ifInOctets.5,ifOutOctets.5 --snpo: SNMPfound -- '4117794730', '1677551011' --time: target loop start Thu Mar 12 13:05:19 2009 --base: Act on Router/Target 192.168.10.10_15 --base: Get Current values: in:2669668442, out:416318870, up:undef, name:undef, time:1236877519 --base: Create Graphics --base: start RRDtool section --base: maxi:192000, maxo:192000 --log: RRDs::tune(/opt/mrtg/192.168.10.10_15.rrd -a ds0:192000 -a ds1:192000 -d ds0:COUNTER -d ds1:COUNTER) --prof: RRDs::tune /opt/mrtg/192.168.10.10_15.rrd - 0.001s --log: RRDs::update(/opt/mrtg/192.168.10.10_15.rrd, '1236877519:2669668442:416318870') testweb:~ # |
|
| Author: | babydr [ Fri Mar 13, 2009 6:34 am ] |
| Post subject: | Re: mrtg exits silently... |
Hello mpjames , I have the same problem with rrdtool 1.3.6 & mrtg 2.16.1 . I've contacted the "[rrd-developers]" maillist (Subject: MRTG , Segmentation Fault , After re-installing perl .) , If you are curious . I've been rather remiss in getting back with the questions & request for further info. as I am a bit busy during the day & this problem is on a work system . But I'll get back with them soon now that I have a reminder set up . My cure was to edit 'mrtg' like so . [code] # update the rrd $inlast = 'U' unless defined $inlast and $inlast =~ /\S/ and $inlast ne '##UNDEF##'; $outlast = 'U' unless defined $outlast and $outlast =~ /\S/ and $outlast ne '##UNDEF##'; +# debug('log', "RRDs::update($dotrrd, '$time:$inlast:$outlast')"); my $start = gettimeofday(); my $rrddata; - if ( $RRDs::VERSION >= 1.2 ){ - $rrddata=RRDs::updatev($dotrrd, "$time:$inlast:$outlast"); - } else { +# if ( $RRDs::VERSION >= 1.2 ){ +# +# $rrddata=RRDs::updatev($dotrrd, "$time:$inlast:$outlast"); +# } else { +# RRDs::update($dotrrd, "$time:$inlast:$outlast"); - } +# } +# [/code] |
|
| Author: | mpjames [ Fri Mar 13, 2009 7:05 am ] |
| Post subject: | Re: mrtg exits silently... |
well, that worked! thanks. I'm not into coding all that much - what exactly is broken? |
|
| Author: | stevesh [ Fri Mar 13, 2009 1:38 pm ] |
| Post subject: | Re: mrtg exits silently... |
Looks like a bug in RRDTool 1.3.6, I'm using 1.3.4 here for testing Routers2 and its OK. This has been reported to the developers list and Tobi so lets see what happens. Steve |
|
| Author: | babydr [ Thu Apr 09, 2009 9:46 am ] |
| Post subject: | Re: mrtg exits silently... |
For Everyones Info , rrdtools-1.3.7 has been released and cure the issue with the 'SegFault' . Hth , JimL |
|
| Author: | stevesh [ Mon Apr 20, 2009 3:41 pm ] |
| Post subject: | Re: mrtg exits silently... |
Thanks for the notification, and yay for the speed for Open Source development... |
|
| Author: | mpjames [ Tue Apr 21, 2009 10:15 am ] |
| Post subject: | Re: mrtg exits silently... |
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|