Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Development
  3. heartbeat? monitor?

heartbeat? monitor?

Scheduled Pinned Locked Moved Development
raspberrygatewaymonitoring
3 Posts 2 Posters 1.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • CrankyCoderC Offline
    CrankyCoderC Offline
    CrankyCoder
    wrote on last edited by
    #1

    So last night I get home my billiards league and my raspberry pi gateway is acting up. I logged in so the network and all was fine. I checked the mqtt server and messages were flowing there too. I even checked and the mysgw process was running. But it was not relaying messages. I rebooted it and all was fine.

    So I am curious about trying to monitor it so i can do that reset automatically and not have half my lights unavailable.

    I was wondering about maybe monitoring for heartbeats?
    maybe something like monitoring gw/+/255/3/0/21 and if i don't see anything for some time reset it. But I don't know how often heartbeat messages are sent.

    Anyone else monitoring gateways? I haven't had this problem much, but was not happy to get the call from the wife saying she had to unplug stuff to turn off the lights lol

    Home Automation Tinkerer
    www.CrankyCoder.net

    Controller: HomeAssistant in Kubernetes
    Gateway: MQTTClientGateway
    MySensors: 2.3

    YveauxY 1 Reply Last reply
    0
    • CrankyCoderC CrankyCoder

      So last night I get home my billiards league and my raspberry pi gateway is acting up. I logged in so the network and all was fine. I checked the mqtt server and messages were flowing there too. I even checked and the mysgw process was running. But it was not relaying messages. I rebooted it and all was fine.

      So I am curious about trying to monitor it so i can do that reset automatically and not have half my lights unavailable.

      I was wondering about maybe monitoring for heartbeats?
      maybe something like monitoring gw/+/255/3/0/21 and if i don't see anything for some time reset it. But I don't know how often heartbeat messages are sent.

      Anyone else monitoring gateways? I haven't had this problem much, but was not happy to get the call from the wife saying she had to unplug stuff to turn off the lights lol

      YveauxY Offline
      YveauxY Offline
      Yveaux
      Mod
      wrote on last edited by
      #2

      @crankycoder presumably gateway traffic will come to a complete stop in case of troubles.
      In this case you can just monitor any mqtt messages coming from the gateway (something like gw/#). If no messages come in for x time, reboot the gw.

      http://yveaux.blogspot.nl

      1 Reply Last reply
      0
      • CrankyCoderC Offline
        CrankyCoderC Offline
        CrankyCoder
        wrote on last edited by
        #3

        any idea how often heartbeat messages would be sent?

        Home Automation Tinkerer
        www.CrankyCoder.net

        Controller: HomeAssistant in Kubernetes
        Gateway: MQTTClientGateway
        MySensors: 2.3

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        55

        Online

        11.7k

        Users

        11.2k

        Topics

        113.1k

        Posts


        Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • MySensors
        • OpenHardware.io
        • Categories
        • Recent
        • Tags
        • Popular