Xymon Mailing List Archive search

mrtg xymon integration problem

4 messages in this thread

list Pavel Traian · Fri, 17 Feb 2012 07:30:07 -0800 (PST) ·
Hi,
I have installed Xymon server on a CentOS 6 x64.
I wanted to integrate MRTG into it and i got an error.
After i add the below lines: 

# For Xymon integration
WorkDir: /var/lib/xymon/rrd
LogFormat: rrdtool

I get this error:

ERROR: could not find RRDs.pm. Use LibAdd: in mrtg.cfg to help mrtg find RRDs.pm

The problem is that i don't know where to find RRDs.pm. 
Regards.
list Steven Carr · Fri, 17 Feb 2012 15:50:33 +0000 ·
Add the EPEL repo and install rrdtool-perl package.

[root at sentinel ~]# yum provides */RRDs.pm

rrdtool-perl-1.2.27-3.el5.x86_64 : Perl RRDtool bindings
Repo        : epel
Matched from:
Filename    :
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/RRDs.pm

Steve
quoted from Pavel Traian


On 17 February 2012 15:30, Pavel Traian <user-3b0d733c2299@xymon.invalid> wrote:
Hi,
I have installed Xymon server on a CentOS 6 x64.
I wanted to integrate MRTG into it and i got an error.
After i add the below lines:

# For Xymon integration
WorkDir: /var/lib/xymon/rrd
LogFormat: rrdtool

I get this error:

ERROR: could not find RRDs.pm. Use LibAdd: in mrtg.cfg to help mrtg find
RRDs.pm

The problem is that i don't know where to find RRDs.pm.
Regards.

list Pavel Traian · Mon, 20 Feb 2012 02:12:21 -0800 (PST) ·
Hi,
Thank you for the quick answer.
I have installed them and now i have some other problem...

When i run mrtg /etc/mrtg/mrtg.cfg i get the following error:


[root at micro2403 otpsw003]# mrtg /etc/mrtg/mrtg.cfg
WARN: found several copies of RRDs.pm in your path: /usr/lib64/perl5/, /usr/lib64/perl5 I will be using /usr/lib64/perl5/. This could be a problem if this is an old copy and you think I would be using a newer one!
2012-02-20 01:45:28: ERROR: Target[mrtg.otpsw003.port3][_IN_] ' $target->[0]{$mode} ' did not eval into defined
 data
2012-02-20 01:45:28: ERROR: Target[mrtg.otpsw003.port3][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data
[root at micro2403 otpsw003]#


I am trying to monitor the port gig0/3 of a Cisco Catalyst 2960G with the following mrtg.cfg config:

Target[mrtg.otpsw003.port3]: 3:public at otpsw003
Title[mrtg.otpsw003.port3]: Traffic
MaxBytes[mrtg.otpsw003.port3]: 1250000
Directory[mrtg.otpsw003.port3]: otpsw003 

I think i didn't choose the right interface name, but i don't know how to find out the name of it.


Regards,
Traian.
quoted from Steven Carr


--- On Fri, 2/17/12, Steven Carr <user-923b20c0d620@xymon.invalid> wrote:

From: Steven Carr <user-923b20c0d620@xymon.invalid>
Subject: Re: [Xymon] mrtg xymon integration problem
To: "Pavel Traian" <user-3b0d733c2299@xymon.invalid>
Cc: xymon at xymon.com
Date: Friday, February 17, 2012, 5:50 PM

Add the EPEL repo and install rrdtool-perl
 package.

[root at sentinel ~]# yum provides */RRDs.pm

rrdtool-perl-1.2.27-3.el5.x86_64 : Perl RRDtool bindings
Repo        : epel
Matched from:
Filename    : /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/RRDs.pm


Steve


On 17 February 2012 15:30, Pavel Traian <user-3b0d733c2299@xymon.invalid> wrote:

Hi,

I have installed Xymon server on a CentOS 6 x64.

I wanted to integrate MRTG into it and i got an error.

After i add the below lines:


# For Xymon integration

WorkDir: /var/lib/xymon/rrd

LogFormat: rrdtool


I get this error:


ERROR: could not find RRDs.pm. Use LibAdd: in mrtg.cfg to help mrtg find RRDs.pm


The problem is that i don't know where to find RRDs.pm.

Regards.
list Pavel Traian · Wed, 22 Feb 2012 03:29:33 -0800 (PST) ·
Hi,
I have installed a xymon client on a CentOS 6 x64 server.
Everything looks good except the fact that even the Xymon server receives data and its' page is OK(the client is there diplayed with its' short name) i have the same client displayed in Ghost Clients(this time with its' FQDN).
I have checked on the client and i have too many files in xymon/client/tmp folder.
It looks something like this:

-rw-rw-r-- 1 xymon xymon    41 Feb 22 13:17 logfetch.otpproxy1.cfg
-rw-rw-r-- 1 xymon xymon    41 Feb 22 13:17 logfetch.otpproxy1.status
-rw-r--r-- 1 root  root  35787 Feb 22 13:17 msg.otpproxy1.temenosgroup.com.txt
-rw-rw-r-- 1 xymon xymon 37183 Feb 22 13:17 msg.otpproxy1.txt
-rw-rw-r-- 1 xymon xymon   246 Feb 22 13:17 xymon_vmstat.otpproxy1.2637
-rw-rw-r-- 1 xymon xymon   246 Feb 22 13:14 xymon_vmstat.otpproxy1.temenosgroup.com.2597
-rw-r--r-- 1 root  root    246 Feb 22 13:17 xymon_vmstat.otpproxy1.temenosgroup.com.2681

It seems like the client is started al least twice....
How can I set it right?
Regards,
Traian.