[prev in list] [next in list] [prev in thread] [next in thread] 

List:       packetfence-users
Subject:    Re: [PacketFence-users] snmptrapd with CentOS 7
From:       Durand fabrice via PacketFence-users <packetfence-users () lists ! sourceforge ! net>
Date:       2019-01-23 2:16:47
Message-ID: e0219e26-83a1-fda4-7807-4d0a49761b95 () inverse ! ca
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello Helge,

you can maybe try to edit the packetfence-snmptrapd.service file 
(/usr/lib/systemd/system) and add 
Environment=LD_PRELOAD=/usr/lib64/libmysqlclient.so.18

Or recompile net-snmp with the patch.

Regards

Fabrice


Le 19-01-22 à 09 h 25, Wiethoff, Helge via PacketFence-users a écrit :
> Hi everyone :)
>
> i have a small problem with snmptrapd under CentOS 7.
> The snmptrapd service receives the traps from my HPE Aruba 5412 zl2 v3
> (HP::Procurve_5400) but doesn't seem to be able to process them:
>
> 2019-01-22|11:44:08|UDP: [172.30.50.26]:161->[10.0.8.23]:162|172.30.50.26|BEGIN
> TYPE 6 END TYPE BEGIN SUBTYPE .1 END SUBTYPE BEGIN VARIABLEBINDINGS
> .1.3.6.1.4.1.11.2.14.2.10.2.1.2.1.1 = INTEGER:
> 1|.1.3.6.1.4.1.11.2.14.2.10.2.1.3.1.1 = INTEGER:
> 1|.1.3.6.1.4.1.11.2.14.2.10.2.1.4.1.1 = Hex-STRING: B0 99 28 D7 F7 EF
> |.1.3.6.1.4.1.11.2.14.2.10.2.1.6.1.1 = INTEGER:
> 1|.1.3.6.1.4.1.11.2.14.2.10.2.1.7.1.1 = INTEGER: 1 END VARIABLEBINDINGS
>   perl callback function 0x563733bd90b0 returns 1
> 2019-01-22|11:44:08|UDP: [172.30.50.26]:161->[10.0.8.23]:162|172.30.50.26|BEGIN
> TYPE 6 END TYPE BEGIN SUBTYPE .5 END SUBTYPE BEGIN VARIABLEBINDINGS
> .1.3.6.1.4.1.11.2.14.11.1.7.2.1.4.27 = INTEGER:
> 12|.1.3.6.1.4.1.11.2.14.11.1.7.2.1.5.27 = INTEGER:
> 2|.1.3.6.1.4.1.11.2.14.11.1.7.2.1.6.27 = INTEGER:
> 2|.1.3.6.1.4.1.11.2.14.11.1.7.3.0.27 = STRING:
> "http://172.30.50.26/cgi/fDetail?index=27"|.1.3.6.1.4.1.11.2.14.11.1.7.2.1.3.27
> = INTEGER: 1 END VARIABLEBINDINGS
>   perl callback function 0x563733bd90b0 returns 1
>
> On a closer look there seems to be a problem with the perl call in
> "/usr/local/pf/var/conf/snmptrapd.conf".
>
> The problem is that under CentOS the module "NetSNMP::TrapReceiver;" cannot be
> loaded. This can be checked as follows:
> turek:/usr/local/pf/logs# perl -MNetSNMP::TrapReceiver -e1
> Can't load
> '/usr/lib64/perl5/vendor_perl/auto/NetSNMP/TrapReceiver/TrapReceiver.so' for
> module NetSNMP::TrapReceiver: /lib64/libnetsnmptrapd.so.31: undefined symbol:
> my_progname at /usr/lib64/perl5/DynaLoader.pm line 190.
>   at -e line 0.
> Compilation failed in require.
> BEGIN failed--compilation aborted.
>
>
> The suggested workound in https://bugzilla.redhat.com/show_bug.cgi?id=1468084
> works:
> turek:/usr/local/pf/logs# LD_PRELOAD=/usr/lib64/libmysqlclient.so.18 perl
> -MNetSNMP::TrapReceiver -e1
> turek:/usr/local/pf/logs#
>
> But how could i set this variable in front of the call in
> "/usr/local/pf/var/conf/snmptrapd.conf" as it just says:
> perl do "/usr/local/pf/lib/pf/snmptrapd.pm";
>
> anyone any ideas? :)
>
>
> cheers
> Helge
>
>
>
> _______________________________________________
> PacketFence-users mailing list
> PacketFence-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/packetfence-users

