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 12: Time to get Sirious

Breadcrumbs

Breadcrumb

  • Home
  • Part 12: Time to get Sirious

Main page content

By whatsuphome | 11:50 AM EEST, Thu June 02, 2022

TL;DR

I wired Apple's Shortcuts to the Zabbix API using an API token generated in Zabbix. One shortcut calls the API, parses my fridge temperature and appends degrees Celsius, so asking Siri to check the beer temperature reads back the actual fridge reading.
It's important to get the most critical data easily

Can you integrate Zabbix with Siri? 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 weekly blog about the home project.

I have lost the count exactly when, but couple of major iOS/macOS versions ago Apple's Siri gained the Shortcuts application. It allows you to automate all kinds of stuff and do some drag-and-drop 'programming'.

What do I use it for? You guessed it right -- I integrate Shortcuts with Zabbix API.

Setting up the Zabbix side

For my home Zabbix environment, I do not have any complex access rights set. So, setting up the API token for Shortcuts to consume was almost a one-click operation -- in Zabbix, I went to User settings --> API tokens --> Create API token and let it do its stuff.

Zabbix API tokens view

Creating a new shortcut

Now that I have the API token in place, next we need to create the shortcut. That's not too much work though -- run the Shortcuts application and create a new shortcut. What the shortcut below does is

 

  • calls Zabbix API and requests our fridge temperature
  • parses the value and appends "degrees Celsius" to it
  • returns the value

 

Shortcut to check the beer temperature (actually our fridge)

Yes, that's all of it. Drag 'n drop couple of elements and assign some values. Done.

Time to get Sirious

Ok, so we have our shortcut in place. What happens if I now ask Siri to check beer temperature? This happens.

Siri announcing the fridge temperature, in this case 8.5 degrees Celsius.

The result is actually our refrigerator temperature, the beer thing was just to make this more interesting. But, as you can see, integrating Zabbix with Siri -- or vice versa -- is not too hard.

Any real world use cases for this, other than the geek factor? I don't know. Might be handy to request the latest alerts or similar from Siri if I'm driving my car and I get to hear that something's wrong at work.

I have been working at Forcepoint since 2014 and I confess I actually use Siri for some basic work stuff, too.

whatsuphome
zabbix
siri
  • 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 wired Apple's Shortcuts to the Zabbix API using an API token generated in Zabbix. One shortcut calls the API, parses my fridge temperature and appends degrees Celsius, so asking Siri to check the beer temperature reads back the actual fridge reading.

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