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 full-size slide

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

    View full-size slide

  3. What  is  MoZBX?

    View full-size slide

  4. Why  mobile?

    View full-size slide

  5. Limited  resources

    View full-size slide

  6. Too  many  devices

    View full-size slide

  7. First:  UI  Framework:  jqTouch

    View full-size slide

  8. Now:  Twi,er  Bootstrap

    View full-size slide

  9. 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 full-size slide

  10. Easier  navigation

    View full-size slide

  11. Pre,ier  forms

    View full-size slide

  12. Same  graphs

    View full-size slide

  13. App  vs  Mobile  Site

    View full-size slide

  14. Hacking  graphs

    View full-size slide

  15. Fetching  with  cURL

    View full-size slide

  16. Retrieve  graphs  via  API  
     
    Please.  J

    View full-size slide

  17. Zabbix  1.8  vs  2.x

    View full-size slide

  18. API  changes

    View full-size slide

  19. Double  Code

    View full-size slide

  20. 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 full-size slide

  21. Hosted  version
    www.mozbx.net

    View full-size slide

  22. Why  I  do  it?

    View full-size slide

  23. TODO
    Or  more  fancy:  the  roadmap

    View full-size slide

  24. TODO
    Be,er  git  commits?  J

    View full-size slide

  25. Expand  host  view

    View full-size slide

  26. Contribute?
    •  Issue tracker

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide