scline / docker-cacti

Cacti version 1+ under Docker
113 stars 56 forks source link

perl-Net-SNMP package miss to run some scripts #95

Open jbolliet opened 3 years ago

jbolliet commented 3 years ago

We used this container to migrate an older version of Cacti on a new one. We are using some scripts provided in perl language These script failed with missing librabry on the container: Can't locate Net/SNMP.pm in @INC (you may need to install the Net::SNMP module) (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /cacti/scripts/f5_bigip_cpun.pl line 5. BEGIN failed--compilation aborted at /cacti/scripts/f5_bigip_cpun.pl line 5. FATAL: Spine Encountered a Segmentation Fault

The package perl-Net-SNMP is missing in the container. I added it manually, but it should be easier to have it directly in the default container

yum -y install perl-Net-SNMP.noarch

Thanks a lot Regards.