Upgrade to Pro — share decks privately, control downloads, hide ads and more …

MoZBX: Why Mobile Zabbix Matters

Mattias Geniar
September 21, 2012

MoZBX: Why Mobile Zabbix Matters

A presentation on MoZBX, an unofficial mobile webfrontend designed for smartphone usage for the Zabbix Monitoring Solution.

Mattias Geniar

September 21, 2012
Tweet

More Decks by Mattias Geniar

Other Decks in Technology

Transcript

  1. Why  Mobile  
    Ma,ers
    Oh hai graphs on your smartphone!

    View Slide

  2. Who  am  I?
    •  Geek
    •  Developer
    •  Automater
    •  DevOps at Nucleus.be
    •  Blogger at http://mattiasgeniar.be

    View Slide

  3. What  is  MoZBX?

    View Slide

  4. New  UI

    View Slide

  5. Why  mobile?

    View Slide

  6. Challenges

    View Slide

  7. Limited  resources

    View Slide

  8. Too  many  devices

    View Slide

  9. First:  UI  Framework:  jqTouch

    View Slide

  10. Now:  Twi,er  Bootstrap

    View Slide

  11. Own  PHP  API
    ~  750  lines  of  PHP  code  for  the  Zabbix  Class
    Very  easy  PHP,  simple  OO

    Features  only  the  most  common  tasks
    •  Get  hosts  /  hostgroups
    •  Get  triggers,  ack  triggers
    •  View  graphs
    Why?  No  choice  back  then.

    View Slide

  12. Easier  navigation

    View Slide

  13. Pre,ier  forms

    View Slide

  14. Same  graphs

    View Slide

  15. App  vs  Mobile  Site

    View Slide

  16. Hacking  graphs

    View Slide

  17. Fetching  with  cURL

    View Slide

  18. Retrieve  graphs  via  API  
     
    Please.  J

    View Slide

  19. Zabbix  1.8  vs  2.x

    View Slide

  20. API  changes

    View Slide

  21. Double  Code

    View Slide

  22. Installation
    $  cd  /var/www/html/
    $  wget  h,ps://github.com/ma,iasgeniar/MoZBX/zipball/master
    $  unzip  ma,iasgeniar-­‐‑MoZBX-­‐‑*.zip

    $  curl  -­‐‑I  "ʺh,p://localhost"ʺ
    HTTP/1.1  200  OK

    View Slide

  23. Hosted  version
    www.mozbx.net

    View Slide

  24. Why  I  do  it?

    View Slide

  25. TODO
    Or  more  fancy:  the  roadmap

    View Slide

  26. TODO
    Be,er  git  commits?  J

    View Slide

  27. Expand  host  view

    View Slide

  28. View Slide

  29. Contribute?
    •  Issue tracker

    View Slide

  30. Contribute?
    •  Source: https://github.com/mattiasgeniar/MoZBX
    •  -> could use: patches, new features, ... It’s simple PHP!

    View Slide

  31. Contribute?
    •  More UI testing: need more phones

    View Slide

  32. Contribute?
    •  Interested?
    -> Twitter: @mattiasgeniar
    -> E-mail: [email protected]

    View Slide

  33. View Slide