Skip to content

Icingadb-web for MAP module#133

Open
gbin2265 wants to merge 2 commits into
nbuchwitz:masterfrom
gbin2265:map-view-icingadb-web
Open

Icingadb-web for MAP module#133
gbin2265 wants to merge 2 commits into
nbuchwitz:masterfrom
gbin2265:map-view-icingadb-web

Conversation

@gbin2265

@gbin2265 gbin2265 commented Sep 6, 2025

Copy link
Copy Markdown

The problem I’m still facing is that it takes a very long time to get results because of the large number of service objects that need to be processed. At the moment, I have 8k hosts and 280k services.

I also wanted to give the MAP module a bit more of the look and feel of icingadb-web.

I created a new objectType called ‘icingadb’

?objectType=icingadbweb

This will return one SQL result per host, similar to how it currently works for hostgroups in icingadb-web.
So instead of 280k + 8k SQL rows, I only get 8k of rows.

Now, when you click on a marker, you get this as a result:

Schermafbeelding 2025-08-31 113157 Schermafbeelding 2025-08-31 113312

Just like it is now in icingadb-web, when you click on one of the icons you get the corresponding list.

I also adjusted the symbol according to the status.

Schermafbeelding 2025-08-31 125006

No problem → host symbol, color green
Host in error → host symbol, color red
Host in downtime or acknowledged → host symbol with plug or check, color light red
Host without problems but with a service problem → service symbol, color based on the worst status (red, orange, purple, blue)

To also provide the option of setting the map in icingadb mode, I added a setting in the config.ini:

objectType = "icingadbweb" (opties all, host , service or icingadbweb)

This way, you can set it as default to work with the new look.

Would this be something to consider integrating into the MAP module?

As I always say, I’m not a PHP developer.
If someone can improve or optimize the code, that is always welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant