# How can I poll the status node for status errors?

**URL:** <https://discourse.nodered.org/t/how-can-i-poll-the-status-node-for-status-errors/5458>\
**Category:** General\
**Created:** [4 December 2018 00:25 UTC](https://discourse.nodered.org/t/how-can-i-poll-the-status-node-for-status-errors/5458 "2018-12-04T00:25:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hazymat](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hazymat/32/108159_2.png) [@hazymat](https://discourse.nodered.org/u/hazymat)\
**Post date:** [4 December 2018 00:25 UTC](https://discourse.nodered.org/t/how-can-i-poll-the-status-node-for-status-errors/5458/1 "2018-12-04T00:25:32Z")

</div>

I have a **Status** node which reports **changes** in the status of an RFX sensor:

 ![nr-01](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/8/85e627dd2eb6e94e1834862704624fc172e6f6bc.png)

Then, my **Function** node filters for disconnections:

```
if (msg.status.text == "disconnected") return msg;

```

which means I can periodically try to restart a system service using the exec node, until the Status node outputs "connected".

Problem is, the Status node only reports on status **changes**. That means if I Deploy in the meantime, it doesn't attempt to reconnect.

Is there some way of polling the Status node, or another crafty solution?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [4 December 2018 16:55 UTC](https://discourse.nodered.org/t/how-can-i-poll-the-status-node-for-status-errors/5458/2 "2018-12-04T16:55:14Z")

</div>

You could add a repeater node after the status which repeats the latest status at a regular interval. This node will do that, node-red-contrib-msg-resend.
