# Questions about heartbeat/offline status

**URL:** <https://hub.mender.io/t/questions-about-heartbeat-offline-status/501>\
**Category:** General Discussions\
**Created:** [April 25, 2019, 2:59am UTC](https://hub.mender.io/t/questions-about-heartbeat-offline-status/501 "2019-04-25T02:59:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![neil](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/neil/32/204_2.png) [@neil](https://hub.mender.io/u/neil)\
**Post date:** [April 25, 2019, 2:59am UTC](https://hub.mender.io/t/questions-about-heartbeat-offline-status/501/1 "2019-04-25T02:59:56Z")

</div>

Hello, I’m seeing an alert that 2 devices are offline and that 3 were added in the last 24 hours. In reality, 2 devices were added last week, one was added today, and only 1 should be offline. Is the bug that the last updated timestamp on one of the other 2 devices is wrong or is the offline alert inaccurate, or am I misunderstanding something? My concern is I might legitimately have a second offline device and not realize it, but I don’t think that’s the case.

Additionally, how often is the device expected to heartbeat in production mode? It looks like one device is updating hourly while another can go many hours (8+) between a heartbeat, if the last updated timestamp is to be believed.

Thanks!

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [April 25, 2019, 2:29pm UTC](https://hub.mender.io/t/questions-about-heartbeat-offline-status/501/2 "2019-04-25T14:29:34Z")

</div>

Hi Neil,  
As far as I know the timestamp should be updated based on the UpdatePollIntervalSeconds value. Unless you use different settings for different devices, I would expect them all to check in at the same frequency. Of course that can fail depending on the networking environment of the devices so that would be the first thing I would check; ie do all the devices have always-on connections or is it possible that they simply cannot reach the server for some reason.

@michaelatmender may have more input on what the displayed values mean and if there are issues.

Drew

---

<div class="post-metadata">

**Author:** ![neil](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/neil/32/204_2.png) [@neil](https://hub.mender.io/u/neil)\
**Post date:** [April 26, 2019, 8:17am UTC](https://hub.mender.io/t/questions-about-heartbeat-offline-status/501/3 "2019-04-26T08:17:04Z")

</div>

Thanks for the response, Drew. I’m using mender-convert, which I assume uses the default 1800 seconds for UpdatePollIntervalSeconds.

Looking at my dashboard, it now says all “3 devices may be offline” (still says 2 were added in last 24 hours). The last updated timestamps on all 3 are 4/25 19:42, 4/19 17:00 (expected offline), and 4/25 20:11 (all times in CT), meaning within the last 24 hours but still over 6 hours old. If I expand device details, the last updated time stamp changes to a much earlier timestamp and then changes back when details are collapsed. It looks like this is a caching bug in UI that is probably propagating the warnings, but it makes it hard to trust any of the information on the dashboard.

---

<div class="post-metadata">

**Author:** ![michaelatmender](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/michaelatmender/32/128_2.png) [@michaelatmender](https://hub.mender.io/u/michaelatmender)\
**Post date:** [April 26, 2019, 8:44am UTC](https://hub.mender.io/t/questions-about-heartbeat-offline-status/501/4 "2019-04-26T08:44:30Z")

</div>

Hi @neil, there’s a known issue with timestamps not displaying reliably when clicking to expand - I think a fix should be in [https://github.com/mendersoftware/gui/pull/457](https://github.com/mendersoftware/gui/pull/457), so it shouldn’t be long before it’s merged.  
We’ll take a look at the discrepancies between ‘added in 24 hrs’ vs ‘may be offline’. Which version are you using - are you using Hosted Mender?

---

<div class="post-metadata">

**Author:** ![neil](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/neil/32/204_2.png) [@neil](https://hub.mender.io/u/neil)\
**Post date:** [April 26, 2019, 9:02am UTC](https://hub.mender.io/t/questions-about-heartbeat-offline-status/501/5 "2019-04-26T09:02:14Z")

</div>

Yup, I’m using hosted mender. Thanks for taking a look at this!
