Snmp-scan.py error

I am trying to setup auto discovery and added the necessary items to config.php according to this. I get the following error when tring to run snmp-scan.py:

librenms@librenms:~$ ./snmp-scan.py
Could not import ipaddress module.  Please install python-ipaddress or use python3 to run this script
Debian/Ubuntu: apt install python-ipaddress
RHEL/CentOS: yum install python-ipaddress

Should I install ‘python-ipaddress’? I have the discovery by IP line commented out by the way.

FYI:

librenms@librenms:~$ ./daily.sh
Updating to latest codebase                        OK
Updating Composer packages                         OK
Updating SQL-Schema                                OK
Updating submodules                                OK
Cleaning up DB                                     OK
Fetching notifications                             OK
Caching PeeringDB data                             OK

librenms@librenms:~$ ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS  | 1.46-91-gde7ce7c
DB Schema | 275
PHP       | 7.0.32-0ubuntu0.16.04.1
MySQL     | 10.0.36-MariaDB-0ubuntu0.16.04.1
RRDTool   | 1.5.5
SNMP      | NET-SNMP 5.7.3
====================================

[OK]    Composer Version: 1.8.0
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database schema correct

Auto-Discovery != snmp-scan.py.

Auto-Discovery rely in arp/xdp to discover new devices. It is run every 6 hours by default.

snmp-scan.py is for manually scanning networks.

Ok, got that. Thanks

As for running a manual scan, should I install ‘python-ipaddress’?

From the output.

I’m asking if I should I actually do that? Or is something else wrong/going on?

If you want to use it, yes install.

1 Like

FYI, installed it and it now works as expected…