# Can we monitor putty session failed while connecting to a server where we have oneagent installed.

**URL:** <https://community.dynatrace.com/t/can-we-monitor-putty-session-failed-while-connecting-to-a-server-where-we-have-oneagent-installed/18769>\
**Category:** Open Q&A\
**Tags:** oneagent, hosts-classic, network-monitoring\
**Created:** [December 10, 2018, 2:25pm UTC](https://community.dynatrace.com/t/can-we-monitor-putty-session-failed-while-connecting-to-a-server-where-we-have-oneagent-installed/18769 "2018-12-10T14:25:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![suresh230591](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/suresh230591/32/280_2.png) [@suresh230591](https://community.dynatrace.com/u/suresh230591)\
**Post date:** [December 10, 2018, 2:25pm UTC](https://community.dynatrace.com/t/can-we-monitor-putty-session-failed-while-connecting-to-a-server-where-we-have-oneagent-installed/18769/1 "2018-12-10T14:25:45Z")

</div>

Hi,

Is it possible to monitor putty session that are failed while connecting to a host where we have oneagent installed. Can we alert whenever a session is failed.

Putty is giving error : server unexpectedly closed network connection.

Thanks

Suresh

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [December 10, 2018, 2:53pm UTC](https://community.dynatrace.com/t/can-we-monitor-putty-session-failed-while-connecting-to-a-server-where-we-have-oneagent-installed/18769/2 "2018-12-10T14:53:17Z")

</div>

You could to it via [log file monitoring](https://www.dynatrace.com/support/help/monitor/log-analytics/) by defining a [log event](https://www.dynatrace.com/support/help/monitor/log-analytics/log-viewer/).

The if connection is unexpectedly closed there whould be a log message on the server side you can use for the pattern.

---

<div class="post-metadata">

**Author:** ![suresh230591](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/suresh230591/32/280_2.png) [@suresh230591](https://community.dynatrace.com/u/suresh230591)\
**Post date:** [December 11, 2018, 7:41am UTC](https://community.dynatrace.com/t/can-we-monitor-putty-session-failed-while-connecting-to-a-server-where-we-have-oneagent-installed/18769/3 "2018-12-11T07:41:26Z")

</div>

Thanks Patrick , I did not thought about log monitoring. This is a good idea it seems. Let me try this and I will let you know.
