Open Source Cloud Authors: Pat Romanski, Liz McMillan, Zakia Bouachraoui, Yeshim Deniz, Elizabeth White

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.

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
SYS-CON Events announced today that Silicon India has been named “Media Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Published in Silicon Valley, Silicon India magazine is the premiere platform for CIOs to discuss their innovative enterprise solutions and allows IT vendors to learn about new solutions that can help grow their business.
We are seeing a major migration of enterprises applications to the cloud. As cloud and business use of real time applications accelerate, legacy networks are no longer able to architecturally support cloud adoption and deliver the performance and security required by highly distributed enterprises. These outdated solutions have become more costly and complicated to implement, install, manage, and maintain.SD-WAN offers unlimited capabilities for accessing the benefits of the cloud and Internet. ...
Founded in 2000, Chetu Inc. is a global provider of customized software development solutions and IT staff augmentation services for software technology providers. By providing clients with unparalleled niche technology expertise and industry experience, Chetu has become the premiere long-term, back-end software development partner for start-ups, SMBs, and Fortune 500 companies. Chetu is headquartered in Plantation, Florida, with thirteen offices throughout the U.S. and abroad.
SYS-CON Events announced today that CrowdReviews.com has been named “Media Sponsor” of SYS-CON's 22nd International Cloud Expo, which will take place on June 5–7, 2018, at the Javits Center in New York City, NY. CrowdReviews.com is a transparent online platform for determining which products and services are the best based on the opinion of the crowd. The crowd consists of Internet users that have experienced products and services first-hand and have an interest in letting other potential buye...
Business professionals no longer wonder if they'll migrate to the cloud; it's now a matter of when. The cloud environment has proved to be a major force in transitioning to an agile business model that enables quick decisions and fast implementation that solidify customer relationships. And when the cloud is combined with the power of cognitive computing, it drives innovation and transformation that achieves astounding competitive advantage.
DXWorldEXPO LLC announced today that "IoT Now" was named media sponsor of CloudEXPO | DXWorldEXPO 2018 New York, which will take place on November 11-13, 2018 in New York City, NY. IoT Now explores the evolving opportunities and challenges facing CSPs, and it passes on some lessons learned from those who have taken the first steps in next-gen IoT services.
Cloud-enabled transformation has evolved from cost saving measure to business innovation strategy -- one that combines the cloud with cognitive capabilities to drive market disruption. Learn how you can achieve the insight and agility you need to gain a competitive advantage. Industry-acclaimed CTO and cloud expert, Shankar Kalyana presents. Only the most exceptional IBMers are appointed with the rare distinction of IBM Fellow, the highest technical honor in the company. Shankar has also receive...
DXWorldEXPO LLC announced today that ICOHOLDER named "Media Sponsor" of Miami Blockchain Event by FinTechEXPO. ICOHOLDER gives detailed information and help the community to invest in the trusty projects. Miami Blockchain Event by FinTechEXPO has opened its Call for Papers. The two-day event will present 20 top Blockchain experts. All speaking inquiries which covers the following information can be submitted by email to [email protected] Miami Blockchain Event by FinTechEXPOalso offers sp...
DXWordEXPO New York 2018, colocated with CloudEXPO New York 2018 will be held November 11-13, 2018, in New York City and will bring together Cloud Computing, FinTech and Blockchain, Digital Transformation, Big Data, Internet of Things, DevOps, AI, Machine Learning and WebRTC to one location.
@DevOpsSummit at Cloud Expo, taking place November 12-13 in New York City, NY, is co-located with 22nd international CloudEXPO | first international DXWorldEXPO and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The widespread success of cloud computing is driving the DevOps revolution in enterprise IT. Now as never before, development teams must communicate and collaborate in a dynamic, 24/7/365 environment. There is no time t...