pavlovdo / pystormon

Zabbix storage monitoring via CIM/WBEM
15 stars 8 forks source link

after 19-III commit. #16

Closed Wolvverine closed 3 years ago

Wolvverine commented 3 years ago

/usr/lib/zabbix/externalscripts/pystormon/storage_objects_discovery.py

Traceback (most recent call last): File "/usr/lib64/python3.6/configparser.py", line 1138, in _unify_values sectiondict = self._sections[section] KeyError: 'NetworkDevice'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/zabbix/externalscripts/pystormon/storage_objects_discovery.py", line 17, in from functions import slack_post, zabbix_send File "/usr/lib/zabbix/externalscripts/pystormon/functions.py", line 20, in 'slack_hook', 'zabbix_server') File "/usr/lib/zabbix/externalscripts/pystormon/configread.py", line 18, in configread params[parameter] = config.get(section, parameter) File "/usr/lib64/python3.6/configparser.py", line 781, in get d = self._unify_values(section, vars) File "/usr/lib64/python3.6/configparser.py", line 1141, in _unify_values raise NoSectionError(section) configparser.NoSectionError: No section: 'NetworkDevice'

Wolvverine commented 3 years ago

the pystormon.conf is in {project}\conf.d directory not {project}\, but script search in {project}\

pavlovdo commented 3 years ago

Thank you for this issue, fixed.