Snmp-scan error

Hi,

I’m having trouble using snmp-scan to work, I can add host via gui without problem, but not via snmp-scan / autodiscovery. I have checked documentation a few times but so far everything seems correct.

It looks like snmp-scan is not using credentials from config.php. Debug on switch show that instead of authpriv i’m trying to use noauth

000366: Mar 27 16:59:02: v3 packet security model: v3 security level: noauth
000367: Mar 27 16:59:02: username:

extract from config.php
https://pastebin.com/Es5WzUAw

scnmp-scan error
https://pastebin.com/yjjU9KQt

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

Component Version
LibreNMS c4672f8b37db261db287bba5985001b2ffc30f43
DB Schema 182
PHP 7.0.16
MySQL 5.5.52-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2

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

[OK] Database connection successful

Best regards,
Dawid

DEBUG: v3 : Unsupported SNMPv3 AuthLevel (wtf have you done ?) :slight_smile:

It’s authPriv not AuthPriv - we can probably just lowercase those checks but for now, change it in your config.php

Hi,

thank you, it helped.

I have copied configuration from official documentation http://docs.librenms.org/Extensions/Auto-Discovery/, so it seems that there is a typo.

// v3
$config[‘snmp’][‘v3’][0][‘authlevel’] = ‘AuthPriv’;
$config[‘snmp’][‘v3’][0][‘authname’] = ‘my_username’;
$config[‘snmp’][‘v3’][0][‘authpass’] = ‘my_password’;
$config[‘snmp’][‘v3’][0][‘authalgo’] = ‘MD5’;
$config[‘snmp’][‘v3’][0][‘cryptopass’] = ‘my_crypto’;
$config[‘snmp’][‘v3’][0][‘cryptoalgo’] = ‘AES’;

Best regards,
Dawid