What's up, home? part 28
Get a 30,000 feet view of your systems with Zabbix

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

FlightGear is an awesome free, open-source flight simulator. I am not a pilot, not even a good virtual pilot, in fact, probably the virtual cabin crew would be chanting "BRACE! BRACE! BRACE! HEAD DOWN! STAY DOWN!" to my virtual passengers. Anyway, learning to fly would be awesome.

But what good would be virtual flying without any monitoring? For most people, they wouldn't care about monitoring. For me, that's about everything I care with this experiment.

FlightGear Properties

FlightGear can expose all kinds of flight related data over many different ways; XML logging and via its built-in HTTP server, for example. This time I used its HTTP server, and cherry-picked only few values (aircraft latitude, longitude, altitude and speed), as the completely property list is LONG, and I do not understand the most of it.

Anyway, you get the FlightGear HTTP server up and running by launching it like

fgfs --httpd=5480

... where 5480 is the port number where HTTP server will be listening on.

You will then have a property browser available on https://localhost:5480/json/ which is from where I found the values I wanted to harvest for my little experiment to see if this thing would fly.

No alt text provided for this image

Adding items to Zabbix

To get these values monitored, I added two new master items to Zabbix: one for velocities and one for position. Then, dependent items are using those master items.

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

My latitude/longitude items also do populate the Zabbix inventory latitude/longitude fields for my aircraft.

No alt text provided for this image

Does it fly?

Yes it does. I can now have data about my virtual flight.

No alt text provided for this image

And thanks to inventory fields, I can show the location of my virtual aircraft on Zabbix geomap.

No alt text provided for this image

If you are a flight simulator enthusiast, feel free to use this technique and possibly gather all the values from FlightGear property browser by using low-level discovery. For my little test, I did not bother.

I have been working at Forcepoint since 2014 and have learnt that proper monitoring makes sure your projects do takeoff without too much pain.

Janne Pikkarainen

SRE Operations Lead Site Reliability Engineer, GIAC GCIH, Zabbix 4.0 Certified Specialist at Forcepoint, blogger at Zabbix blog

2 年

Made my dashboard a bit more interesting with speed & altitude values and graphs shown.

  • 该图片无替代文字
Mikko Tikkala

Senior Network Security Specialist @ Insta

2 年

Amazing. Would it be possible to track real aircrafts from flightradar24.com?

回复

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

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

社区洞察

其他会员也浏览了