Welcome!

Open Source Cloud Authors: Liz McMillan, Zakia Bouachraoui, William Schmarzo, Elizabeth White, Yeshim Deniz

Related Topics: Open Source Cloud

Open Source Cloud: Blog Feed Post

Integrating Open Source Monitoring with Monitis

With Monitis you can centralize all of your monitoring needs into one easy-to-use interface

In this post, we’re going to examine two popular open source monitoring methods and their integration with the Monitis platform.  The first open source monitoring method we’ll discuss is Nagios — which allows you to monitor any network service with the use of plug-ins. The second is Munin — another software monitor with its own strengths and weaknesses. 

Nagios is a popular systems monitoring platform that includes scripting capabilities to maintain your monitoring tasks. Munin is a server monitoring system that is growing increasingly popularity in the open source community. Through integration with these services, Monitis can provide hosted server and network monitoring solutions.

Local and remote software monitoring is used by many administrators to provide analysis and notifications of issues as they arise. All of us in the server administration world know how tedious maintaining systems monitoring can be. Whether you run local monitors on every server, or remote clusters to monitor several locations, weeding through all of the data can be a bit of a headache at times. With Monitis, you can centralize all of these tasks into an easy-to-use and intuitive interface.

Traditional monitoring methods have  drawbacks in that you have to maintain a separate server to store and analyze the data provided through plug-ins and scripts. Even more troubling is the fact that if your server or network fails, you might not even receive your alerts!  A good solution for resolving this is to set up a robust monitoring cluster outside your systems. With this solution however, you’re going to add a noticeable workload on a system administrator to configure and maintain it.

But if you use Monitis, you could achieve this solution and sidestep the negatives.  You could easily do this all in a matter of minutes. Answer this: what server admin wouldn’t want to make things easier on themselves?

A great way to ensure that your alerts are received is to use a hosted monitoring system. Monitis offers a user-friendly interface, powerful tools, and a distributed network to ensure you receive your alerts when you need them the most. Ah, at last a way to put your mind at ease! In addition to greater security, this will free up a system administrator’s time because they’re no longer running around trying to find the problem. Now, they’re able to directly address it.

What if I already use the Nagios Monitoring Platform?

We have a simple solution to integrate your Nagios monitoring with your Monitis account. Through the use of a simple wrapper script you can load your data into our platform. Monitis offers the ability to measure any values with an easily created  custom monitor. Here we will demonstrate by creating a custom monitor that accepts data from the Nagios Load Plug-in. The Load Plug-in monitors server load times on one-, five- and 15-minute intervals. With just a few simple steps you can achieve this solution.

1. Creating a Custom Monitis Monitor

Download the readily available script at https://github.com/monitisexchange/Monitis-Linux-Scripts/blob/master/API/monitis_create_monitor.sh and run it as follows

$ ./monitis_nagios_load_wrapper.sh -w 5,3,3 -c10,5,4
 OK - load average: 0.88, 0.74, 0.65|load1=0.880;5.000;10.000;0; load5=0.740;3.000;5.000;0; load15=0.650;3.000;4.000;0;

This script is specifying the state values to be read via Monitis REST API and providing load values for the one-, 10-, and 15-minute intervals. Many functions of the Monitis API can be use in traditional monitoring software. Flexible integration with a simple API is the Monitis way.

Mow that your Monitor is  created,  log into your Monitis account and add your new monitor. Notice now that you have a customizable and user friendly interface at your disposal. Stylish graphs and status information can all be displayed on your single dashboard for easy network analysis in one convenient location.

2.  Write a Nagios Wrapper Script To Send Your Data To Monitis
For this step you will need two scripts first the wrapper for the check_load plugin:
available here. The previous script then uses an ‘add data’ script that you can obtain here.Then simply run the script like so:

 

$ ./monitis_nagios_load_wrapper.sh -w 5,3,3 -c10,5,4
 OK - load average: 0.88, 0.74, 0.65|load1=0.880;5.000;10.000;0; load5=0.740;3.000;5.000;0; load15=0.650;3.000;4.000;0;

This script will run the plug-in, parse the data provided and then use that information to send the results  to your Monitis Custom Monitor. Once you restart Nagios, you will then begin to generate a fine looking and comprehensive analysis of your data.

3. Set up your Monitis Alerts

Through the Dashboard of your Monitis account you can easily use the Notification Rules of the Custom Monitor you created earlier to set up notifications. Monitis ensures you will always receive your alerts even if the Nagios server fails due to network outages. The distributed Monitis network’s user friendly interface will provide a reliable platform for any open source monitoring method.  Traditional systems-monitoring software can, under certain circumstances, fail you when you need it the most. Freeing up your time as a system administrator from locating issues to quickly being notified and then directly solving the issue at hand is just one of the many added benefits
of using Monitis.

Moving on to Munin

Nevermind. With Monitis you can centralize all of your monitoring needs into one easy-to-use interface. No more looking through multiple monitoring locations to view multiple servers. What if you’re already setup with Munin on several locations? Not a problem! Monitis offers a simple way to make multi-server monitoring and analysis more efficient and friendly. This is another great way to save time, and it allows you to focus on fixing the issues instead of searching for them.

Through the use a few steps and the readily available Monitis Linux scripts repository, you can achieve the integration of Munin and Monitis.

Follow these simple steps

# mkdir -p /usr/share/monitisexchange && cd /usr/share/monitisexchange
# git clone git://github.com/monitisexchange/Monitis-Linux-Scripts.git
# cd Monitis-Linux-Scripts/RRD
# vim monitis_config
After that is completed, add to monitis config:
# ./monitis_rrd.sh munin list_hosts /var/lib/munin

This is the basis for initiating the use of Munin and Monitis. Using plug-in-specific arguments, you can then add monitors and then hook them together to allow Munin to work completely with the centralized Monitis platform.

Examples
List the counters produced by Munin for the memory of localhost

# ./monitis_rrd.sh munin list_counters_for_monitor /var/lib/munin localhost memory

Add the Munin counter that shows the amount of threads running on the system to Monitis.

# ./monitis_rrd.sh munin add_monitor /var/lib/munin localhost threads threads

This will add the counter to Monitis

Now add performance data

/monitis_rrd.sh munin update_data_for_monitor /var/lib/munin localhost threads threads
Now provided you have a returned result of RRD_localhost_munin_threads under the Monitis interface, all that is left to do is hook it all together. A script for hooking the auto update of the data to Monitis is available here.

Note: In Fedora and Debian, Munin is invoked in /etc/cron.d/munin

And there you have it: two solutions for the integration of Monitis into open source monitoring applications. Whether your needs are to free up resources from locally monitored servers or to centralize remote monitoring applications, Monitis has the solutions you need to deliver efficient and user friendly results.

The Monitis platform offers flexible ways to integrate remote distributed monitoring into any platform and meet your unique needs.

Read the original blog entry...

More Stories By Hovhannes Avoyan

Hovhannes Avoyan is the CEO of PicsArt, Inc.,

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


IoT & Smart Cities Stories
Dion Hinchcliffe is an internationally recognized digital expert, bestselling book author, frequent keynote speaker, analyst, futurist, and transformation expert based in Washington, DC. He is currently Chief Strategy Officer at the industry-leading digital strategy and online community solutions firm, 7Summits.
Digital Transformation is much more than a buzzword. The radical shift to digital mechanisms for almost every process is evident across all industries and verticals. This is often especially true in financial services, where the legacy environment is many times unable to keep up with the rapidly shifting demands of the consumer. The constant pressure to provide complete, omnichannel delivery of customer-facing solutions to meet both regulatory and customer demands is putting enormous pressure on...
IoT is rapidly becoming mainstream as more and more investments are made into the platforms and technology. As this movement continues to expand and gain momentum it creates a massive wall of noise that can be difficult to sift through. Unfortunately, this inevitably makes IoT less approachable for people to get started with and can hamper efforts to integrate this key technology into your own portfolio. There are so many connected products already in place today with many hundreds more on the h...
The standardization of container runtimes and images has sparked the creation of an almost overwhelming number of new open source projects that build on and otherwise work with these specifications. Of course, there's Kubernetes, which orchestrates and manages collections of containers. It was one of the first and best-known examples of projects that make containers truly useful for production use. However, more recently, the container ecosystem has truly exploded. A service mesh like Istio addr...
Digital Transformation: Preparing Cloud & IoT Security for the Age of Artificial Intelligence. As automation and artificial intelligence (AI) power solution development and delivery, many businesses need to build backend cloud capabilities. Well-poised organizations, marketing smart devices with AI and BlockChain capabilities prepare to refine compliance and regulatory capabilities in 2018. Volumes of health, financial, technical and privacy data, along with tightening compliance requirements by...
Charles Araujo is an industry analyst, internationally recognized authority on the Digital Enterprise and author of The Quantum Age of IT: Why Everything You Know About IT is About to Change. As Principal Analyst with Intellyx, he writes, speaks and advises organizations on how to navigate through this time of disruption. He is also the founder of The Institute for Digital Transformation and a sought after keynote speaker. He has been a regular contributor to both InformationWeek and CIO Insight...
Andrew Keys is Co-Founder of ConsenSys Enterprise. He comes to ConsenSys Enterprise with capital markets, technology and entrepreneurial experience. Previously, he worked for UBS investment bank in equities analysis. Later, he was responsible for the creation and distribution of life settlement products to hedge funds and investment banks. After, he co-founded a revenue cycle management company where he learned about Bitcoin and eventually Ethereal. Andrew's role at ConsenSys Enterprise is a mul...
To Really Work for Enterprises, MultiCloud Adoption Requires Far Better and Inclusive Cloud Monitoring and Cost Management … But How? Overwhelmingly, even as enterprises have adopted cloud computing and are expanding to multi-cloud computing, IT leaders remain concerned about how to monitor, manage and control costs across hybrid and multi-cloud deployments. It’s clear that traditional IT monitoring and management approaches, designed after all for on-premises data centers, are falling short in ...
In his general session at 19th Cloud Expo, Manish Dixit, VP of Product and Engineering at Dice, discussed how Dice leverages data insights and tools to help both tech professionals and recruiters better understand how skills relate to each other and which skills are in high demand using interactive visualizations and salary indicator tools to maximize earning potential. Manish Dixit is VP of Product and Engineering at Dice. As the leader of the Product, Engineering and Data Sciences team at D...
Dynatrace is an application performance management software company with products for the information technology departments and digital business owners of medium and large businesses. Building the Future of Monitoring with Artificial Intelligence. Today we can collect lots and lots of performance data. We build beautiful dashboards and even have fancy query languages to access and transform the data. Still performance data is a secret language only a couple of people understand. The more busine...