<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: host availability state not changing in Alerting</title>
    <link>https://community.dynatrace.com/t5/Alerting/Alert-on-Host-availability-host-state-isn-t-changing/m-p/282243#M5780</link>
    <description>&lt;P&gt;Hello - Yes I see this happening, the problem gets created and stays open for a few minutes and closes on its own, the alerting is set to 3 ,5, 5 which is the default values. the problem closes even though the agent is still down and value is 0 for availability.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jul 2025 14:57:30 GMT</pubDate>
    <dc:creator>Troy</dc:creator>
    <dc:date>2025-07-24T14:57:30Z</dc:date>
    <item>
      <title>Alert on Host availability - host state isn't changing</title>
      <link>https://community.dynatrace.com/t5/Alerting/Alert-on-Host-availability-host-state-isn-t-changing/m-p/282102#M5773</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Im trying to create an alert based on a hosts availability.state not being "up".&lt;BR /&gt;the issue is when i turn off oneagent - it doesnt always set the state to "unmonitored_agent_stopped" it will just leave gaps as shown. so my alert does not always work.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="troymaxwell_0-1753224340524.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29145iE18DC6F003CC18A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="troymaxwell_0-1753224340524.png" alt="troymaxwell_0-1753224340524.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We want to be able to alert on agent being turned off / host being offline and customize the alert which is why we are not using the OOTB option.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;DQL I tried using David Anomaly Detection:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;timeseries availability = sum(dt.host.availability),
    nonempty:true,
    filter:{availability.state != "up" },
    by:{dt.entity.host, availability.state}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2025 13:42:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Alert-on-Host-availability-host-state-isn-t-changing/m-p/282102#M5773</guid>
      <dc:creator>Troy</dc:creator>
      <dc:date>2025-12-18T13:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: host availability state not changing</title>
      <link>https://community.dynatrace.com/t5/Alerting/Alert-on-Host-availability-host-state-isn-t-changing/m-p/282106#M5774</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/92499"&gt;@Troy&lt;/a&gt;&amp;nbsp;If your intention is to trigger an alert whenever the availability state != up, you can use the timeseries command with the nonempty parameter to calculate host availability. This parameter ensures that you get a result even when no data match the filter, such as when no hosts are up&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-query-language/commands/metric-commands?_gl=1*187rd8r*_ga*MTIzMDk2MzAwOS4xNzQzNjU5MDk4*_ga_1MEMV02JXV*czE3NTMyMjU3MzUkbzQzMyRnMSR0MTc1MzIyOTk0OSRqNjAkbDAkaDA.#expand--nonempty-parameter--1" target="_blank" rel="noopener noreferrer"&gt;https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-query-language/commands/metr...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is an example you can refer&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/shortlink/metrics-on-grail-examples#example-10-monitoring-host-availability" target="_blank" rel="noopener noreferrer"&gt;https://docs.dynatrace.com/docs/shortlink/metrics-on-grail-examples#example-10-monitoring-host-availability&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries Availability = sum(dt.host.availability, default:0),
    nonempty:true,
    by:{dt.entity.host},
    filter:{availability.state == "up"}
    //| filter dt.entity.host == "HOST-XXXX"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to use a threshold to alert if less than 1 and that should do the trick&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="p_devulapalli_0-1753230522519.png" style="width: 592px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29147iBF84A2278B130499/image-dimensions/592x151?v=v2" width="592" height="151" role="button" title="p_devulapalli_0-1753230522519.png" alt="p_devulapalli_0-1753230522519.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="p_devulapalli_1-1753230666915.png" style="width: 535px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29148iB40BB26F48E065A3/image-dimensions/535x326?v=v2" width="535" height="326" role="button" title="p_devulapalli_1-1753230666915.png" alt="p_devulapalli_1-1753230666915.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 00:33:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Alert-on-Host-availability-host-state-isn-t-changing/m-p/282106#M5774</guid>
      <dc:creator>p_devulapalli</dc:creator>
      <dc:date>2025-07-23T00:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: host availability state not changing</title>
      <link>https://community.dynatrace.com/t5/Alerting/Alert-on-Host-availability-host-state-isn-t-changing/m-p/282143#M5775</link>
      <description>&lt;P&gt;Ah! I was close - thank you this seems to be working.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 12:30:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Alert-on-Host-availability-host-state-isn-t-changing/m-p/282143#M5775</guid>
      <dc:creator>Troy</dc:creator>
      <dc:date>2025-07-23T12:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: host availability state not changing</title>
      <link>https://community.dynatrace.com/t5/Alerting/Alert-on-Host-availability-host-state-isn-t-changing/m-p/282161#M5776</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/21657"&gt;@p_devulapalli&lt;/a&gt;&amp;nbsp;So this works to a degree - im seeing the alert come in but it will close the problem after some time even though the value is still 0 / agent is still down. any idea how i can fix this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 15:11:41 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Alert-on-Host-availability-host-state-isn-t-changing/m-p/282161#M5776</guid>
      <dc:creator>Troy</dc:creator>
      <dc:date>2025-07-23T15:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: host availability state not changing</title>
      <link>https://community.dynatrace.com/t5/Alerting/Alert-on-Host-availability-host-state-isn-t-changing/m-p/282212#M5778</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/92499"&gt;@Troy&lt;/a&gt;&amp;nbsp;That should not be happening , the problem should not be closing unless there is a change in threshold . Do you still see this happening ?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 10:09:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Alert-on-Host-availability-host-state-isn-t-changing/m-p/282212#M5778</guid>
      <dc:creator>p_devulapalli</dc:creator>
      <dc:date>2025-07-24T10:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: host availability state not changing</title>
      <link>https://community.dynatrace.com/t5/Alerting/Alert-on-Host-availability-host-state-isn-t-changing/m-p/282243#M5780</link>
      <description>&lt;P&gt;Hello - Yes I see this happening, the problem gets created and stays open for a few minutes and closes on its own, the alerting is set to 3 ,5, 5 which is the default values. the problem closes even though the agent is still down and value is 0 for availability.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 14:57:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Alert-on-Host-availability-host-state-isn-t-changing/m-p/282243#M5780</guid>
      <dc:creator>Troy</dc:creator>
      <dc:date>2025-07-24T14:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: host availability state not changing</title>
      <link>https://community.dynatrace.com/t5/Alerting/Alert-on-Host-availability-host-state-isn-t-changing/m-p/282286#M5782</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/92499"&gt;@Troy&lt;/a&gt;&amp;nbsp;That's bit odd , did you add any dimensions that change over time to the anomaly detector event name or description?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 04:41:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Alert-on-Host-availability-host-state-isn-t-changing/m-p/282286#M5782</guid>
      <dc:creator>p_devulapalli</dc:creator>
      <dc:date>2025-07-25T04:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: host availability state not changing</title>
      <link>https://community.dynatrace.com/t5/Alerting/Alert-on-Host-availability-host-state-isn-t-changing/m-p/282313#M5783</link>
      <description>&lt;P&gt;Nope - My detector is essentially the same as yours except it is filtering for on Os instead of a single machine. may open a case with Dynatrace if this behaviour is not expected.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 15:37:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Alert-on-Host-availability-host-state-isn-t-changing/m-p/282313#M5783</guid>
      <dc:creator>Troy</dc:creator>
      <dc:date>2025-07-25T15:37:00Z</dc:date>
    </item>
  </channel>
</rss>

