[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing • View topic - mrtg exits silently...

Cheshire Cat Computing

Software support and information
It is currently Mon Dec 22, 2025 6:55 am

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: mrtg exits silently...
PostPosted: Thu Mar 12, 2009 9:14 am 
Offline
User

Joined: Thu Mar 12, 2009 8:55 am
Posts: 4
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


Top
 Profile Send private message  
 
PostPosted: Fri Mar 13, 2009 5:46 am 
Offline
Gold user

Joined: Fri Mar 07, 2008 8:51 am
Posts: 125
Location: Fairbanks , AK
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


Top
 Profile Send private message  
 
PostPosted: Fri Mar 13, 2009 6:11 am 
Offline
User

Joined: Thu Mar 12, 2009 8:55 am
Posts: 4
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:~ #


Top
 Profile Send private message  
 
PostPosted: Fri Mar 13, 2009 6:34 am 
Offline
Gold user

Joined: Fri Mar 07, 2008 8:51 am
Posts: 125
Location: Fairbanks , AK
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]


Top
 Profile Send private message  
 
PostPosted: Fri Mar 13, 2009 7:05 am 
Offline
User

Joined: Thu Mar 12, 2009 8:55 am
Posts: 4
well, that worked! thanks. I'm not into coding all that much - what exactly is broken?


Top
 Profile Send private message  
 
PostPosted: Fri Mar 13, 2009 1:38 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
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

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
PostPosted: Thu Apr 09, 2009 9:46 am 
Offline
Gold user

Joined: Fri Mar 07, 2008 8:51 am
Posts: 125
Location: Fairbanks , AK
For Everyones Info , rrdtools-1.3.7 has been released and cure the issue with the 'SegFault' .
Hth , JimL


Top
 Profile Send private message  
 
PostPosted: Mon Apr 20, 2009 3:41 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
Thanks for the notification, and yay for the speed for Open Source development...

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
PostPosted: Tue Apr 21, 2009 10:15 am 
Offline
User

Joined: Thu Mar 12, 2009 8:55 am
Posts: 4


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group