# Module - Import monitoring controller into own module

**URL:** <https://community.icinga.com/t/module-import-monitoring-controller-into-own-module/5396>\
**Category:** Icinga Web\
**Created:** [August 31, 2020, 9:06am UTC](https://community.icinga.com/t/module-import-monitoring-controller-into-own-module/5396 "2020-08-31T09:06:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarcoKl](https://community.icinga.com/letter_avatar_proxy/v4/letter/m/7ba0ec/32.png) [@MarcoKl](https://community.icinga.com/u/MarcoKl)\
**Post date:** [August 31, 2020, 9:06am UTC](https://community.icinga.com/t/module-import-monitoring-controller-into-own-module/5396/1 "2020-08-31T09:06:43Z")

</div>

Hello,  
i have always made my own monitoring-status frontend with a customized view. My first one with direct access to the db and my second one is based in the icinga2 API. But now i want do write a module for icingaweb2. I see that some modules use a own ido backend and some uses the monitoring controller backend. i did not find a stating point to include the monitoring controller into my own module. Can somebody provide me a example to load a prefiltered list of services so that i can display this as a table.

Regards Marco

---

<div class="post-metadata">

**Author:** ![Al2Klimov](https://community.icinga.com/user_avatar/community.icinga.com/al2klimov/32/959_2.png) [@Al2Klimov](https://community.icinga.com/u/Al2Klimov)\
**Post date:** [October 16, 2020, 2:36pm UTC](https://community.icinga.com/t/module-import-monitoring-controller-into-own-module/5396/2 "2020-10-16T14:36:10Z")

</div>

Hello @MarcoKl!

Here’s how I did it:

> <https://github.com/Icinga/icingaweb2-module-graphite/blob/e37aaf06377e5edb18e17111d7cbc6fe7b2267a6/application/controllers/GraphController.php#L15>

> <https://github.com/Icinga/icingaweb2-module-graphite/blob/e37aaf06377e5edb18e17111d7cbc6fe7b2267a6/library/Graphite/Web/Controller/MonitoringAwareController.php#L8>

Best,  
AK

---

<div class="post-metadata">

**Author:** ![MarcoKl](https://community.icinga.com/letter_avatar_proxy/v4/letter/m/7ba0ec/32.png) [@MarcoKl](https://community.icinga.com/u/MarcoKl)\
**Post date:** [October 23, 2020, 10:50am UTC](https://community.icinga.com/t/module-import-monitoring-controller-into-own-module/5396/3 "2020-10-23T10:50:05Z")

</div>

Hello AK,  
thank you very much. I will try it the next days.

Regards Marco

---

<div class="post-metadata">

**Author:** ![MarcoKl](https://community.icinga.com/letter_avatar_proxy/v4/letter/m/7ba0ec/32.png) [@MarcoKl](https://community.icinga.com/u/MarcoKl)\
**Post date:** [November 6, 2020, 1:34pm UTC](https://community.icinga.com/t/module-import-monitoring-controller-into-own-module/5396/4 "2020-11-06T13:34:04Z")

</div>

Hello AK,  
i am sure that you tips are working. But i am not understanding the Zend model in total yet. I am working with rails and the schema is like zend with controller, views, helpers etc… I know how i can access in the views the values from the controllers. Now i try to make some querys with the monitoring controller to create my own view of hosts and services. I think a am not far away understanding zend

The goal is to translate my rails application for displaying custom filtered views and central controled monitors, because I want to share it with the cummunity
