Skip to header Skip to main navigation Skip to main content Skip to footer

Search form

Site branding

Home
What's up, home?

Main navigation

  • Home
  • Story mode
  • About
  • Features
  • Hardware list
  • Videos
  • GitHub (opens in new tab)
  • Daily AI generated stories (opens in new tab)

Part 22: The clock is ticking

Breadcrumbs

Breadcrumb

  • Home
  • Part 22: The clock is ticking

Main page content

By whatsuphome | 12:08 PM EEST, Wed September 28, 2022

TL;DR

I built a countdown timer in Zabbix that displays the time remaining until my Zabbix Summit flight using a calculated item based on Unix epoch timestamps. By mapping values to friendly labels and adding an Item value widget to a dedicated dashboard, I
Countdown

Can you use Zabbix as a countdown timer? 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 blog about this project.

Zabbix Summit 2022 is almost here. Finally we meet again in person after two years of virtual summits. And this year, I get to be a speaker. YAY!

But can you make Zabbix show you if it's time for the summit yet? Yes, easily! Just create a calculated item which calculates the epoch time difference between your desired time and current time, and that's about it.

Get your epoch time easily

In my case, I consider my Zabbix Summit to be starting when I board the plane at the Helsinki Airport.

To get the epoch time, or Unix timestamp, or time in seconds since January 1st 1970 00:00:00, for my flight departure, I went to Epoch Converter website and entered the details.

No alt text provided for this image

Create a calculated item

With that info, I then created a new calculated item on Zabbix.

No alt text provided for this image

In other words, get the time remaining in seconds before my flight takes off.

For my calculated item, I declared the units to be in seconds, after which Zabbix already shows the results in more convenient days -- hours -- minutes format.

Apply some value mapping

To make this more interesting, let's apply some value mapping!

No alt text provided for this image

Next, when I apply this value mapping on my previously created item, I can then move on and create a separate dashboard for my Zabbix Summit countdown needs.

Create a dashboard

I simply added a new Item value widget to my new dashboard, chose my time until Zabbix summit item, adjusted font size and item positioning, and here it is in all its glory.

No alt text provided for this image

I could of course create alert triggers for this to get a notification when I need to go to the airport, but I guess that's totally unnecessary. Can't wait to meet y'all!

I have been working at Forcepoint since 2014 and monitoring keeps my internal clock ticking. Hmm, that was a weird sentence.

whatsuphome
zabbix
zabbixsummit
countdowntimer
part22
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
I built a countdown timer in Zabbix that displays the time remaining until my Zabbix Summit flight using a calculated item based on Unix epoch timestamps. By mapping values to friendly labels and adding an Item value widget to a dedicated dashboard, I

Search

Who am I?

  • Janne Pikkarainen from Finland 🇫🇮
  • Began with computers in 1986 with C64
  • Doing IT for living since 1999
  • Principal Site Reliability Engineer at Forcepoint
  • A Zabbix Summit speaker every year since 2022
  • Walking, talking Zabbix commercial

Support my project

Buy me a coffee 

Footer menu

  • Contact

What's up, home? | Janne Pikkarainen | contact(at)whatsuphome.fi | 2022 - 2026

Developed and Designed by Janne Pikkarainen