Page 1 of 1

MRTG problem

Posted: Wed Jan 25, 2012 4:27 am
by andaks
In my nagiosxi I have problem with mrtg and rrd tools.
I have installed nagiosxi on CentOS el6.
Im tired to get mail with the text: "ERROR: could not find RRDs.pm. Use LibAdd: in mrtg.cfg to help mrtg find RRDs.pm"

when i use LibAdd in file i Have the following error:
"/usr/bin/perl: symbol lookup error: /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi//auto/RRDs/RRDs.so: undefined symbol: Perl_Tstack_sp_ptr"
I dont understand why there are two // before auto.

and the next error is:
"2012-01-25 15:16:03: ERROR: I guess another mrtg is running. A lockfile (/var/lock/mrtg/mrtg_l) aged
601 seconds is hanging around. If you are sure that no other mrtg is running you can remove the lockfile
"

Code: Select all

#> rpm -qa | grep rrd
rrdtool-devel-1.4.4-1.el5.rf.i386
php-rrdtool-1.4.4-1.el5.rf.i386
rrdtool-1.4.4-1.el5.rf.i386
perl-rrdtool-1.4.4-1.el5.rf.i386
Help...

Re: MRTG problem

Posted: Wed Jan 25, 2012 11:20 am
by scottwilkerson
andaks wrote:In my nagiosxi I have problem with mrtg and rrd tools.
I have installed nagiosxi on CentOS el6.
...

Code: Select all

#> rpm -qa | grep rrd
rrdtool-devel-1.4.4-1.el5.rf.i386
php-rrdtool-1.4.4-1.el5.rf.i386
rrdtool-1.4.4-1.el5.rf.i386
perl-rrdtool-1.4.4-1.el5.rf.i386
Help...
This seems weird as the files you grep'd are for a el5 release not an el6 release...
My on a clean 32bit centOS 6.0 install I have the following

Code: Select all

# cat /etc/redhat-release
CentOS Linux release 6.0 (Final)
# rpm -qa | grep rrd
rrdtool-1.3.8-6.el6.i686
rrdtool-perl-1.3.8-6.el6.i686
Just to be clear, in another thread you had problems with a backup.. Did you try to put a backup on the current machine? How was this backup made? Was the backup from an el5 version? Did you use the Nagios backup script or a different method?

Re: MRTG problem

Posted: Wed Jan 25, 2012 10:09 pm
by andaks
Yes, I tried make backup from el5, I thought that I could face problem...Inspite of it I made backup and indeed faced to problem. Because of it I had to reinstall OS.
But now I have clean installed OS el6 and NagiosXI without any backups. And it works fine, all features are available, but.... I have this mail again and again... Tried to remove el5 rrd packages and couldnt do it. Nagiosxi-deps needs these ones. Of course I can remove them without deps but how it will be work in further?
Please help.

Re: MRTG problem

Posted: Thu Jan 26, 2012 2:39 am
by andaks
Here is the problem with RRD.....
When I want to monitor cisco switch I see the next:

Re: MRTG problem

Posted: Thu Jan 26, 2012 4:21 am
by andaks
Heh guys... I could repair this bug with rrdtools.
I dont know why nagiosxi installation file takes el5 version from repos... Maybe you should check it and add new ones in repos, also difficults in freetds package. It should be 0.64 not 0.91.
Thanks :)

Re: MRTG problem

Posted: Thu Jan 26, 2012 12:08 pm
by scottwilkerson
Glad you were able to repair it.

I have no idea how or why you got the el5 files, my fresh install all pulled el6 versions.