# How to make a disconnection log

**URL:** <https://community.icinga.com/t/how-to-make-a-disconnection-log/7851>\
**Category:** Icinga 2\
**Tags:** icingaweb2\
**Created:** [July 24, 2021, 12:48am UTC](https://community.icinga.com/t/how-to-make-a-disconnection-log/7851 "2021-07-24T00:48:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maurox521](https://community.icinga.com/user_avatar/community.icinga.com/maurox521/32/4313_2.png) [@maurox521](https://community.icinga.com/u/maurox521)\
**Post date:** [July 24, 2021, 12:48am UTC](https://community.icinga.com/t/how-to-make-a-disconnection-log/7851/1 "2021-07-24T00:48:18Z")

</div>

Hello, I am new to using icinga 2 and I am monitoring a laptop with ubuntu 20.04 and raspbian from another laptop running icinga web2 which has debian 10 installed. I would like to make a log system that allows me to save all the disconnection dates of each device monitored 24 hours, any idea how to do it?

---

<div class="post-metadata">

**Author:** ![andyb2000](https://community.icinga.com/user_avatar/community.icinga.com/andyb2000/32/2697_2.png) [@andyb2000](https://community.icinga.com/u/andyb2000)\
**Post date:** [July 26, 2021, 10:30am UTC](https://community.icinga.com/t/how-to-make-a-disconnection-log/7851/2 "2021-07-26T10:30:17Z")

</div>

Hi,  
Are you using icingaweb2? If so then adding module reporting should do what you want.  
You can then create a report with those hosts SLA (choosing Host SLA in the report type) I think will do what you want.  
The other option is under History for the individual hosts you should have the notification/UP/DOWN events in there.

Another option is you could create a custom notification, that custom notification could just append write to a logfile of your choice to keep a log of the UP and DOWN events for the host notification.

Hope those give you some ideas.
