mirror of
https://github.com/nicolargo/glances.git
synced 2025-12-23 22:18:31 -05:00
Glances won't start when using snmp discovery with parameter -c #3354
This commit is contained in:
@@ -13,8 +13,9 @@ from glances.logger import logger
|
||||
# Import mandatory PySNMP lib
|
||||
try:
|
||||
from pysnmp.entity.rfc3413.oneliner import cmdgen
|
||||
except ImportError:
|
||||
logger.critical("PySNMP library not found. To install it: pip install pysnmp")
|
||||
except ImportError as e:
|
||||
logger.debug(f"Can not import pysnmp-lextudio lib: {e}")
|
||||
logger.critical("PySNMP library not found. To install it: pip install 'pysnmp-lextudio<6.2.0'")
|
||||
sys.exit(2)
|
||||
|
||||
|
||||
|
||||
@@ -102,7 +102,7 @@ ip = [
|
||||
raid = ["pymdstat"]
|
||||
sensors = ["batinfo; platform_system == 'Linux'"]
|
||||
smart = ["pySMART.smartx"]
|
||||
snmp = ["pysnmp-lextudio<6.3.1"]
|
||||
snmp = ["pysnmp-lextudio<6.2.0"]
|
||||
sparklines = ["sparklines"]
|
||||
web = [
|
||||
"fastapi>=0.82.0",
|
||||
|
||||
Reference in New Issue
Block a user