Alignak-monitoring / alignak

Monitoring tool, highly flexible and new standard oriented
https://alignak-monitoring.github.io
GNU Affero General Public License v3.0
86 stars 19 forks source link

Configuration check exception, for realms #1103

Closed mohierf closed 5 years ago

mohierf commented 5 years ago

Got this:

[2019-05-09 14:53:09] INFO: [arbiter-master.alignak.objects.config] Checked
[2019-05-09 14:53:09] CRITICAL: [arbiter-master.alignak.daemon] -----
Exception: 'South'
Back trace of the error:
Traceback (most recent call last):
  File "/home/fmohier/PycharmProjects/alignak/alignak/daemons/arbiterdaemon.py", line 2117, in main
    self.load_monitoring_config_file()
  File "/home/fmohier/PycharmProjects/alignak/alignak/daemons/arbiterdaemon.py", line 760, in load_monitoring_config_file
    self.conf.is_correct()
  File "/home/fmohier/PycharmProjects/alignak/alignak/objects/config.py", line 2499, in is_correct
    realm = self.realms[item.realm]
  File "/home/fmohier/PycharmProjects/alignak/alignak/objects/item.py", line 789, in __getitem__
    return self.items[key] if key else None
KeyError: 'South'

during the configuration check.

mohierf commented 5 years ago

This happen in a business rule when an unknown realm is used in the configuration