What's up, home? part 29
Powered by Crytech engine

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 security company. By night, I monitor my home with Zabbix & Grafana and do some weird experiments with them. Welcome to my blog about the project.

Time really flies. Our little baby girl at home is already about three and a half months old, and that shows in so many ways. If during her first month or two she cried quite a lot and quite easily due gassy stomach and whatnot, she nowadays mostly is a chill mini-human just observing the world.

Which then raised the question for me -- how often she cries? Could I monitor that? Oh yes. And oh no. We'll get to no part later, but let's start with the good bits.

Hey Siri, help me

As I pretty much always have my iPhone with or near me, and wear my Apple Watch nearly 24x7, I thought I would give their sound recognition abilities a try.

To start, I opened the Settings on my iPhone and went to Accessibility --> Sound recognition --> Baby crying and enabled that.

Next, I opened Shortcuts and created a new Personal automation.

No alt text provided for this image
Here's the advanced CRYENGINE in action.

So, every time my iDevice thinks that our baby is crying, it appends to a text file stored on my iCloud account.

Zabbix time!

How to get that data to Zabbix?

I have a MacBook Pro and a Zabbix agent running on that, so the next natural step was to make it monitor that particular text file. There would be so many ways to detect if this file has been changed; as I'm appending to the text file, I just made Zabbix keep an eye on the file size.

No alt text provided for this image

How does that look like on my graphs? Not so surprisingly, the value changes.

No alt text provided for this image

I did also setup a simple trigger that screams if the file size has changed since last check.

No alt text provided for this image

The result? Well, here's some alert history.

No alt text provided for this image

Sleep Learn Adapt reporting

I also added our baby as a Service to my Zabbix, just because it was too fun to skip as the terminology involves child services, parent services and such.

No alt text provided for this image

And here's a totally inaccurate and unmeaningful SLA report about her.

No alt text provided for this image

The wobbly bits

Just like our baby is still clumsy and has lot to learn, it seems that Siri is like that too when it comes to detecting emotions. Yes, Siri can detect if our baby is crying, but it also easily gets worried whenever our baby makes loud joyful sounds. It reminds me about the golden times when T-800 practised smiling. It just doesn't know or understand the human feelings. At least, not yet.

Then the other odd part is that about one day after I enabled the cry detection on my iPhone, it's not doing it anymore. Did the detection process crash? Probably. I have not restarted my iPhone yet, because I just could not bother do that yet. But, in theory we can detect a crying baby, or many more usual sounds like doorbell, dog barking just by using Siri and Zabbix.

I have been working at Forcepoint since 2014 and I think my human skills still beat the ones Siri has.

Faustine Chisasa

Information Technology Consultant | Network Engineering | Observability Enthusiast

2 年

Baby bullying by nannies is common where I am, this can be pretty useful. Thanks for sharing.

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

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 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…

  • What's up, home? part 20

    What's up, home? part 20

    Can you monitor your upcoming electricity bill with Zabbix? Of course you can! By day, I am a monitoring technical lead…

社区洞察

其他会员也浏览了