Skip to content

Instantly share code, notes, and snippets.

@selivan
Created November 27, 2019 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save selivan/42c629cc331226f07bd4fb88e29b7caf to your computer and use it in GitHub Desktop.
Save selivan/42c629cc331226f07bd4fb88e29b7caf to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/elastalert/util.py", line 26, in get_module
module_path, module_class = module_name.rsplit('.', 1)
ValueError: not enough values to unpack (expected 2, got 1)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/elastalert/loaders.py", line 461, in load_alerts
alert_field = [create_alert(a, b) for a, b in alert_field]
File "/usr/local/lib/python3.6/site-packages/elastalert/loaders.py", line 461, in <listcomp>
alert_field = [create_alert(a, b) for a, b in alert_field]
File "/usr/local/lib/python3.6/site-packages/elastalert/loaders.py", line 445, in create_alert
alert_class = self.alerts_mapping.get(alert) or get_module(alert)
File "/usr/local/lib/python3.6/site-packages/elastalert/util.py", line 30, in get_module
raise EAException("Could not import module %s: %s" % (module_name, e)).with_traceback(sys.exc_info()[2])
File "/usr/local/lib/python3.6/site-packages/elastalert/util.py", line 26, in get_module
module_path, module_class = module_name.rsplit('.', 1)
elastalert.util.EAException: Could not import module zabbix: not enough values to unpack (expected 2, got 1)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/elastalert/loaders.py", line 114, in load
rule = self.load_configuration(rule_file, conf, args)
File "/usr/local/lib/python3.6/site-packages/elastalert/loaders.py", line 180, in load_configuration
self.load_modules(rule, args)
File "/usr/local/lib/python3.6/site-packages/elastalert/loaders.py", line 428, in load_modules
rule['alert'] = self.load_alerts(rule, alert_field=rule['alert'])
File "/usr/local/lib/python3.6/site-packages/elastalert/loaders.py", line 464, in load_alerts
raise EAException('Error initiating alert %s: %s' % (rule['alert'], e)).with_traceback(sys.exc_info()[2])
File "/usr/local/lib/python3.6/site-packages/elastalert/loaders.py", line 461, in load_alerts
alert_field = [create_alert(a, b) for a, b in alert_field]
File "/usr/local/lib/python3.6/site-packages/elastalert/loaders.py", line 461, in <listcomp>
alert_field = [create_alert(a, b) for a, b in alert_field]
File "/usr/local/lib/python3.6/site-packages/elastalert/loaders.py", line 445, in create_alert
alert_class = self.alerts_mapping.get(alert) or get_module(alert)
File "/usr/local/lib/python3.6/site-packages/elastalert/util.py", line 30, in get_module
raise EAException("Could not import module %s: %s" % (module_name, e)).with_traceback(sys.exc_info()[2])
File "/usr/local/lib/python3.6/site-packages/elastalert/util.py", line 26, in get_module
module_path, module_class = module_name.rsplit('.', 1)
elastalert.util.EAException: Error initiating alert ['zabbix']: Could not import module zabbix: not enough values to unpack (expected 2, got 1)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/elastalert", line 10, in <module>
sys.exit(main())
File "/usr/local/lib/python3.6/site-packages/elastalert/elastalert.py", line 2034, in main
client = ElastAlerter(args)
File "/usr/local/lib/python3.6/site-packages/elastalert/elastalert.py", line 138, in __init__
self.rules = self.rules_loader.load(self.conf, self.args)
File "/usr/local/lib/python3.6/site-packages/elastalert/loaders.py", line 125, in load
raise EAException('Error loading file %s: %s' % (rule_file, e))
elastalert.util.EAException: Error loading file /opt/elastalert/rules/test_alert_command.yml: Error initiating alert ['zabbix']: Could not import module zabbix: not enough values to unpack (expected 2, got 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment