Need Help With RRD Perl Module Installation/Use

View: New views
3 Messages — Rating Filter:   Alert me  

Need Help With RRD Perl Module Installation/Use

by wiskbroom :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello;

I am very new to this list.  I've just installed RRDtool for the purpose of using it within the mailgraph perl script.

When I try to run the script, I get:

-bash-3.00# ./mailgraph.pl

Can't load '/usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi/auto/RRDs/RRDs.so' for module RRDs: librrd.so.4: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.6/i386-linux-thread-multi/DynaLoader.pm line 230.  at ./mailgraph.pl line 360
Compilation failed in require at ./mailgraph.pl line 360.
BEGIN failed--compilation aborted at ./mailgraph.pl line 360.

-bash-3.00#

I tried to install the perl mods by:


cd /src/rrdtool-1.3.1/bindings/perl-shared
perl Makefile.PL
make
make test < -- This yielded one error - See below


-bash-3.00# make test

PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/base......Can't load '/usr/local/src/rrdtool-1.3.1/bindings/perl-shared/blib/arch/auto/RRDs/RRDs.so' for module RRDs: librrd.so.4: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.6/i386-linux-thread-multi/DynaLoader.pm line 230.
 at t/base.t line 20
Compilation failed in require at t/base.t line 20.
BEGIN failed--compilation aborted at t/base.t line 20.
t/base...... Dubious, test returned 255 (wstat 65280, 0xff00)
 Failed 7/7 subtests

Test Summary Report
-------------------
t/base.t (Wstat: 65280 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 7 tests but ran 1.
Files=1, Tests=1,  0 wallclock secs ( 0.01 usr  0.00 sys +  0.02 cusr  0.01 csys =  0.04 CPU)
Result: FAIL
Failed 1/1 test programs. 1/1 subtests failed.
make: *** [test_dynamic] Error 255

I am running an i386 on FC.

Many thanks in advance!

.vp


--
Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
Help        mailto:mailgraph-request@...?subject=help
Archive     http://lists.ee.ethz.ch/mailgraph
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi


Re: Need Help With RRD Perl Module Installation/Use

by wiskbroom :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Reading a posting in the archives replied to by , I see that I should have added the following line to mailgraph.cgi and mailgraph.pl

I am not seeing any input into my database, so I ran strace and saw:

write(2, "WARNING: line not in syslog form"..., 209) = 209
write(2, "WARNING: line not in syslog form"..., 167) = 167
write(2, "WARNING: line not in syslog form"..., 172) = 172
write(2, "WARNING: line not in syslog form"..., 173) = 173
write(2, "WARNING: line not in syslog form"..., 194) = 194
write(2, "WARNING: line not in syslog form"..., 172) = 172

My logs look like:

Sep  5 16:31:45 mailserver.example.net/mailserver.example.net postfix/qmgr[27362]: [ID 197553 mail.info] 597816CB1E: from=<203176.549962556@...>, size=14602, nrcpt=1 (queue active)

Sep  5 16:31:45 mailserver.mailserver.net/mailserver.example.net postfix/qmgr[27362]: [ID 197553 mail.info] 3081A6CB1C: removed

Sep  5 16:31:45 mailserver.mailserver.net/mailserver.example.net postfix/qmgr[27362]: [ID 197553 mail.info] 1C0426CB1D: removed

Is there an option or way to handle this?  I am using syslog-ng, latest, and am puirposely stuffing my data into files named after the host, into a directory named after the same.

Thanks all,

.vp

> From: wiskbroom@...
> To: mailgraph@...
> Subject: [mailgraph] Need Help With RRD Perl Module Installation/Use
> Date: Fri, 5 Sep 2008 15:09:09 -0400
>
> Hello;
>
> I am very new to this list.  I've just installed RRDtool for the purpose of using it within the mailgraph perl script.
>
> When I try to run the script, I get:
>
> -bash-3.00# ./mailgraph.pl
>
> Can't load '/usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi/auto/RRDs/RRDs.so' for module RRDs: librrd.so.4: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.6/i386-linux-thread-multi/DynaLoader.pm line 230.  at ./mailgraph.pl line 360
> Compilation failed in require at ./mailgraph.pl line 360.
> BEGIN failed--compilation aborted at ./mailgraph.pl line 360.
>
> -bash-3.00#
>
> I tried to install the perl mods by:
>
>
> cd /src/rrdtool-1.3.1/bindings/perl-shared
> perl Makefile.PL
> make
> make test < -- This yielded one error - See below
>
>
> -bash-3.00# make test
>
> PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> t/base......Can't load '/usr/local/src/rrdtool-1.3.1/bindings/perl-shared/blib/arch/auto/RRDs/RRDs.so' for module RRDs: librrd.so.4: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.6/i386-linux-thread-multi/DynaLoader.pm line 230.
>  at t/base.t line 20
> Compilation failed in require at t/base.t line 20.
> BEGIN failed--compilation aborted at t/base.t line 20.
> t/base...... Dubious, test returned 255 (wstat 65280, 0xff00)
>  Failed 7/7 subtests
>
> Test Summary Report
> -------------------
> t/base.t (Wstat: 65280 Tests: 1 Failed: 1)
>   Failed test:  1
>   Non-zero exit status: 255
>   Parse errors: Bad plan.  You planned 7 tests but ran 1.
> Files=1, Tests=1,  0 wallclock secs ( 0.01 usr  0.00 sys +  0.02 cusr  0.01 csys =  0.04 CPU)
> Result: FAIL
> Failed 1/1 test programs. 1/1 subtests failed.
> make: *** [test_dynamic] Error 255
>
> I am running an i386 on FC.
>
> Many thanks in advance!
>
> .vp
>
>
> --
> Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
> Help        mailto:mailgraph-request@...?subject=help
> Archive     http://lists.ee.ethz.ch/mailgraph
> WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi
>

--
Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
Help        mailto:mailgraph-request@...?subject=help
Archive     http://lists.ee.ethz.ch/mailgraph
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi


Re: Need Help With RRD Perl Module Installation/Use

by wiskbroom :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


All;

I realize that this is a low-noise list, which I appreciate, but is anyone else on it :-)

