You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2024-02-08 21:33:53

Manny_both-Hanz
Member
Registered: 2023-11-27
Posts: 4

PrinterCounter plugin error: SNMP Error: SNMP extension is not loaded

I have this plugin installed and active but when I  click on the Printer in question and then click on the "Update Printer Data" I get this error message.  I am not sure what I have to do to get it loaded.

Offline

#2 2024-02-08 23:31:45

cconard96
Moderator
Registered: 2018-07-31
Posts: 3,267
Website

Re: PrinterCounter plugin error: SNMP Error: SNMP extension is not loaded

You need to install the "php-snmp" PHP extension. It installs like other PHP extensions for your OS/platform.


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#3 2024-02-12 17:10:02

Manny_both-Hanz
Member
Registered: 2023-11-27
Posts: 4

Re: PrinterCounter plugin error: SNMP Error: SNMP extension is not loaded

I should clarify that I am running Ubuntu 22.04 LTS and php-snmp is installed via apt-get but I still get the same error message.  I have tried  "systemctl restart apache2"  but that didn't do anything.

Offline

#4 2024-02-12 18:56:45

cconard96
Moderator
Registered: 2018-07-31
Posts: 3,267
Website

Re: PrinterCounter plugin error: SNMP Error: SNMP extension is not loaded

Does it show up in the list in Setup > General > System tab under the "Server" section?

Simply installing the extension for the right PHP version should be enough.
Do you have multiple versions of GLPI installed?
Check your system PHP version with:
php --version
and compare it to what Apache is using (Check system info in GLPI under Setup > General > System tab).

You can switch the system default version with the update-alternatives command, or install the snmp extension for the specific version used by Apache (Ex: php8.2-snmp).


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#5 2024-02-14 18:25:13

Manny_both-Hanz
Member
Registered: 2023-11-27
Posts: 4

Re: PrinterCounter plugin error: SNMP Error: SNMP extension is not loaded

I think I got it working now. I have php 8.1 so I install the Php_SNMP for 8.1 and I am not getting the error message anymore. Now I have to find some documentation on how to configure it correctly.

Offline

Board footer

Powered by FluxBB