What's up, home? part 15
Hey watchdog, I am monitoring you, too

What's up, home? part 15

Can you monitor your dogs' sleeping habits with Zabbix? Of course you can! By day, I am a monitoring technical lead in a global cyber security company. By night, I monitor my home with Zabbix & Grafana and do some weird experiments with them. Welcome to my weekly blog about this project.

(Posting super early this week, as later this week Finland will enjoy the mid-summer festival so I will be away from keyboard)

No alt text provided for this image


Meet Lily, our soon-eleven years old French bulldog. As she's getting old, a year or two ago we got her a very nice bed from a Finnish company PAIKKA. The bed is more advanced than the one we humans in this house have; it has a memory foam mattress and some kind of thermal system to keep our furry buddy warm.

Anyway, even though Lily has three or four additional beds all around our house so she can be with us, no matter in what room we are spending our time, Lily really loves this bed and seemingly spends very long periods of time in it without coming out of it meanwhile.

Or, that's our impression. But what's the actual usage pattern? Zabbix to the rescue!

Oh hi RuuviTag, would you like to do some temperature monitoring?

How to monitor Lily's bed usage? A surveillance camera and something like ZoneMinder would be weird; a motion sensor would not give any meaningful results ... but wait, there's RuuviTag, a nice little environmental monitoring gadget from another Finnish company Ruuvi. It's just a Bluetooth Low Energy device... a Bluetooth Beacon... I don't know how to officially call it, but it has a reprogrammable firmware, and by default RuuviTag acts as an environmental monitoring device, measuring temperature, humidity and movement.

No alt text provided for this image

Here's how Ruuvi's mobile app looks like. For most people, that would be enough. For me, I skip that altogether after I have tried out with it that a RuuviTag works.

No alt text provided for this image

"Installing" RuuviTag to Lily's bed

So, this part is not too hard. Here, let's put the RuuviTag under Lily's mattress.

No alt text provided for this image

Now that it's there, it's time to harvest data from RuuviTag and insert it to Zabbix.

Bridging RuuviTag and Zabbix

For easy reading of data from RuuviTag, there's Bluewalker with built-in support for parsing Ruuvi's data. It can format the output in various formats, I used just the traditional text format, made Zabbix read the log file and made it parse the log file using item preprocessing.

Here's the log:

No alt text provided for this image

Here's Zabbix master item for the data:

No alt text provided for this image

.. and then I just have bunch of dependent items parsing individual items from the master item.

No alt text provided for this image

... with some preprocessing applied.

No alt text provided for this image

Does it work?

Yes, it does. It seems that quite soon after Lily enters her bed the mattress temperature will raise couple of degrees, so from that data we can guess that Lily is in her bed. And, as we can see, she really stays in her bed several hours without leaving it, especially during the nighttime.

No alt text provided for this image

As you can see from the graph, I already did setup some alert thresholds to guess when Lily is in her bed and when she is not. The threshold is very careful on purpose not to get false alerts.

Anyway, I now also see data like this on my ZBX Viewer app and of course on my Zabbix/Grafana dashboard.

No alt text provided for this image
No alt text provided for this image

Of course, all this is just me being silly with our dog. But imagine the benefits of deploying this kind of "smart mattress" for elderly or whoever we might need to monitor for their safety. "Hey, grandma Martha usually wakes up early, she's still in bed even though it's 11am, is she OK?", or vice versa, "Hey, grandma Martha did not ever go to her bed last night, what's up?".

I recently just heard that a close relative of one of our friends had found their mother from her home after she had been there for one week in bad shape -- luckily just ended up in hospital in the end, but imagine what kind of terror that week must have been. A 30 EUR gadget like RuuviTag or a smart watch might have helped to detect the situation and alert people to help much, much earlier.

I have been working at Forcepoint since 2014 and even our dog must now think I am a monitoring addict.

Faustine Chisasa

Information Technology Consultant | Network Engineering | Observability Enthusiast

2 年

Silly Lily use case ?? Insightful article and I love your comments on even more sensible use cases, thanks for sharing Janne Pikkarainen

Susanna Saarvo

Sote alan moniosaaja ja neuropsykiatrinen valmentaja -opiskelija

2 年

Oh our dear Lily!

要查看或添加评论,请登录

Janne Pikkarainen的更多文章

  • What's up, home? part 30

    What's up, home? part 30

    Can you monitor Northern Lights with Zabbix? Of course you can! By day, I am a monitoring tech lead in a global cyber…

    3 条评论
  • What's up, home? part 29

    What's up, home? part 29

    Can you detect a crying baby with Zabbix? Of course you can! By day, I am a monitoring tech lead in a global cyber…

    2 条评论
  • What's up, home? part 28

    What's up, home? part 28

    Can you monitor FlightGear flight simulator with Zabbix? Of course you can! By day, I am a monitoring tech lead in a…

    9 条评论
  • What's up, home? part 27

    What's up, home? part 27

    Can you have a Zabbix HA cluster at home? Of course you can! By day, I am a monitoring tech lead in a global cyber…

    4 条评论
  • What's up, home? part 26

    What's up, home? part 26

    Can you create fairy tales with Zabbix? Of course you can! By day, I am a monitoring technical lead in a global cyber…

  • What's up, home? part 25

    What's up, home? part 25

    Can you monitor your backups with Zabbix? Of course you can -- and you should! By day, I am a monitoring tech lead in a…

    1 条评论
  • What's up, home? part 24

    What's up, home? part 24

    Can you monitor Finland's total real-time power consumption with Zabbix? Of course you can! By day, I am a monitoring…

    4 条评论
  • What's up, home? part 23

    What's up, home? part 23

    Can you monitor a banana with Zabbix? Of course you can! By day, I am a monitoring tech lead in a global cyber security…

    4 条评论
  • What's up, home? part 22

    What's up, home? part 22

    Can you use Zabbix as a countdown timer? Of course you can! By day, I am a monitoring technical lead in a global cyber…

    9 条评论
  • What's up, home? part 21

    What's up, home? part 21

    Can you make sure your video streams are up with Zabbix? Of course you can! By day, I am a monitoring technical lead in…

社区洞察

其他会员也浏览了