In searching the archives further, I've found a patch made by Mark Loeser on 27 JUNE 2005 (For syslog-ng Gentoo)  affecting the following lines in mailgraph.pl:

http://lists.ee.ethz.ch/mailgraph/msg00122.html

In reviewing his patch, I've noticed that it is slightly different from today's version, perhaps due to further changes in the past three years? but felt it might shed some light on my problem.

Here is the
Here is the snippet of code that contains my problem (I am horrible at PCRE and REGEX, otherwise I'd just post my own patch) :

sub _next_syslog($)
{
    my ($self) = @_;
    while($self->{_repeat}>0) {
        $self->{_repeat}--;
        return $self->{_repeat_data};
    }

    my $file = $self->{file};
    line: while(defined (my $str = $self->_next_line)) {
        # date, time and host
        $str =~ /^
            (\S{3})\s+(\d+)      # date  -- 1, 2
            \s
            (\d+):(\d+):(\d+)    # time  -- 3, 4, 5
            (?:\s)?    # FreeBSD's verbose-mode
            \s
            ([-\w\.\@:]+)        # host  -- 6
            \s+
            (?:\[LOG_[A-Z]+\]\s+)?  # FreeBSD
            (.*)                 # text  -- 7
            $/x or do
        {
            warn "WARNING: line not in syslog format: $str";
            next line;
        };



> From: wiskbroom@...
> To: mailgraph@...
> Subject: [mailgraph] Re: Need Help With RRD Perl Module Installation/Use
> Date: Fri, 5 Sep 2008 16:37:33 -0400
>
> Reading a posting in the archives replied to by , I see that I should have added the following line to mailgraph.cgi and mailgraph.pl
>
> I am not seeing any input into my database, so I ran strace and saw:
>
> write(2, "WARNING: line not in syslog form"..., 209) = 209
> write(2, "WARNING: line not in syslog form"..., 167) = 167
> write(2, "WARNING: line not in syslog form"..., 172) = 172
> write(2, "WARNING: line not in syslog form"..., 173) = 173
> write(2, "WARNING: line not in syslog form"..., 194) = 194
> write(2, "WARNING: line not in syslog form"..., 172) = 172
>
> My logs look like:
>
> Sep 5 16:31:45 mailserver.example.net/mailserver.example.net postfix/qmgr[27362]: [ID 197553 mail.info] 597816CB1E: from=, size=14602, nrcpt=1 (queue active)
>
> Sep 5 16:31:45 mailserver.mailserver.net/mailserver.example.net postfix/qmgr[27362]: [ID 197553 mail.info] 3081A6CB1C: removed
>
> Sep 5 16:31:45 mailserver.mailserver.net/mailserver.example.net postfix/qmgr[27362]: [ID 197553 mail.info] 1C0426CB1D: removed
>
> Is there an option or way to handle this? I am using syslog-ng, latest, and am purposely stuffing my data into files named after the host, into a directory named after the same.
>
> Thanks all,
>
> .vp
>
>> From: wiskbroom@...
>> To: mailgraph@...
>> Subject: [mailgraph] Need Help With RRD Perl Module Installation/Use
>> Date: Fri, 5 Sep 2008 15:09:09 -0400
>>
>> Hello;
>>
>> I am very new to this list. I've just installed RRDtool for the purpose of using it within the mailgraph perl script.
>>
>> When I try to run the script, I get:
>>
>> -bash-3.00# ./mailgraph.pl
>>
>> Can't load '/usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi/auto/RRDs/RRDs.so' for module RRDs: librrd.so.4: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.6/i386-linux-thread-multi/DynaLoader.pm line 230. at ./mailgraph.pl line 360
>> Compilation failed in require at ./mailgraph.pl line 360.
>> BEGIN failed--compilation aborted at ./mailgraph.pl line 360.
>>
>> -bash-3.00#
>>
>> I tried to install the perl mods by:
>>
>>
>> cd /src/rrdtool-1.3.1/bindings/perl-shared
>> perl Makefile.PL
>> make
>> make test < -- This yielded one error - See below
>>
>>
>> -bash-3.00# make test
>>
>> PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
>> t/base......Can't load '/usr/local/src/rrdtool-1.3.1/bindings/perl-shared/blib/arch/auto/RRDs/RRDs.so' for module RRDs: librrd.so.4: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.6/i386-linux-thread-multi/DynaLoader.pm line 230.
>> at t/base.t line 20
>> Compilation failed in require at t/base.t line 20.
>> BEGIN failed--compilation aborted at t/base.t line 20.
>> t/base...... Dubious, test returned 255 (wstat 65280, 0xff00)
>> Failed 7/7 subtests
>>
>> Test Summary Report
>> -------------------
>> t/base.t (Wstat: 65280 Tests: 1 Failed: 1)
>> Failed test: 1
>> Non-zero exit status: 255
>> Parse errors: Bad plan. You planned 7 tests but ran 1.
>> Files=1, Tests=1, 0 wallclock secs ( 0.01 usr 0.00 sys + 0.02 cusr 0.01 csys = 0.04 CPU)
>> Result: FAIL
>> Failed 1/1 test programs. 1/1 subtests failed.
>> make: *** [test_dynamic] Error 255
>>
>> I am running an i386 on FC.
>>
>> Many thanks in advance!
>>
>> .vp
>>

--
Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
Help        mailto:mailgraph-request@...?subject=help
Archive     http://lists.ee.ethz.ch/mailgraph
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

LightInTheBox - Buy quality products at wholesale price!