17
The Action Simulator revisited 9th of September 2016, Zabbix Conference, Riga Volker Fröhlich 1 / 17

Wolfgang Alper - Zabbix Meets OPS Control / Rundeck | ZabConf2016

  • Upload
    zabbix

  • View
    72

  • Download
    2

Embed Size (px)

Citation preview

Page 1: Wolfgang Alper - Zabbix Meets OPS Control / Rundeck | ZabConf2016

The Action Simulator revisited

9th of September 2016, Zabbix Conference, Riga

Volker Fröhlich

1 / 17

Page 2: Wolfgang Alper - Zabbix Meets OPS Control / Rundeck | ZabConf2016

Who I amVolker Fröhlich — volter on IRC

System administrator at geizhals.at

Fedora package maintainer

Openstreetmap mapper

Some frontend patches

2 / 17

Page 3: Wolfgang Alper - Zabbix Meets OPS Control / Rundeck | ZabConf2016

Wait, I have seen this before!

3 / 17

Page 4: Wolfgang Alper - Zabbix Meets OPS Control / Rundeck | ZabConf2016

2013 Video

4 / 17

Page 5: Wolfgang Alper - Zabbix Meets OPS Control / Rundeck | ZabConf2016

The Action Simulator is telling you ...Which actions apply to an event

Which operations will take place and when

What was not considered and why

Why you want the Action SimulatorPeace of mind

Don't ridicule yourself

2.0, 2.2, now for 3.0, eventually!

5 / 17

Page 6: Wolfgang Alper - Zabbix Meets OPS Control / Rundeck | ZabConf2016

Why is this even necessary?People rely on Zabbix actions

No reliable way to know what will happen

Zabbix is complex and abstract at times

ZBXNEXT-97 — Testing an action in the frontend

Action audit logHindsight

Only helps with operations

6 / 17

Page 7: Wolfgang Alper - Zabbix Meets OPS Control / Rundeck | ZabConf2016

How does it work?A frontend implementation of the server code

API method

It will not actually do anything!

Button in trigger list, showing a table

7 / 17

Page 8: Wolfgang Alper - Zabbix Meets OPS Control / Rundeck | ZabConf2016

Event details

Notifications

Remote commands

Action andcondition matches

8 / 17

Page 9: Wolfgang Alper - Zabbix Meets OPS Control / Rundeck | ZabConf2016

The Action Simulator allows you to ...

Spot and solve configuration issues

Wrong action conditons

Missing permissions

Missing media settings

Duplicate messages

Assure yourself or create a list of operations

In particular after changing something

Answer a notification inquiry9 / 17

Page 10: Wolfgang Alper - Zabbix Meets OPS Control / Rundeck | ZabConf2016

Wrong conditions: Inadvertent missHost name of zabbix_agentd was changed on {HOST.NAME}

4 and-connected conditions

Typo in a string match

10 / 17

Page 11: Wolfgang Alper - Zabbix Meets OPS Control / Rundeck | ZabConf2016

Wrong conditions: Inadvertent matchHost name of zabbix_agentd was changed on {HOST.NAME}

Expression

Template assigned through inheritance

11 / 17

Page 12: Wolfgang Alper - Zabbix Meets OPS Control / Rundeck | ZabConf2016

Permissions, media settings and duplicates

12 / 17

Page 13: Wolfgang Alper - Zabbix Meets OPS Control / Rundeck | ZabConf2016

What is new?

First version for 3.0 — 5.1.4

June 2016

Limited, but working

New release — 5.2.0

Supports expression-based conditions

AND/OR: A and (B or C or D)Expression: A and (B or C and D)

13 / 17

Page 14: Wolfgang Alper - Zabbix Meets OPS Control / Rundeck | ZabConf2016

What is new? (continued)Display the conditions in a more legible way

Better for colour blind people

14 / 17

Page 15: Wolfgang Alper - Zabbix Meets OPS Control / Rundeck | ZabConf2016

What is new? (continued)Make the tables more on point

Button for disabled triggers in list ⇒ "What if?"

15 / 17

Page 16: Wolfgang Alper - Zabbix Meets OPS Control / Rundeck | ZabConf2016

But it still remains a hack!Important to have

Code duplication, performance

3.2 introduces changes again

Rumours about the API leaving the frontend

16 / 17

Page 17: Wolfgang Alper - Zabbix Meets OPS Control / Rundeck | ZabConf2016

ReferencesThanks to Mikhail "bios" Okhotin

http://www.zabbix.org/wiki/Docs/action_simulator

http://www.geofrogger.net/actionsim/action_sim.txt

volter on Freenode IRC

#zabbix, #zabbix-de

[email protected]

17 / 17