Welcome!

Open Source Cloud Authors: Liz McMillan, Vaibhaw Pandey, Stackify Blog, Rostyslav Demush, Pat Romanski

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.


@ThingsExpo Stories
"MobiDev is a software development company and we do complex, custom software development for everybody from entrepreneurs to large enterprises," explained Alan Winters, U.S. Head of Business Development at MobiDev, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
Coca-Cola’s Google powered digital signage system lays the groundwork for a more valuable connection between Coke and its customers. Digital signs pair software with high-resolution displays so that a message can be changed instantly based on what the operator wants to communicate or sell. In their Day 3 Keynote at 21st Cloud Expo, Greg Chambers, Global Group Director, Digital Innovation, Coca-Cola, and Vidya Nagarajan, a Senior Product Manager at Google, discussed how from store operations and ...
In his session at 21st Cloud Expo, Carl J. Levine, Senior Technical Evangelist for NS1, will objectively discuss how DNS is used to solve Digital Transformation challenges in large SaaS applications, CDNs, AdTech platforms, and other demanding use cases. Carl J. Levine is the Senior Technical Evangelist for NS1. A veteran of the Internet Infrastructure space, he has over a decade of experience with startups, networking protocols and Internet infrastructure, combined with the unique ability to it...
"There's plenty of bandwidth out there but it's never in the right place. So what Cedexis does is uses data to work out the best pathways to get data from the origin to the person who wants to get it," explained Simon Jones, Evangelist and Head of Marketing at Cedexis, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
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...
SYS-CON Events announced today that Telecom Reseller 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, NY. Telecom Reseller reports on Unified Communications, UCaaS, BPaaS for enterprise and SMBs. They report extensively on both customer premises based solutions such as IP-PBX as well as cloud based and hosted platforms.
WebRTC is great technology to build your own communication tools. It will be even more exciting experience it with advanced devices, such as a 360 Camera, 360 microphone, and a depth sensor camera. In his session at @ThingsExpo, Masashi Ganeko, a manager at INFOCOM Corporation, introduced two experimental projects from his team and what they learned from them. "Shotoku Tamago" uses the robot audition software HARK to track speakers in 360 video of a remote party. "Virtual Teleport" uses a multip...
Gemini is Yahoo’s native and search advertising platform. To ensure the quality of a complex distributed system that spans multiple products and components and across various desktop websites and mobile app and web experiences – both Yahoo owned and operated and third-party syndication (supply), with complex interaction with more than a billion users and numerous advertisers globally (demand) – it becomes imperative to automate a set of end-to-end tests 24x7 to detect bugs and regression. In th...
"Space Monkey by Vivent Smart Home is a product that is a distributed cloud-based edge storage network. Vivent Smart Home, our parent company, is a smart home provider that places a lot of hard drives across homes in North America," explained JT Olds, Director of Engineering, and Brandon Crowfeather, Product Manager, at Vivint Smart Home, in this SYS-CON.tv interview at @ThingsExpo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
"IBM is really all in on blockchain. We take a look at sort of the history of blockchain ledger technologies. It started out with bitcoin, Ethereum, and IBM evaluated these particular blockchain technologies and found they were anonymous and permissionless and that many companies were looking for permissioned blockchain," stated René Bostic, Technical VP of the IBM Cloud Unit in North America, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Conventi...
"Cloud Academy is an enterprise training platform for the cloud, specifically public clouds. We offer guided learning experiences on AWS, Azure, Google Cloud and all the surrounding methodologies and technologies that you need to know and your teams need to know in order to leverage the full benefits of the cloud," explained Alex Brower, VP of Marketing at Cloud Academy, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clar...
It is of utmost importance for the future success of WebRTC to ensure that interoperability is operational between web browsers and any WebRTC-compliant client. To be guaranteed as operational and effective, interoperability must be tested extensively by establishing WebRTC data and media connections between different web browsers running on different devices and operating systems. In his session at WebRTC Summit at @ThingsExpo, Dr. Alex Gouaillard, CEO and Founder of CoSMo Software, presented ...
A strange thing is happening along the way to the Internet of Things, namely far too many devices to work with and manage. It has become clear that we'll need much higher efficiency user experiences that can allow us to more easily and scalably work with the thousands of devices that will soon be in each of our lives. Enter the conversational interface revolution, combining bots we can literally talk with, gesture to, and even direct with our thoughts, with embedded artificial intelligence, whic...
SYS-CON Events announced today that Evatronix will exhibit at 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. Evatronix SA offers comprehensive solutions in the design and implementation of electronic systems, in CAD / CAM deployment, and also is a designer and manufacturer of advanced 3D scanners for professional applications.
Leading companies, from the Global Fortune 500 to the smallest companies, are adopting hybrid cloud as the path to business advantage. Hybrid cloud depends on cloud services and on-premises infrastructure working in unison. Successful implementations require new levels of data mobility, enabled by an automated and seamless flow across on-premises and cloud resources. In his general session at 21st Cloud Expo, Greg Tevis, an IBM Storage Software Technical Strategist and Customer Solution Architec...
To get the most out of their data, successful companies are not focusing on queries and data lakes, they are actively integrating analytics into their operations with a data-first application development approach. Real-time adjustments to improve revenues, reduce costs, or mitigate risk rely on applications that minimize latency on a variety of data sources. In his session at @BigDataExpo, Jack Norris, Senior Vice President, Data and Applications at MapR Technologies, reviewed best practices to ...
An increasing number of companies are creating products that combine data with analytical capabilities. Running interactive queries on Big Data requires complex architectures to store and query data effectively, typically involving data streams, an choosing efficient file format/database and multiple independent systems that are tied together through custom-engineered pipelines. In his session at @BigDataExpo at @ThingsExpo, Tomer Levi, a senior software engineer at Intel’s Advanced Analytics gr...
When talking IoT we often focus on the devices, the sensors, the hardware itself. The new smart appliances, the new smart or self-driving cars (which are amalgamations of many ‘things’). When we are looking at the world of IoT, we should take a step back, look at the big picture. What value are these devices providing? IoT is not about the devices, it’s about the data consumed and generated. The devices are tools, mechanisms, conduits. In his session at Internet of Things at Cloud Expo | DXWor...
Everything run by electricity will eventually be connected to the Internet. Get ahead of the Internet of Things revolution. In his session at @ThingsExpo, Akvelon expert and IoT industry leader Sergey Grebnov provided an educational dive into the world of managing your home, workplace and all the devices they contain with the power of machine-based AI and intelligent Bot services for a completely streamlined experience.
SYS-CON Events announced today that Synametrics Technologies will exhibit at SYS-CON's 22nd International Cloud Expo®, which will take place on June 5-7, 2018, at the Javits Center in New York, NY. Synametrics Technologies is a privately held company based in Plainsboro, New Jersey that has been providing solutions for the developer community since 1997. Based on the success of its initial product offerings such as WinSQL, Xeams, SynaMan and Syncrify, Synametrics continues to create and hone inn...