summaryrefslogtreecommitdiffstats
path: root/doc/04-Filter.md
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:45:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:45:13 +0000
commita4a4a84d79e95d34f80346c423b4e84f7af3f03d (patch)
tree91608c01e82676102457ffff2219f321ec474657 /doc/04-Filter.md
parentInitial commit. (diff)
downloadicingaweb2-module-map-a4a4a84d79e95d34f80346c423b4e84f7af3f03d.tar.xz
icingaweb2-module-map-a4a4a84d79e95d34f80346c423b4e84f7af3f03d.zip
Adding upstream version 1.1.0.upstream/1.1.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'doc/04-Filter.md')
-rw-r--r--doc/04-Filter.md47
1 files changed, 47 insertions, 0 deletions
diff --git a/doc/04-Filter.md b/doc/04-Filter.md
new file mode 100644
index 0000000..44501db
--- /dev/null
+++ b/doc/04-Filter.md
@@ -0,0 +1,47 @@
+# Filter Map Object
+
+The map module allows you to filter objects by using the Icinga Web 2 filter syntax.
+
+## Special Filters
+
+### objectType
+
+This filter could be used to show only hosts, services or both object types.
+
+**Example URL:** ``/icingaweb2/map?objectType=host``
+
+**Allows values:**
+
+| Values | Description |
+| ------ | ----------- |
+| ``all`` | Show both (hosts & services) on the map |
+| ``host`` | Show only hosts on the map |
+| ``service`` | Show only services on the map |
+
+### problems
+
+If you only want to see hosts or services with states distinct from ``OK``, use this filter.
+
+**Example URL:** ``/icingaweb2/map?problems``
+
+
+## Filtering host objects
+
+The usual icingaweb2 filter syntax can be used to filter the set of hosts being displayed. Filters have to be appended to the url (eg. `?host=web*`)
+
+**Filter examples:**
+
+| Filter expression | Description |
+| ----------------------------------------------------- | ------------ |
+| hostgroup_name=customer1&_host_environment=production | Show all hosts of hostgroup `customer1` of where the custom variable environment is equal to `production` |
+| _host_customer=(max-corp\|icinga) | Show all hosts where the custom variable `customer` is set to `max-corp` or `icinga` |
+
+### Change default parameters
+
+It's possible to change the parameters ``default_zoom``, ``default_long`` and ``default_lat`` for a map by adding the parameters to the url:
+
+```map?default_zoom=20&default_long=13.370324&default_lat=52.500859```
+
+## Dashboard integration
+
+To add a map widget to a dashboard (or a new one) click on the `Add to dashboard` button as shown above. Any filters which are applied to the current view, are also stored in the dashlet.