What's up, home? part 30
Monitor the Northern Lights with Zabbix

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

The Christmas is coming, and -- at least if you believe Hollywood movies -- part of that magic would be staring at the sky and marvel the Northern Lights. Well, in practise you probably won't see them, as even if the Northern Lights would be up there, a thick layer of clouds will probably prevent you seeing them. Or then you live in an area with so many street lights that you don't see the sky properly.

We have tried to watch them several times with my wife, but our attempts all over the years and all the seasons have failed so far. But, for the sake of Christmas spirit, let's imagine you could actually see the lights.

Getting the data

There are probably actual APIs for getting the data -- at first I went to NASA's open data site but then quickly gave up; there's so much data that I would not have an actual idea how to start parsing this beautiful sky flames phenomenon.

Admitting my lameness, I next came up with plan B. The Finnish institute of meteorology has this page for space weather & Northern Lights predictions. Sorry, the page is all in Finnish, so likely it looks like an alien language for you. Anyway there's this snippet which shows the probability of Northern Lights tonight ("T?n? y?n?"), tomorrow ("Huomenna" and the day after tomorrow ("Ylihuomenna").

No alt text provided for this image
Is that some kind of advanced form of encryption? No, that's just Finnish language for you.

But how to parse that? Well, of course, with Zabbix, that is easy with the HTTP Agent item type. It allows you to grab web site contents and then perform all the advanced processing for the data you would expect from Zabbix item pre-processing.

No alt text provided for this image

Then, using dependent items -- one for tonight, one for tomorrow, one of the day after tomorrow -- and item preprocessing we can extract the interesting bits.

No alt text provided for this image

And see, it works!

No alt text provided for this image

I also created a (still boring looking) dashboard, which shows me the current values.

No alt text provided for this image

The problem I now have is that I don't know all the values the page could contain -- when I created this blog post, the chances of seeing Northern Lights were small ("pieni") or smallish ("pienehk?"). Well, I keep checking my dashboard from now on! For now, I could create triggers which would alert me if the values would be something else than "pieni" or "pienehk?", but did not have time for that yet.

I have been working at Forcepoint since 2014 and I bring many Nordic values for the company, even though I'm not lucky with the Northern Lights.

Mikko Tikkala

Senior Network Security Specialist @ Insta

2 年

Interesting. Have you noticed that Ilmatieteenlaitos has a lots of open data available in machine readable form? Actually I'm working on with that data to show weather information on my zabbix (using of ready made openweathermap integration was kind of boring...) ??

回复

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

Janne Pikkarainen的更多文章

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

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

社区洞察

其他会员也浏览了