Icinga / icingaweb2-module-businessprocess

Create top-level views of your applications in a graphical editor. Rules express dependencies between existing hosts and services and let you alert on application level. Business processes are displayed in a tree or list overview.
https://icinga.com/docs/businessprocess/latest
GNU General Public License v2.0
108 stars 44 forks source link

One missconfigured BPM fails all other BPMs too #370

Closed Mikesch-mp closed 1 year ago

Mikesch-mp commented 1 year ago

Describe the bug

If there is one missconfigured (aka manualy edited BPM), the module will only thow an error that the BPM cant be read and does not work for all others anymore.

To Reproduce

  1. Create some BPMs and then edit one with false configuration in it
  2. Open Icingaweb and navigate to BPM module

Expected behavior

Error message which BPM can't be loaded and display the working ones

Screenshots

Your Environment

Include as many relevant details about the environment you experienced the problem in

slalomsk8er commented 1 year ago

Is this true if the BPs are in the same ini file or does you see the problem over multiple files?

Mikesch-mp commented 1 year ago

In my case it was multiple files. One got edited and was faulty.

sukhwinder33445 commented 1 year ago

Hi @Mikesch-mp,

what kind of misconfiguration do you mean? What is the exact error message? Can you please explain the steps to reproduce with a concrete example?

Thanks

Mikesch-mp commented 1 year ago

Use whatever breaks the configuration like double ';' or double '&' for example.

sukhwinder33445 commented 1 year ago

Do you mean an error message like in the screenshot below?

I just added a ; to mysecond config file, but the other configs still work, in my case the main still works properly.

Screenshot 2023-06-09 at 09 10 27
Mikesch-mp commented 1 year ago

It works if you have them added to Menu, which is limited. If you have hundreds of BPMs, all the others are not accessible if you dont know the name and edit your URL. If there is a faulty BPM config file, it should be ignnored or marked as faulty like when a Node is missing in a BPM, but not block access to all the others BPMs

sukhwinder33445 commented 1 year ago

Hi @Mikesch-mp,

can you please test the linked PR ?

Thanks

Mikesch-mp commented 1 year ago

I will try it over the weekend. today iam too busy with Windows :(