Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  2. ZBX-17192

SNMP traps in RHEL8/CentOS 8 - missing & removed "net-snmp-perl" package


    • Sprint 70 (Nov 2020), Sprint 71 (Dec 2020), Sprint 72 (Jan 2021), Sprint 73 (Feb 2021), Sprint 74 (Mar 2021), Sprint 75 (Apr 2021), Sprint 76 (May 2021), Sprint 77 (Jun 2021), Sprint 78 (Jul 2021)

      Additionally to a ZBX-17081 (libssh2), we have one more trouble with RHEL8.

      Package "net-snmp-perl" has been removed as of RH8/CentOS8: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/considerations_in_adopting_rhel_8/index#removed-packages_changes-to-packages

      The package is needed to collection of SNMP traps. Mentioned for example in this tutorial: https://blog.zabbix.com/snmp-traps-in-zabbix/


      There is some unofficial replacement: https://centos.pkgs.org/8/okey-x86_64/net-snmp-perl-5.8-7.el8.2.x86_64.rpm.html 

      I tried to manually download and install the RPM file, but it failed because of dependencies, which I could not resolve quickly and easily.


      FUI: If configure /etc/snmp/snmptrapd.conf by adding zabbix perl trap handler and restart the daemon, it will start successfully, but in syslog you will get these messages:

      Dec  8 13:59:37 centos8 systemd[1]: Starting Simple Network Management Protocol (SNMP) Trap Daemon.... 
      Dec  8 13:59:37 centos8 snmptrapd[3585]: Can't open perl script "/usr/share/snmp/snmp_perl_trapd.pl": No such file or directory 
      Dec  8 13:59:37 centos8 snmptrapd[3585]: embedded perl support failed to initialize (perl_parse(/usr/share/snmp/snmp_perl_trapd.pl) returned 2) 
      Dec  8 13:59:37 centos8 snmptrapd[3585]: NET-SNMP version 5.8 
      Dec  8 13:59:37 centos8 systemd[1]: Started Simple Network Management Protocol (SNMP) Trap Daemon.. 

      Don't be confused by /usr/share/snmp/snmp_perl_trapd.pl path. This is attempt of initialization of perl engine, as we added own handler.

      Solution should be found and documented.

            yurii Jurijs Klopovskis
            zalex_ua Oleksii Zagorskyi
            26 Vote for this issue
            29 Start watching this issue