SNMPv3 - How to disable php-snmp

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
skywalker89
Posts: 6
Joined: Wed May 12, 2021 5:01 pm

SNMPv3 - How to disable php-snmp

Post by skywalker89 »

I just upgraded to Cacti 1.2.22 and Spine 1.2.22

I have NET-SNMP version 5.8
PHP version: 7.4.3
Ubuntu 20.04.05 LTS

I am trying to use snmpv3 with Palo Alto FW. I was able to connect using SHA and AES 128. I have read that I should be disabling php-snmp but don't really understand how to do that. I looked in the php.ini file and don't see a reference to that. Does I just need to add a line in there to disable or something else? Does it automatically switch to Net-snmp once that is disabled?
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: SNMPv3 - How to disable php-snmp

Post by cigamit »

I don't use Ubuntu, but a simple google search tells me

Code: Select all

sudo apt remove php-snmp
sudo apt autoclean && sudo apt autoremove
skywalker89
Posts: 6
Joined: Wed May 12, 2021 5:01 pm

Re: SNMPv3 - How to disable php-snmp

Post by skywalker89 »

When I run

sudo apt remove php7.4-snmp

It wants me to remove cacti and php7.4-snmp plus all of the automatically installed packages that come along with it...apache2 php7.4 etc

I don't want cacti to get uninstalled or the dependencies. I am not that well versed in linux but know a little bit to get through things.
Attachments
2022-10-10_12h41_33.png
2022-10-10_12h41_33.png (44.97 KiB) Viewed 953 times
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: SNMPv3 - How to disable php-snmp

Post by macan »

If there is any dependency, you can try rename php snmp module, try
locate snmp | grep php
It returns something like:
/usr/lib/php/20210902/snmp.so

renema it:
mv /usr/lib/php/20210902/snmp.so /usr/lib/php/20210902/snmp.so.old

and restart webserver
Let the Cacti grow!
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: SNMPv3 - How to disable php-snmp

Post by cigamit »

Or you can find the config file (ini) that is including it, and comment it out. Again, I don't know Ubuntu, but it would be under /etc/ somewhere.
This might tell you
dpkg -L php-snmp
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: SNMPv3 - How to disable php-snmp

Post by TheWitness »

You can always remove the rpm package with the nodep's option. Oh wait ;)
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest