Monitoring of two nodered instances possible?

Hi,

Two days ago one of my Nodered instances crashed, unfortunately I noticed it way too late.
Is it possible that Nodered instances located on two different computers monitor each other?
Any ideas?

BR Quito

Easy if you have an mqtt broker. Send a "heartbeat" message from each every minute, each one subscribes to the other's topic and if nothing arrives for 3 minutes, send a notification.

2 Likes

great idea ….:blush:

my sloution:

[{"id":"31de5363.b59fec","type":"mqtt in","z":"5e091eab.a7ad68","name":"/HomeAssistant/","topic":"/HomeAssistant/","qos":"2","datatype":"auto","broker":"c9e4be83.d1f2a8","x":160,"y":180,"wires":[["5e9394e9.36979c"]]},{"id":"9099fd30.d26d6","type":"mqtt out","z":"5e091eab.a7ad68","name":"/Redmatic/","topic":"/Redmatic/","qos":"2","retain":"","broker":"c9e4be83.d1f2a8","x":330,"y":280,"wires":[]},{"id":"c5282e14.17fe","type":"inject","z":"5e091eab.a7ad68","name":"","props":[{"p":"payload"}],"repeat":"60","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"Alive","payloadType":"str","x":150,"y":280,"wires":[["9099fd30.d26d6"]]},{"id":"c3d884e4.5c4b4","type":"pushover","z":"5e091eab.a7ad68","name":"HomeAssistant ausgefallen","device":"","title":"HomeAssistant ausgefallen","priority":"1","sound":"siren","url":"","url_title":"","html":false,"x":700,"y":180,"wires":[]},{"id":"5e9394e9.36979c","type":"timeout","z":"5e091eab.a7ad68","name":"Warning --NodeRed crashed!","outtopic":"","outsafe":"Online Again","outwarning":"Warning --NodeRed since 2 Minutes inactiv.","outunsafe":"Warning --NodeRed crashed!","warning":"120","timer":"300","repeat":false,"again":false,"x":410,"y":180,"wires":[["c3d884e4.5c4b4"]]},{"id":"c9e4be83.d1f2a8","type":"mqtt-broker","name":"MQTT-PI4","broker":"192.168.2.122","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","willTopic":"","willQos":"0","willRetain":"false","willPayload":""}]

Fixed Version.
Thx jbudd

works great :slight_smile:

The very last double quote character in your solution looks like it's been mangled by a word processor
Untitled 7

I just use a Trigger rather than the Timeout node but Timeout looks perfect for the job.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.