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
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users