[Attachment #5 (text/html)]

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello Helge,</p>
    <p>you can maybe try to edit the packetfence-snmptrapd.service file
      (/usr/lib/systemd/system) and add
      Environment=LD_PRELOAD=/usr/lib64/libmysqlclient.so.18</p>
    <p>Or recompile net-snmp with the patch.</p>
    <p>Regards</p>
    <p>Fabrice</p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">Le 19-01-22 à 09 h 25, Wiethoff, Helge
      via PacketFence-users a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:194290040642FB4D952083D79F7F7D1D41A9FBD0@BOHEMSX2010.rbbk.de">
      <pre class="moz-quote-pre" wrap="">Hi everyone :)

i have a small problem with snmptrapd under CentOS 7.
The snmptrapd service receives the traps from my HPE Aruba 5412 zl2 v3
(HP::Procurve_5400) but doesn't seem to be able to process them:

2019-01-22|11:44:08|UDP: [172.30.50.26]:161-&gt;[10.0.8.23]:162|172.30.50.26|BEGIN
TYPE 6 END TYPE BEGIN SUBTYPE .1 END SUBTYPE BEGIN VARIABLEBINDINGS
.1.3.6.1.4.1.11.2.14.2.10.2.1.2.1.1 = INTEGER:
1|.1.3.6.1.4.1.11.2.14.2.10.2.1.3.1.1 = INTEGER:
1|.1.3.6.1.4.1.11.2.14.2.10.2.1.4.1.1 = Hex-STRING: B0 99 28 D7 F7 EF
> .1.3.6.1.4.1.11.2.14.2.10.2.1.6.1.1 = INTEGER:
1|.1.3.6.1.4.1.11.2.14.2.10.2.1.7.1.1 = INTEGER: 1 END VARIABLEBINDINGS
 perl callback function 0x563733bd90b0 returns 1
2019-01-22|11:44:08|UDP: [172.30.50.26]:161-&gt;[10.0.8.23]:162|172.30.50.26|BEGIN
TYPE 6 END TYPE BEGIN SUBTYPE .5 END SUBTYPE BEGIN VARIABLEBINDINGS
.1.3.6.1.4.1.11.2.14.11.1.7.2.1.4.27 = INTEGER:
12|.1.3.6.1.4.1.11.2.14.11.1.7.2.1.5.27 = INTEGER:
2|.1.3.6.1.4.1.11.2.14.11.1.7.2.1.6.27 = INTEGER:
2|.1.3.6.1.4.1.11.2.14.11.1.7.3.0.27 = STRING:
<a class="moz-txt-link-rfc2396E" \
href="http://172.30.50.26/cgi/fDetail?index=27">"http://172.30.50.26/cgi/fDetail?index=27"</a>|.1.3.6.1.4.1.11.2.14.11.1.7.2.1.3.27
 = INTEGER: 1 END VARIABLEBINDINGS
 perl callback function 0x563733bd90b0 returns 1

On a closer look there seems to be a problem with the perl call in
"/usr/local/pf/var/conf/snmptrapd.conf".

The problem is that under CentOS the module "NetSNMP::TrapReceiver;" cannot be
loaded. This can be checked as follows:
turek:/usr/local/pf/logs# perl -MNetSNMP::TrapReceiver -e1
Can't load
'/usr/lib64/perl5/vendor_perl/auto/NetSNMP/TrapReceiver/TrapReceiver.so' for
module NetSNMP::TrapReceiver: /lib64/libnetsnmptrapd.so.31: undefined symbol:
my_progname at /usr/lib64/perl5/DynaLoader.pm line 190.
 at -e line 0.
Compilation failed in require.
BEGIN failed--compilation aborted.


The suggested workound in <a class="moz-txt-link-freetext" \
href="https://bugzilla.redhat.com/show_bug.cgi?id=1468084">https://bugzilla.redhat.com/show_bug.cgi?id=1468084</a>
 works:
turek:/usr/local/pf/logs# LD_PRELOAD=/usr/lib64/libmysqlclient.so.18 perl
-MNetSNMP::TrapReceiver -e1
turek:/usr/local/pf/logs#

But how could i set this variable in front of the call in
"/usr/local/pf/var/conf/snmptrapd.conf" as it just says:
perl do "/usr/local/pf/lib/pf/snmptrapd.pm";

anyone any ideas? :)


cheers
Helge

</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" \
wrap="">_______________________________________________ PacketFence-users mailing \
list <a class="moz-txt-link-abbreviated" \
href="mailto:PacketFence-users@lists.sourceforge.net">PacketFence-users@lists.sourceforge.net</a>
 <a class="moz-txt-link-freetext" \
href="https://lists.sourceforge.net/lists/listinfo/packetfence-users">https://lists.sourceforge.net/lists/listinfo/packetfence-users</a>
 </pre>
    </blockquote>
  </body>
</html>





_______________________________________________
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic