Book Image

Practical OneOps

By : Nilesh Nimkar
Book Image

Practical OneOps

By: Nilesh Nimkar

Overview of this book

Walmart’s OneOps is an open source DevOps platform that is used for cloud and application lifecycle management. It can manage critical and complex application workload on any multi cloud-based infrastructure and revolutionizes the way administrators, developers, and engineers develop and launch new products. This practical book focuses on real-life cases and hands-on scenarios to develop, launch, and test your applications faster, so you can implement the DevOps process using OneOps. You will be exposed to the fundamental aspects of OneOps starting with installing, deploying, and configuring OneOps in a test environment, which will also come in handy later for development and debugging. You will also learn about design and architecture, and work through steps to perform enterprise level deployment. You will understand the initial setup of OneOps such as creating organization, teams, and access management. Finally, you will be taught how to configure, repair, scale, and extend applications across various cloud platforms.
Table of Contents (18 chapters)
Practical OneOps
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Adding monitoring


Now that we have a fully functioning pack, we can add monitoring to it. Monitoring in OneOps is handled by Nagios, which is an industry standard monitoring tool. Fortunately, Nagios also comes with many utility scripts and monitors preinstalled so we can readily use them instead of reinventing the wheel. These scripts can generally be found in the /opt/Nagios/libexec directory. So, if we want to add monitoring to the pack that we just added, all we have to do is to use the Java log file monitoring from Nagios, which comes built in. Since OrientDB is Java-based it works out well for us. All we must do is add the code below to orientdb.rb in the packs directory.

    monitors => {   
          'Log' => {:description => 'Log',
                    :source => '',
                    :chart => {'min' => 0, 'unit' => ''},
                    :cmd =>                     'check_logfiles!logorientdb!#{cmd_options[:logfile]}!                    #{cmd_options...