HariSekhon / Nagios-Plugins

450+ AWS, Hadoop, Cloud, Kafka, Docker, Elasticsearch, RabbitMQ, Redis, HBase, Solr, Cassandra, ZooKeeper, HDFS, Yarn, Hive, Presto, Drill, Impala, Consul, Spark, Jenkins, Travis CI, Git, MySQL, Linux, DNS, Whois, SSL Certs, Yum Security Updates, Kubernetes, Cloudera etc...
https://www.linkedin.com/in/HariSekhon
Other
1.13k stars 505 forks source link

check_linux_interface.pl not working on CentOS 8 #340

Closed iovcho closed 2 years ago

iovcho commented 4 years ago

Hello. I have a problem with check_linux_interface.pl on CentOS Linux release 8.2.2004 (Core) Unable to find and install locate Math/Round.pm from official centos 8 repos and epel-release. There have some way to install this perl module without cpan ? Thanks Here is ht output: [root@server ~]# export DEBUG=1 [root@server ~]# /usr/lib64/nagios/plugins/check_linux_interface.pl CRITICAL: Can't locate Math/Round.pm in @INC (you may need to install the Math::Round module) (@INC contains: /usr/lib64/nagios/plugins/lib /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 /usr/lib64/nagios/plugins/check_linux_interface.pl line 29. [root@server ~]# cat /etc/redhat-release CentOS Linux release 8.2.2004 (Core)

Best wishes.

HariSekhon commented 4 years ago

Looks like there were RPMs for this for older versions of CentOS but I haven't seen one for CentOS 8...

HariSekhon commented 4 years ago

I assume you can't install from CPAN with the regular make build using cpanm?

iovcho commented 4 years ago

Dear @HariSekhon , thank you very much for yours fast reply. Yes I can install it, but I don't like install packages from src, cpan or manual. I have practices to install packages only from official repositories. I know this is CentOS/ EPEL issue, but I try to find way to fix it - for example alternative on this perl library or other way. Thank you very much again.

Best wishes!

HariSekhon commented 4 years ago

You could try something like cpan2rpm to build the RPM for you from the CPAN module and then install that RPM...

https://metacpan.org/pod/distribution/App-CPANtoRPM/bin/cpantorpm.pod

https://perlhacks.com/2015/10/build-rpms-of-cpan-modules/

https://www.perlmonks.org/?node_id=1214386

HariSekhon commented 2 years ago

Closing for lack of activity.