Monitor Your Business

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite

    Monitor Your Business - Presentation Transcript

    1. Monitor your Business Lars Jankowfsky, CTO, swoodoo GmbH
    2. Who is talking ? Lars Jankowfsky: - CTO swoodoo.com - php since php/fi - Developer since 15 years Lars Jankowfsky, swoodoo.com
    3. Preface - No rocket science today - using existing widespread tools to create intelligent business monitoring - nagios - cacti Lars Jankowfsky, swoodoo.com
    4. Nagios - popular open source network monitoring software - usually used mostly for networking/service monitoring ( load,ping,mysql...) - http://www.nagios.org - http://nagios.sourceforge.net/docs/3_0/ quickstart-ubuntu.html - we will use it to modify some business values Lars Jankowfsky, swoodoo.com
    5. Nagios for business monitoring - orders (eCommerce) - imported data (webservices) - customer activity (web 2.0) - ... Lars Jankowfsky, swoodoo.com
    6. Nagios - the script #!/usr/bin/php <?php $value = rand(0,100); if ($value < 50) { echo(\"VALUE WARNING - we got $value|v=$value\"); exit(1); } else { echo(\"VALUE OK - we got $value|v=$value\"); exit(0); } diff types - we use Plugin Return Code: active (nagios calls) 0 OK passive checks write 1 WARNING into nagios command file, and later nagios reads. 2 CRITICAL Asynchronous 3 UNKNOWN Lars Jankowfsky, swoodoo.com
    7. Nagios - settings ../etc/objects/commands.cfg #TEST define command{ command_name check-php command_line $USER1$/check_php } ../etc/objects/localhost.cfg define service{ use local-service ; Name of service template to use host_name localhost service_description PHP check_command check-php } Lars Jankowfsky, swoodoo.com
    8. Nagios - the result Lars Jankowfsky, swoodoo.com
    9. cacti - popular open source RRD graphing tool - http://www.cacti.net - apt-get install cacti Lars Jankowfsky, swoodoo.com
    10. cacti - for business monitoring - graphs for management e.g. - orders, sales - conversion rates - booking/visitor rate - import/sec. rate - ... Lars Jankowfsky, swoodoo.com
    11. cacti - the script very basic example... /usr/local/share/cacti/scripts/test.php #!/usr/bin/php <?php // input in $argv $a = rand(0,100); $b = rand(0,100); echo(\"OK:$a ERR:$b\"); Lars Jankowfsky, swoodoo.com
    12. cacti - configuration #1 - create data input method advice: add suffix ‘Data Input Method’. Lars Jankowfsky, swoodoo.com
    13. cacti - configuration #2 - add data input method fields Lars Jankowfsky, swoodoo.com
    14. cacti - configuration #3 - create data template Lars Jankowfsky, swoodoo.com
    15. cacti - configuration #4 - add data template fields Maximum value 0 has special meaning. It means that threshold for maximum value. Lars Jankowfsky, swoodoo.com be sure that everything is correc No changes possible later!
    16. cacti - configuration #5 - create graph template... #6 - create graph template items after that add type „legend“ Lars Jankowfsky, swoodoo.com
    17. cacti - configuration #6 - create graph template items Lars Jankowfsky, swoodoo.com
    18. cacti - configuration #7 - create graph make sure that everything is correct. You can‘t change contents later - need to recreate Lars Jankowfsky, swoodoo.com
    19. cacti - configuration #7 - add into tree Lars Jankowfsky, swoodoo.com
    20. cacti - that‘s it... Lars Jankowfsky, swoodoo.com
    21. Talking about the php.... - no reason to hack! - use same source for cacti and nagios! - don‘t forget the tests... Lars Jankowfsky, swoodoo.com
    22. Talking about the php.... Lars Jankowfsky, swoodoo.com
    23. Questions? Lars Jankowfsky, swoodoo.com
    24. Thank you for your interest! eMail: lars.jankowfsky@swoodoo.com Lars Jankowfsky, swoodoo.com

    + dodgerisdodgeris, 2 years ago

    custom

    1517 views, 1 favs, 1 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 1517
      • 1470 on SlideShare
      • 47 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 35
    Most viewed embeds
    • 47 views on http://www.frontalaufprall.com

    more

    All embeds
    • 47 views on http://www.frontalaufprall.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories