Diese Präsentation wurde erfolgreich gemeldet.
Die SlideShare-Präsentation wird heruntergeladen. ×

Raymond Kuiper - Zen and The Art of Zabbix Template Design | ZabConf2016

Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Wird geladen in …3
×

Hier ansehen

1 von 36 Anzeige

Raymond Kuiper - Zen and The Art of Zabbix Template Design | ZabConf2016

Herunterladen, um offline zu lesen

Zabbix monitoring solution can help bring balance to your organisation's IT landscape. However, the success greatly depends on the templates you use to setup your monitoring system. As any Zabbix veteran will tell you, the default templates don't really suffice for any setup other than a proof-of-concept. How then do you set about creating your own templates? Following practical examples, we'll discuss some of the design decisions that need to be made to achieve template perfection.

Zabbix monitoring solution can help bring balance to your organisation's IT landscape. However, the success greatly depends on the templates you use to setup your monitoring system. As any Zabbix veteran will tell you, the default templates don't really suffice for any setup other than a proof-of-concept. How then do you set about creating your own templates? Following practical examples, we'll discuss some of the design decisions that need to be made to achieve template perfection.

Anzeige
Anzeige

Weitere Verwandte Inhalte

Andere mochten auch (20)

Ähnlich wie Raymond Kuiper - Zen and The Art of Zabbix Template Design | ZabConf2016 (20)

Anzeige

Weitere von Zabbix (17)

Aktuellste (20)

Anzeige

Raymond Kuiper - Zen and The Art of Zabbix Template Design | ZabConf2016

  1. 1. and the art of Zabbix template design Zen
  2. 2. Whois @RaymondKuiper nl.linkedin.com/in/raymondkuiper github.com/q1x #zabbix: q1x
  3. 3. Robert M. Pirsig “...it should in no way be associated with that great body of factual information relating to orthodox Zen Buddhist practice. It's not very factual on motorcycles, either.”
  4. 4. Quality
  5. 5. Default Templates: “Templates that Zabbix SIA sends together with Zabbix are only for testing, and they may be for proving concepts; they are not for use in a production environment. We'll need to create our own templates based on our needs.” Luciano Alves
  6. 6. Our template problem
  7. 7. So, what makes a good Zabbix template?
  8. 8. Zabbix.org says: ● Templates should be modular ● Templates should be as universal as reasonably possible ● LLD should be used for all supported objects ● Consider using user macros for values users might want to finetune ● …... zabbix.org/wiki/Docs/template_guidelines
  9. 9. Modularity Reusability Flexibility ...do one thing, and do it great!
  10. 10. We need a design pattern!
  11. 11. “In software engineering, a design pattern is a general repeatable solution to a commonly occurring problem in software design. A design pattern isn't a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.” sourcemaking.com/design_patterns Design Pattern:
  12. 12. Roles & Profiles www.craigdunn.org/2012/05/239/
  13. 13. Role based Zabbix templates
  14. 14. Keep infra up $organisation Monitoring Report to $boss
  15. 15. github.com/q1x/zabbix-templates-30/wiki/Template-Hierarchy
  16. 16. github.com/q1x/zabbix-templates-30/wiki/Template-Hierarchy Template::Duty::App::Web::AMPTemplate::Duty::OS::Linux Template::Role::LAMP Template::Profile::Prod_web Template::Task::Sys::Mem *::App::DB::Mysql *::App::Web::Apache *::Sys::FS
  17. 17. Template::Task::Availability:Ping Example: Macros Template ICMP Ping: Template::Task::Availability:Ping:
  18. 18. Template::Task::Availability:Ping Example: Macros Default macro values: Override macros:
  19. 19. Template::Task::Availability:Ping Example: Macros Override macro for a single item:
  20. 20. Template::Task::Availability:Ping Example: Macros Triggers: Macros:
  21. 21. Template::Task::Availability:Ping Example: Macros Triggers status: Trigger description:
  22. 22. Template::Task::Availability:Ping Example: Macros Calculated item:
  23. 23. Template::Task::Availability:Ping Example: Macros Graph:
  24. 24. Template::Task::Sys::Filesystem Example: LLD Discovery rule:
  25. 25. Template::Task::Sys::Filesystem Example: LLD Discovery filter: Filter by usermacro:
  26. 26. Template::Task::Sys::Filesystem Example: LLD Host screen with prototypes:
  27. 27. Template::Task::Sys::Filesystem Example: LLD Host screen with prototypes:
  28. 28. Template::Role::ZabbixProxy Example: template linkage Duty template: Role template:
  29. 29. Template::Role::ZabbixProxy Example: template linkage Macro inheritance:
  30. 30. Template::Role::ZabbixProxy Example: template linkage Template::Profile::*::ZabbixProxy:
  31. 31. Template::Role::ZabbixProxy Example: template linkage Differentiate between environments:
  32. 32. Where can I find more info?
  33. 33. github.com/q1x/zabbix-templates-30/ Role based template project
  34. 34. How to improve this concept further?
  35. 35. Open Issues: ● ZBXNEXT-3370/ZBX-11178 Export dependencies between child templates ● ZBXNEXT-2957 Ability to mask macros in the frontend ● ZBXNEXT-1675 Add macros support for update intervals support.zabbix.com
  36. 36. Questions?

×