PHP extension: snmp

Hi Guys,

Please see below, there is a new error generated after the daily update.
Please advise how to fix it.

[root@sv3-librenms-srv01 librenms]# ./validate.php

Component Version
LibreNMS 1.33-203-g6cede35
DB Schema 221
PHP 7.0.22
MySQL 5.6.30
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2

====================================

[OK] Database connection successful
[OK] Database schema correct
[FAIL] Missing PHP extension: snmp
[FIX] Please install snmp

Install that, yum install php-snmp, apt-get install php-snmp, totally depends on your distro and repo you use.

I’m getting these errors below, by trying to install php-snmp

Error: Package: php70w-cli-7.0.25-1.w7.x86_64 (webtatic)
Requires: libcrypto.so.10(OPENSSL_1.0.2)(64bit)
Error: php70w-common conflicts with php-common-5.4.16-36.1.el7_2.1.x86_64
Error: Package: php70w-7.0.25-1.w7.x86_64 (webtatic)
Requires: libcrypto.so.10(OPENSSL_1.0.2)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

My examples were just that rather than the specific commands. You need to install the specific package for php snmp on your repo you use. php70w-snmp at a guess.

Looks like CentOS so would be

yum install php71w-snmp

Tried, it says I have to have libcrypto.so.10(OPENSSL_1.0.2)(64bit)
But when doing yum install libcrypto.so.10, it doesn’t take it

Error: Package: php70w-cli-7.0.25-1.w7.x86_64 (webtatic)
Requires: libcrypto.so.10(OPENSSL_1.0.2)(64bit)
Error: Package: php70w-7.0.25-1.w7.x86_64 (webtatic)
Requires: libcrypto.so.10(OPENSSL_1.0.2)(64bit)
Error: php71w-common conflicts with php70w-common-7.0.25-1.w7.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest