<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Opsview Labs</title>
	<atom:link href="http://labs.opsview.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://labs.opsview.com</link>
	<description>Opsview&#039;s Engineering Blog</description>
	<lastBuildDate>Fri, 20 Jan 2012 09:32:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Website Monitoring in 10 Easy Steps with Opsview</title>
		<link>http://labs.opsview.com/2012/01/monitor-your-website-in-10-easy-steps-with-opsview/</link>
		<comments>http://labs.opsview.com/2012/01/monitor-your-website-in-10-easy-steps-with-opsview/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 15:06:40 +0000</pubDate>
		<dc:creator>Christopher Buckley</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Opsview]]></category>
		<category><![CDATA[System Management]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[service check]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[website check]]></category>
		<category><![CDATA[website monitoring]]></category>

		<guid isPermaLink="false">http://labs.opsview.com/?p=2119</guid>
		<description><![CDATA[
			
				
			
		For most companies websites are their corporate face to the world. Any downtime can be costly especially if the sites are used for e-commerce. Web monitoring checks can be set up quickly and easily in Opsview giving you powerful alerting capabilities to check on crashed servers, website attacks and more. Here are 10 easy steps [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flabs.opsview.com%2F2012%2F01%2Fmonitor-your-website-in-10-easy-steps-with-opsview%2F">
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flabs.opsview.com%2F2012%2F01%2Fmonitor-your-website-in-10-easy-steps-with-opsview%2F&amp;style=normal&amp;b=2" height="61" width="50" />
			</a>
		</div><p><a href="http://labs.opsview.com/wp-content/uploads/2012/01/website.jpg"><img class="alignleft size-full wp-image-2133" title="website monitoring" src="http://labs.opsview.com/wp-content/uploads/2012/01/website.jpg" alt="website monitoring" width="175" height="141" /></a>For most companies websites are their corporate face to the world. Any downtime can be costly especially if the sites are used for e-commerce. <strong>Web monitoring</strong> checks can be set up <strong>quickly and easily</strong> in Opsview giving you <strong>powerful alerting</strong> capabilities to check on crashed servers, website attacks and more. Here are 10 easy steps to set up website monitoring in Opsview:<span id="more-2119"></span>1.	Login to Opsview and Go to  CONFIGURATION &gt; SERVICE CHECKS</p>
<p><a href="http://labs.opsview.com/wp-content/uploads/2012/01/service-check1.png"><img class="aligncenter size-full wp-image-2136" title="website monitoring configuration" src="http://labs.opsview.com/wp-content/uploads/2012/01/service-check1.png" alt="website monitoring configuration" width="500" height="253" /></a></p>
<p>2.	Click on &#8216;ACTIONS &gt; Create New Service Check&#8217;</p>
<p><a href="http://labs.opsview.com/wp-content/uploads/2012/01/service-check.png"><img class="aligncenter size-full wp-image-2122" title="create new website monitoring check" src="http://labs.opsview.com/wp-content/uploads/2012/01/service-check.png" alt="create new website monitoring check" width="322" height="128" /></a></p>
<p>3.	You will see a blank template, ready for you to fill with data. Populate the template with information to create an appropriate service check, in the example below we’ve set it up to warn us when our SSL certificate is within 30 days of expiring.</p>
<p><a href="http://labs.opsview.com/wp-content/uploads/2012/01/service-check-filled1.png"><img class="aligncenter size-full wp-image-2124" title="website monitor check" src="http://labs.opsview.com/wp-content/uploads/2012/01/service-check-filled1.png" alt="website monitor check" width="500" height="418" /></a></p>
<p>4.	Before adding the check into your template you can test the syntax of your argument on the command line:</p>
<pre>nagios@ov-trn-s1:~$ check_http –H www.opsview.com –C 30
OK – Certificate will expire on 04/26/2012 10.23.</pre>
<p>5.	Once all the data is complete you need to assign the checks to a host. When you&#8217;ve got all your website checks setup it&#8217;s useful to summarise them in a viewport so that you can easily see all activity in one place. To do this you need to set up a dashboard view for your new checks.</p>
<p>6. Go to CONFIGURATION – KEYWORDS</p>
<p>7. Click on ACTIONS &gt; CREATE NEW KEYWORD <a href="http://labs.opsview.com/wp-content/uploads/2012/01/new-keyword.png"><img class="aligncenter size-full wp-image-2157" title="new-keyword" src="http://labs.opsview.com/wp-content/uploads/2012/01/new-keyword.png" alt="new keyword" width="400" height="308" /></a></p>
<p>8. Select your newly created service checks.</p>
<p><a href="http://labs.opsview.com/wp-content/uploads/2012/01/new-check.png"><img class="aligncenter size-full wp-image-2186" title="summarise website monitoring checks" src="http://labs.opsview.com/wp-content/uploads/2012/01/new-check.png" alt="summarise website monitoring checks" width="600" height="122" /></a></p>
<p>9. After clicking SUBMIT then RELOADING your Opsview configuration, you will see your website monitors appear on your dashboard.</p>
<p><a href="http://labs.opsview.com/wp-content/uploads/2012/01/dashboard1.png"><img class="aligncenter size-full wp-image-2190" title="website monitoring dashboard" src="http://labs.opsview.com/wp-content/uploads/2012/01/dashboard1.png" alt="website monitoring dashboard" width="600" height="117" /></a></p>
<p>10. Click through to <strong>Website Health Checks</strong>. You can change the view to suit your requirements, here we have selected a ‘performance’ view, allowing us to instantly see the key metrics.</p>
<p><a href="http://labs.opsview.com/wp-content/uploads/2012/01/performance-view1.png"><img class="aligncenter size-full wp-image-2175" title="website monitoring performance view" src="http://labs.opsview.com/wp-content/uploads/2012/01/performance-view1.png" alt="website monitoring performance view" width="600" height="192" /></a></p>
<p>Here is the same dashboard, but with a ‘Group by Service’ overview.</p>
<p><a href="http://labs.opsview.com/wp-content/uploads/2012/01/service-overview.png"><img class="aligncenter size-full wp-image-2194" title="website monitoring service overview" src="http://labs.opsview.com/wp-content/uploads/2012/01/service-overview.png" alt="website monitoring service overview" width="600" height="87" /></a></p>
<h2>Website Monitoring Checks</h2>
<p>There are lots of types of checks you can carry out to ensure the health of your website and webservers – here are a few you can try:</p>
<h3>Web Server Check</h3>
<p>This is checking the web server running on &#8216;ov-dev-61&#8242;. It performs a simple TCP connection on port 80 and ensures a valid HTTP response is received.</p>
<pre>nagios@ov-trn-s1:~$ check_http –H ov-dev-61 –w 5 –c 10
HTTP OK HTTP/1.1 200 OK – 316 bytes in 0.003 second response time | time=0.003423s;5.000000;10.000000;0.000000 size=316B;;;0</pre>
<p>If the webserver stops working, then we see this response:</p>
<pre>nagios@ov-trn-s1:~$ check_http –H ov-dev-61 –w 5 –c 10
Connection refused
HTTP CRITICAL – Unable to open TCP socket</pre>
<h3>Content Serving Check</h3>
<p>This is a really useful check, as it allows you to monitor both potential defacements to your website as well as performing an &#8216;application&#8217; level check, i.e. ensuring that your webserver is serving meaningful content.</p>
<p>A check of Apache processes sometimes isn&#8217;t enough; Apache may be running, but it may not be serving the content you expect. This check addresses that.</p>
<pre>nagios@ov-trn-s1:~$ check_http –H www.opsview.com –u /company –s “Based in Reading –w –c 10
HTTP OK HTTP/1.1 200 OK – 41439 bytes in 0.886 second response time | time=0.885759s;5.000000;10.000000;0.000000 size=41439B;;;0</pre>
<p>Here we see the result of the check when a string (&#8216;foobar&#8217;) is required, but not found.</p>
<pre>nagios@ov-trn-s1:~$ check_http –H www.opsview.com –u /company –s “foobar” –w 5 –c 10
HTTP CRITICAL: HTTP/1.1 200 OK – string ‘foobar’ not found on ‘http://www.opsview.com:80/company’</pre>
<h3>Retrieve In-Time Check</h3>
<p>Here’s an excellent monitor to ensure that your website is retrieved within an acceptable time-frame:</p>
<pre>[nagios@vader ~j$ check_http –w 2 –c 4 –H www.opsview.com –f follow
HTTP OK: HTTP/1.1 200 OK – 49250 bytes in 0.777 second response time | time=0.777155s;2.000000;4.000000;0.000000 size=49250B;;;0</pre>
<hr />If there are any other types of website monitoring checks that you use regularly or want to use let us know!</p>
<p>Find out how to configure Opsview to pro-actively respond to website attacks at our <a href="http://www.opsview.com/learn/opsview-webinars">Webinar on 2nd February</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.opsview.com/2012/01/monitor-your-website-in-10-easy-steps-with-opsview/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Virtual Insanity: How To Remain Lean And Green</title>
		<link>http://labs.opsview.com/2012/01/virtual-insanity-how-to-remain-lean-and-green/</link>
		<comments>http://labs.opsview.com/2012/01/virtual-insanity-how-to-remain-lean-and-green/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 09:39:30 +0000</pubDate>
		<dc:creator>James Peel</dc:creator>
				<category><![CDATA[Green IT]]></category>
		<category><![CDATA[cloud monitoring]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[Opsview]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://labs.opsview.com/?p=2106</guid>
		<description><![CDATA[
			
				
			
		With the likes of cloud computing and virtualisation starting to become staples for today’s business, IT environments are continuing to grow in complexity. Furthermore, there is growing pressure on many organisations to reduce the environmental impact of their IT systems.
In response to these developments, organisations need to change the way they manage and therefore monitor [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flabs.opsview.com%2F2012%2F01%2Fvirtual-insanity-how-to-remain-lean-and-green%2F">
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flabs.opsview.com%2F2012%2F01%2Fvirtual-insanity-how-to-remain-lean-and-green%2F&amp;style=normal&amp;b=2" height="61" width="50" />
			</a>
		</div><p><strong><a style="font-weight: bold;" href="http://labs.opsview.com/wp-content/uploads/2012/01/green-it.jpg"><img class="size-full wp-image-2108 alignleft" style="margin-bottom: 8px; margin-right: 10px;" title="green-it" src="http://labs.opsview.com/wp-content/uploads/2012/01/green-it.jpg" alt="" width="175" height="117" /></a>With the likes of cloud computing and virtualisation starting to become staples for today’s business, IT environments are continuing to grow in complexity. Furthermore, there is growing pressure on many organisations to reduce the environmental impact of their IT systems.</strong></p>
<p>In response to these developments, organisations need to change the way they manage and therefore monitor their IT infrastructure. For example, with the advent of virtualisation, organisations now have a fundamentally different infrastructure platform from which they are running business systems. This in turn requires a different monitoring approach.<span id="more-2106"></span></p>
<p>If organisations can’t adapt their physical world approaches to monitoring, they could find that they aren’t made aware of systems problems until users start complaining about downtime.</p>
<p>When it comes to cloud they need to consider how they are going to monitor both the performance and use of cloud services. Finally, with it being unlikely that organisations will move all services to the cloud they need to find ways to monitor environmental factors such as the temperature of data centres and the CO2 emissions of IT.</p>
<p>This data will not only allow them to find ways to reduce energy costs, but also report back up the organisation when it comes to the environmental targets that have been set.</p>
<p>At the same time as being presented with an increasingly complex environment to monitor, IT departments are under pressure to dramatically reduce the cost of day to day operations. The result is a conundrum that requires new ways of thinking to solve.</p>
<h3>Taking The Pain Out Of Virtualisation</h3>
<p>Virtualisation has been utilised by many organisations looking to improve operational efficiency. Thus, with physical and virtual machines now present in many businesses, monitoring and managing both effectively is vital.</p>
<p>When implementing and monitoring virtualisation, businesses face a number of challenges – all of which add to the complexity of IT monitoring. Virtualisation allows you to improve server utilisation. Yet, when you increase the utilisation of a previously under-used server, it can be difficult to know how that server will manage the increased load.</p>
<p>Therefore, monitoring the performance of the VM host and all the virtual machines running on it is imperative otherwise organisations could find they suffer from performance slow downs or worse still, downtime. The problem is virtualisation doesn’t behave like, or conform to the same rules as physical hardware and therefore often traditional approaches to monitoring both infrastructure and applications don’t meet the grade.</p>
<p>You often find that the VM itself can be monitored, but there is no insight into what’s going on within it or into the applications it’s hosting.</p>
<p>A further challenge for a lot of organisations is staying on top of the growing sprawl of virtualisation, due to the ease of creating virtual machines. To date, this is something that many have struggled with using older proprietary IT monitoring and management tools.</p>
<p>To combat these potential issues, organisations need to update their approaches to IT monitoring. They need to use tools that can provide insight into virtualisation and that enables them to understand how every application on every virtual machine is running, what problems could occur and how they can be remedied.</p>
<p>Without this investment in IT monitoring, virtualisation will not bring the ROI expected and the increased complexity could in fact result in ongoing performance issues.</p>
<h3>Up In The Air – The Cloud Effect</h3>
<p>The acceptance of cloud computing has increased over the past few years. Now, the terms public, private and hybrid are understood by the majority of organisations, with data centre association Afcom citing that more than 70 per cent of UK businesses are already implementing cloud, or seriously considering it.</p>
<p>Adopting a cloud model allows businesses to move some applications and services off-premise, resulting in reduced costs, with less IT equipment required on-premise. However, cloud does potentially present a number of challenges when it comes to monitoring the overall performance of an organisation’s IT infrastructure.</p>
<p>With this in mind, organisations should start thinking about how they are going to monitor and assess cloud performance in the future, in order to guarantee IT performance. The difficulty at the moment is that there are not many standards around cloud when it comes to moving applications between public and private clouds, and consequently monitoring them.</p>
<p>Therefore, before choosing a monitoring tool, organisations need to ensure that the solution has the flexibility to adapt to any future changes once standards do eventually emerge.</p>
<p>Another challenge organisations should be looking out for as they begin to use cloud-based services, is that they could experience cloud sprawl. Although one of the benefits of the cloud model is that users can buy services on a pay-as-you-go basis, organisations will need to make sure they are controlling cloud deployments, as it can be very easy to continue paying for cloud services long after they have finished using them.</p>
<p>This is for the simple reason that people often forget to tell the cloud provider that they have finished using the service and therefore keep getting billed. Ultimately, businesses will need to have a consolidated view of all cloud services meaning they will then be able to monitor how much these are being used. This way, they can make sure they only pay for what they are actually using rather than paying for what they have deployed.</p>
<p><strong>Going Green Without Feeling Blue – Green IT Made Simple</strong></p>
<p>In addition to adopting new technologies or IT models to reduce costs, organisations are also under pressure to become greener. This pressure comes not just from the board as they look to achieve cost savings, but also through growing public and legislative pressure on them to reduce carbon emissions.</p>
<p>The UK Government has set a target of cutting CO2 emissions by 34% of 1990 levels by 2020. Businesses play a key part in this and the pressure is on to adhere to the new rules and regulations that aim to ensure we hit those targets.</p>
<p>The main challenge for many organisations however, is that they don’t know how much power is being consumed by their IT, especially as data centres are now often located away from an organisation’s main site. Organisations must be able to construct a better picture of energy usage in their data centres – building environmental factors into monitoring to identify areas where further energy savings can be made.</p>
<p>For example, organisations need to be able to tell when and where they can power down servers that are not in use. They also need to monitor data centre temperature very carefully – ensuring cooling systems are working efficiently and keeping their servers at optimum temperature.</p>
<p>Furthermore, IT monitoring can also help organisations build a picture to help them decide which old systems can be decommissioned if they are not performing sufficiently. Being green does not need to be difficult. The right tools will indicate the right processes to improve your environmental credentials without the need for more investment or even more IT complexity.</p>
<p>As the IT landscape continues to change, it is becoming increasingly clear that the monitoring tools and techniques that worked in the past simply don’t suit the modern environment. More flexibility and agility is needed in IT monitoring, while reducing the overall cost. Overall, IT monitoring can help organisations improve their business and environmental performance. The challenge is now to ensure they have the right tools and techniques in place to do this.</p>
<div style="border: 1px solid #ccc; background-color: #f5f5f5; padding: 8px;">
<h3>About the author</h3>
<p>James Peel is product manager at Opsview. He has over 12 years&#8217; experience in IT services and infrastructure management, with a focus on building data centres and developing automated monitoring and management systems.</p>
<p>Article first published in <a href="http://www.businesscomputingworld.co.uk/virtual-insanity-how-to-remain-lean-and-green/">Business Computing World, 12 Jan 2011</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://labs.opsview.com/2012/01/virtual-insanity-how-to-remain-lean-and-green/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monitoring Apache Solr with Opsview</title>
		<link>http://labs.opsview.com/2011/12/monitoring-apache-solr-with-opsview/</link>
		<comments>http://labs.opsview.com/2011/12/monitoring-apache-solr-with-opsview/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 14:58:29 +0000</pubDate>
		<dc:creator>rbramley</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[DevOps]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Grails]]></category>
		<category><![CDATA[Hudson]]></category>
		<category><![CDATA[JMX]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[System Management]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[agentless checks]]></category>
		<category><![CDATA[apache solr]]></category>
		<category><![CDATA[Lucene]]></category>
		<category><![CDATA[nrpe]]></category>
		<category><![CDATA[Opsview]]></category>

		<guid isPermaLink="false">http://labs.opsview.com/?p=2012</guid>
		<description><![CDATA[
			
				
			
		Apache Solr is an open source enterprise search service from the Lucene project. Solr is written in Java and runs as a standalone full-text search server within a servlet container such as Tomcat.
Like any service or component in your architecture, you’ll want to monitor it to ensure that it’s available and gather performance data to [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flabs.opsview.com%2F2011%2F12%2Fmonitoring-apache-solr-with-opsview%2F">
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flabs.opsview.com%2F2011%2F12%2Fmonitoring-apache-solr-with-opsview%2F&amp;style=normal&amp;b=2" height="61" width="50" />
			</a>
		</div><p><a href="http://labs.opsview.com/wp-content/uploads/2011/12/solr.jpg"><img class="alignleft size-full wp-image-2027" title="solr" src="http://labs.opsview.com/wp-content/uploads/2011/12/solr.jpg" alt="monitoring Apache Solr" width="150" height="83" /></a><a title="Apache Solr" href="http://lucene.apache.org/solr/">Apache Solr</a> is an open source enterprise search service from the Lucene project. Solr is written in Java and runs as a standalone full-text search server within a servlet container such as Tomcat.</p>
<p>Like any service or component in your architecture, you’ll want to monitor it to ensure that it’s available and gather performance data to help with tuning.</p>
<p>In this post, we’ll look at how we can monitor Solr, what performance metrics we might want to gather and how we can easily achieve this with Opsview.</p>
<p><span id="more-2012"></span></p>
<div style="border: 1px solid #ccc; background-color: #f5f5f5; padding: 8px;">
<h2>Requirements</h2>
<ul>
<li>Installed version of Opsview <a title="Download Opsview" href="http://www.opsview.com/downloads">[download]</a></li>
<li>Apache Solr Custom Plugin <a title="Download Apache Solr Custom Plugin" href="https://github.com/rbramley/Opsview-solr-checks">[download]</a></li>
</ul>
</div>
<p><br /></p>
<h2>A check list for service checks</h2>
<p>Solr is built on Lucene so follows the same layout, an index contains documents that are comprised of fields. As part of the search service value add over Lucene, Solr provides a number of useful ways of obtaining health status / monitoring metrics:</p>
<ol>
<li>Health-check status using the <em>/admin/ping</em> handler</li>
<li>The admin statistics page <em>/admin/stats.jsp</em> (XML styled with XSL)</li>
<li><a href="http://wiki.apache.org/solr/SolrJmx">JMX MBeans</a></li>
</ol>
<p>The list of applicable checks could be defined by whether it is a health check or a data gathering check – but this would lead to a lot of overlap. Instead the list is divided into the checks that can be performed remotely (without an installed agent on the server) and those that are best performed locally to the Solr server.</p>
<h2>Remote (agent-less) checks</h2>
<p>What should we look for over the network?</p>
<p>Firstly we can have a host-level check which may perform a network level ping. Next we can check TCP connectivity to the servlet container port and then make an HTTP GET request to the Solr ‘front page’ and check for a known string (e.g. Welcome to Solr).</p>
<p>Now we’ve made it up to the application layer so can start to perform Solr specific checks.</p>
<p>Items to monitor may include (delete as applicable):</p>
<ol>
<li>Ping status</li>
<li>Number of docs</li>
<li>Number of queries / queries per second</li>
<li>Average response time</li>
<li>Number of updates</li>
<li>Cache hit ratios</li>
<li>Replication status</li>
<li>Synthetic queries</li>
</ol>
<h2>Agent-based checks</h2>
<p>Installing an <a title="Opsview Agents" href="http://www.opsview.com/downloads/opsview-agents">Opsview agent</a> on the Solr server means we can run additional checks over NRPE (Nagios Remote Plugin Executor). This could be operating system level checks such as memory/disk utilisation or CPU load, or the following:</p>
<ol>
<li>Java servlet container process is running</li>
<li>JMX checks e.g. heap memory or custom MBeans</li>
<li>File age</li>
<li>Log parsing for exceptions</li>
</ol>
<p>The Solr wiki describes how to configure JMX support: <a title="Configure JMX support" href="http://wiki.apache.org/solr/SolrJmx">http://wiki.apache.org/solr/SolrJmx.</a></p>
<h2>Opsview configuration</h2>
<p>For the rest of this article you&#8217;ll need to have <a title="Download Opsview" href="http://www.opsview.com/downloads">Opsview</a> installed (or the <a title="Opsview VMWare Appliance" href="http://www.opsview.com/downloads/opsview-3-vmware-virtual-appliance">Opsview VMWare appliance</a>) and have completed the <a title="Opsview Quick Start Guide" href="http://docs.opsview.com/doku.php?id=opsview3.14:quickstart">Quick Start.</a></p>
<h2>Solr-specific Plugin</h2>
<p>Install the Solr plugin at <a title="Opsview Solr Plugin" href="https://github.com/rbramley/Opsview-solr-checks">https://github.com/rbramley/Opsview-solr-checks</a> into /usr/local/nagios/libexec/</p>
<p>The check_solr plugin was developed using Perl, so that it could be contributed back to Opsview. It requires the CPAN XML::XPath module (sudo cpan -i XML::XPath).</p>
<p>The plugin includes usage instructions, check_solr -h which can also be viewed in Opsview by selecting the ‘Show Plugin Help‘ link beneath the Plugin drop down (see Figure 1). The -u option can be used to specify the URL path for multi-core set-ups.</p>
<h2>Service check setup</h2>
<p>Figure 1 gives an example of a service check configuration.</p>
<p><a href="http://labs.opsview.com/wp-content/uploads/2011/12/figure_1_with_help.png"><img class="aligncenter size-full wp-image-2013" title="figure_1_with_help" src="http://labs.opsview.com/wp-content/uploads/2011/12/figure_1_with_help.png" alt="Opsview service check configuration." width="542" height="699" /></a></p>
<p>Figure 2 shows the <em>agentless</em> service check group with plugins and their arguments.</p>
<p><a href="http://labs.opsview.com/wp-content/uploads/2011/12/solr-agentless-monitoring1.png"><img class="aligncenter size-full wp-image-2015" title="solr-agentless-monitoring" src="http://labs.opsview.com/wp-content/uploads/2011/12/solr-agentless-monitoring1.png" alt="solr agentless monitoring" width="500" height="252" /></a></p>
<h2>Host configuration</h2>
<p>Figure 3 shows a simplistic host setup with a ping check.</p>
<p><a href="http://labs.opsview.com/wp-content/uploads/2011/12/set_up_host1.png"><img class="aligncenter size-full wp-image-2017" title="set_up_host" src="http://labs.opsview.com/wp-content/uploads/2011/12/set_up_host1.png" alt="set up host" width="500" height="596" /></a></p>
<p>Figure 4 is an extract from the <strong>Monitors</strong> tab, where we select the checks we want performed for the current host.</p>
<p><a href="http://labs.opsview.com/wp-content/uploads/2011/12/monitors.png"><img class="aligncenter size-full wp-image-2018" title="monitors" src="http://labs.opsview.com/wp-content/uploads/2011/12/monitors.png" alt="monitors" width="288" height="226" /></a></p>
<h2>Viewing output</h2>
<p>The check results shown in Figure 5 are visible by navigating through the host group hierarchy.</p>
<p><a href="http://labs.opsview.com/wp-content/uploads/2011/12/viewing-output.png"><img class="aligncenter size-full wp-image-2019" title="viewing-output" src="http://labs.opsview.com/wp-content/uploads/2011/12/viewing-output.png" alt="" width="500" height="192" /></a></p>
<p><a href="http://labs.opsview.com/wp-content/uploads/2011/12/viewing-output.png"></a>If you click on the graph icon of <em>Solr Cache Hit Ratios</em> this will drill down onto the graph shown in Figure 6.</p>
<p>Clicking on the graph icon for <em>Solr Avg Response Time – standard</em> will take you to the graphs in Figure 7.</p>
<p><a href="http://labs.opsview.com/wp-content/uploads/2011/12/cache_hit_ratios.png"><img class="aligncenter size-full wp-image-2021" title="cache_hit_ratios" src="http://labs.opsview.com/wp-content/uploads/2011/12/cache_hit_ratios.png" alt="cache hit ratios" width="500" height="209" /></a><a href="http://labs.opsview.com/wp-content/uploads/2011/12/avg_req_time.png"><img class="aligncenter size-full wp-image-2022" title="avg_req_time" src="http://labs.opsview.com/wp-content/uploads/2011/12/avg_req_time.png" alt="average request time" width="500" height="449" /></a></p>
<p>If you shutdown Solr, then the check results will start to turn critical and show in red as per Figure 8.</p>
<p><a href="http://labs.opsview.com/wp-content/uploads/2011/12/post-shutdown-alert.png"><img class="aligncenter size-full wp-image-2023" title="post-shutdown-alert" src="http://labs.opsview.com/wp-content/uploads/2011/12/post-shutdown-alert.png" alt="post shoutdown alert" width="500" height="197" /></a></p>
<h2>Alternatives</h2>
<p>There are a few other plugins available for monitoring Solr from Opsview, depending on your needs:</p>
<ul>
<li><a href="http://code.google.com/p/nagios-plugins-shamil/">http://code.google.com/p/nagios-plugins-shamil</a> – provides ping, replication status and num docs</li>
<li><a href="http://code.google.com/p/solr-nagios-check">http://code.google.com/p/solr-nagios-check</a> – provides QPS, response time and num docs</li>
</ul>
<p>Also, chapter 8 of the recently published <a href="http://www.amazon.co.uk/gp/product/1849516065/ref=as_li_ss_tl?ie=UTF8&amp;tag=leanjavaengi-21&amp;linkCode=as2&amp;camp=1634&amp;creative=19450&amp;creativeASIN=1849516065">Apache Solr 3 Enterprise Search Server</a><img src="http://www.assoc-amazon.co.uk/e/ir?t=leanjavaengi-21&amp;l=as2&amp;o=2&amp;a=1849516065" border="0" alt="" width="1" height="1" /> book includes a section on Monitoring Solr Performance.</p>
<h2>Summary</h2>
<p>Using <em>check_solr</em> in conjunction with <a title="Opsview Open Source Monitoring" href="http://www.opsview.com">Opsview</a> allows you to  ensure that your Solr server is available and provides you with metrics  that can help you tune your Solr configuration.</p>
<p>This can be complemented  with additional agent-based operating system and JMX checks to give you  a full picture view.</p>
<div>
<div style="border: 1px solid #ccc; background-color: #f5f5f5; padding: 8px;">
<h3>About the Author</h3>
<p>Robin Bramley is a hands-on Technical Manager / Lead Architect at an Open Source software &amp; services company who has spent the majority of the last decade working with Java, mobile &amp; Open Source across sectors including Financial Services &amp; High Growth / start-ups. You can view Robin&#8217;s personal blog at <a href="http://leanjavaengineering.wordpress.com/">www.leanjavaengineering.com</a></p>
<h4>Legal Disclaimer</h4>
<p>This blog post is contributed by a member of the Opsview community.  The Opsview project and Opsera Ltd accept no responsibility for the  accuracy of its content and are not liable for any direct or indirect  damages caused by its use.</p>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://labs.opsview.com/2011/12/monitoring-apache-solr-with-opsview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>5 Steps to Monitor your Network with Opsview Parenting</title>
		<link>http://labs.opsview.com/2011/12/monitor-your-network-with-opsview-parenting/</link>
		<comments>http://labs.opsview.com/2011/12/monitor-your-network-with-opsview-parenting/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 14:07:27 +0000</pubDate>
		<dc:creator>brian.king</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[DevOps]]></category>
		<category><![CDATA[Opsview]]></category>
		<category><![CDATA[System Management]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[layer 3]]></category>
		<category><![CDATA[network monitoring]]></category>
		<category><![CDATA[Traceroute]]></category>
		<category><![CDATA[VLAN]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://labs.opsview.com/?p=1876</guid>
		<description><![CDATA[
			
				
			
		Parenting is one of the many powerful network monitoring tools that can be deployed in Opsview. However parenting is quite often misunderstood or deployed incorrectly causing the intended goal (less notifications when detecting network failures) to be missed and flooding mailboxes with undesirable e-mail alerts. This blog post outlines the steps involved in setting up [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flabs.opsview.com%2F2011%2F12%2Fmonitor-your-network-with-opsview-parenting%2F">
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flabs.opsview.com%2F2011%2F12%2Fmonitor-your-network-with-opsview-parenting%2F&amp;style=normal&amp;b=2" height="61" width="50" />
			</a>
		</div><p><a href="http://labs.opsview.com/wp-content/uploads/2011/12/network.png"><img class="alignleft size-thumbnail wp-image-1892" title="Opsview network monitor" src="http://labs.opsview.com/wp-content/uploads/2011/12/network-150x150.png" alt="Monitor your network with Opsview" width="150" height="150" /></a>Parenting is one of the many powerful <a href="http://www.opsview.com/learn/network-monitoring">network monitoring</a> tools that can be deployed in Opsview. However parenting is quite often misunderstood or deployed incorrectly causing the intended goal <strong>(less notifications when detecting network failures)</strong> to be missed and flooding mailboxes with undesirable e-mail alerts. This blog post outlines the steps involved in setting up Basic Parenting in Opsview.</p>
<p><span id="more-1876"></span></p>
<p>Before successfully deploying parenting it&#8217;s important to understand how it works:</p>
<ol>
<li>Parenting is based on host states</li>
<li>It determines if a host is DOWN or UNREACHABLE</li>
<li>When assigning multiple parents all parents need to be DOWN for the host to be UNREACHABLE</li>
<li>Parenting can not be circular</li>
</ol>
<div>
<p>Please note that UNREACHABLE notifications are on by default so check the settings in your notification profile.</p>
<h2>Determining a host state</h2>
<p>One additional point that has to be made is that host states are  determined using layer 3 IP information (for instance by running a  check_icmp –H 1.2.3.4) as described by the OSI model.</p>
<p>This is important as modern network technologies like VLANs, VPNs,  HSRP and VRRP are used to make a network more robust and fault-tolerant,  unfortunately they also “hide” information needed to setup parenting.</p>
<p>Later on we will discuss these technologies and their impact on parenting.</p>
<h2>Circular parent-child relationships</h2>
<p>A circular parent-child relationship is formed when we define hostA  to have deviceX as it’s parent and define deviceX to have hostA as its  parent.</p>
<p>The parenting logic will detect this and generate an error as a  circular parent-child relationship should not exist (actually they do  exist and we will discuss them in another blog post).</p>
<h2>Types of parenting</h2>
<p>In this article we will be looking at Basic Parenting, focusing on  layer 3 hops and Single Point Of Failures (SPOFs) and how we can use  them for parenting.</p>
<p>Note that while Basic Parenting is relatively easy to implement and  will greatly help in detecting network failures, it will not be as  precise as when you implement Advanced Parenting (which will be covered  in a later blog post).</p>
<h2>Network technologies</h2>
<p><a href="http://labs.opsview.com/wp-content/uploads/2011/12/Jigsaw_piece_150.png"><img class="alignright" title="Jigsaw_piece_150" src="http://labs.opsview.com/wp-content/uploads/2011/12/Jigsaw_piece_150-150x150.png" alt="Network Technologies" width="150" height="150" /></a> To be able to setup parenting we need to understand some of the network technologies mentioned earlier.</p>
<p>Below is a simple explanation of the technologies and the parts they  play in parenting, plenty of more detailed information on these can be  found on the internet.</p>
<p>We also look at one of the tools at our disposal to help determine the hops we cross to reach any given host in our network.</p>
<h2>Traceroute</h2>
<p>Traceroute can be used to determine the (layer3) hops between any two hosts on a network.</p>
<p>When using traceroute it’s best to run it from the Opsview  slave/master (this will give a consistent result). When you use slave  clusters you should consider how you cluster them (globally or locally)  so all the slaves in the cluster have the same path to a given host.</p>
<p>Later on we will discuss how to use the results from a traceroute to create a host-parent table.</p>
<h2>VLANs</h2>
<p>A VLAN (or Virtual LAN) is used to create logical ip-subnets spanning various network devices.<strong> </strong> So if Host A and Host B are in the same VLAN, any physical hop between  them becomes transparent and a traceroute between them will show only  one hop (the destination).</p>
<p>Again this is a simplistic representation of VLAN’s and should hold  true in most situations (for instance there are extensions to VLANs like  private VLANs etc etc).</p>
<h2>VPN’s</h2>
<p>VPN’s are commonly used to connect remote servers to a local network  (over the Internet for example). However from a network perspective the  host is no longer at a distant location but directly connected to the  network (so any hops on the Internet become transparent).</p>
<p>VPN’s will be discussed in the Advanced Parenting blog post so we can go into this in more detail.</p>
<h2>HSRP/VRRP</h2>
<p>HSRP and VRRP are redundancy technologies used to make a network more  robust on layer 3. The most common deployment is used to make a network  gateway redundant.</p>
<p>In those cases the IP address you configure on your host as the  gateway is shared between two multi-layer switches (or routers) so when  one fails the other takes over and traffic keeps flowing in your  network.</p>
<p>(Note that generally a gateway is only used when traffic is destined for another network).</p>
<p>For example traffic from 192.168.1.200/24 to 192.168.1.100/24 will  stay on the same network (with a VLAN it might cross multiple devices  but these are transparent).</p>
<p>Traffic from 192.168.1.200/24 to 192.168.21.100/24 will cross the  gateway as the source and destination are on two separate networks.</p>
<p>Below is an example of a modern network.</p>
<p style="text-align: center;"><a href="http://labs.opsview.com/wp-content/uploads/2011/12/complex-network11.png"><img class="aligncenter" title="Example of a modern network" src="http://labs.opsview.com/wp-content/uploads/2011/12/complex-network11.png" alt="Monitoring a modern network" width="500" height="347" /></a></p>
<p>In this example we have host A and host C which are connected only  once to our network and host B which is multi-homed (for example running  bonding or nic-teaming).</p>
<p>All the switches (except switchE) and the core switches are  cross-connected to provide redundancy and fault-tolerance in our network  (full-meshed using VLAN’s and HSRP/VRRP).</p>
<p>If all our hosts reside on the same ip-subnet (or VLAN) our network  will be completely transparent and our traceroute will show only one hop  (the destination host).</p>
<pre>opsview-slave nagios $ traceroute hostA
traceroute to hostA (192.168.1.2), 30 hops max, 40 byte packets
 1  hostA (192.168.1.2)  1.594 ms  0.590 ms  0.362 ms</pre>
<p>Assuming our Opsview host is on a different ip-subnet our network will have one (or more) additional hops in our traceroute.</p>
<pre>opsview-slave nagios $ traceroute hostA
traceroute to hostA (192.168.1.2), 30 hops max, 40 byte packets
 1  coreA (192.168.1.1)  0.747 ms  0.582 ms  0.518 ms
 2  hostA (192.168.1.2)  1.594 ms  0.590 ms  0.362 ms</pre>
<h2>Setting up Basic Parenting</h2>
<p>When setting up Basic Parenting we first need to determine our SPOFs and hops.</p>
<p>Note that a SPOF is a single point of failure so any host/device  which has a single connection to our network has to be considered to  have a SPOF.</p>
<p>Also note that Host B and Opsview are redundantly connected to our  network and don’t have a SPOF (in Advanced Parenting we will be covering  multi-homed hosts).</p>
<h2>Step 1:</h2>
<p><strong>Review your network.</strong></p>
<p>First off, review your network (if needed ask your network admins to  help you out) and make traceroutes to each host so we can create a  host-parent table.</p>
<p>After the review we have found that Core (consisting of a HSRP  ip-gateway running on either Core A or Core B) is a hop and switchC,  switchD and switchE are SPOFs.</p>
<p>Note that Core is considered a HOP and not a SPOF (although it looks  like a single point of failure) this is because it uses HSRP or VRRP for  redundancy over two nodes (Core A and Core B).</p>
<p>Using this information we can create our host-parent table.</p>
<p>In this table we use various pieces of information to determine a given hosts parent:</p>
<ol>
<li>Looking at Host A we know it is connected to SPOF switchC which  makes switchC the parent of Host A (Id. 1)</li>
<li>From our traceroute we  know we only traverse Core when going from Opsview to Host A making  Opsview the parent of Core (Id. 4)</li>
<li>From our network admin we know  switchC is connected to Core (Id. 5)</li>
</ol>
<p>This gives us an entire path from Opsview through Core through switchC to Host A.</p>
<p>Host-parent table example for our network.</p>
<table border="0" width="500">
<tbody>
<tr>
<td width="63">Id</td>
<td width="120">Host</td>
<td width="131">Parent</td>
<td width="168">Note</td>
</tr>
<tr>
<td>1</td>
<td>Host A</td>
<td>switchC</td>
<td>See id 5</td>
</tr>
<tr>
<td>2</td>
<td>Host B</td>
<td>Core</td>
<td>See id 4</td>
</tr>
<tr>
<td>3</td>
<td>Host C</td>
<td>switchE</td>
<td>See id 7</td>
</tr>
<tr>
<td>4</td>
<td>Core</td>
<td>Opsview</td>
<td></td>
</tr>
<tr>
<td>5</td>
<td>switchC</td>
<td>Core</td>
<td>See id 4</td>
</tr>
<tr>
<td>6</td>
<td>switchD</td>
<td>Core</td>
<td>See id 4</td>
</tr>
<tr>
<td>7</td>
<td>switchE</td>
<td>Core</td>
<td>See id 6</td>
</tr>
</tbody>
</table>
<p>Please note that Host B is connected to switchC and switchD (which we  will be monitoring as they are SPOFs) and so it is possible to  configure Host B with two parents (switchC and switchD) instead of using  Core.</p>
<p>In Advanced parenting we will be looking at multiple parents, for now we configure Host B as having just the Core as parent.</p>
<p>Here is our network but now with only our SPOFs and hops and all transparent devices removed.</p>
<p style="text-align: center;"><a href="http://labs.opsview.com/wp-content/uploads/2011/12/parenting-SPOF-HOP.png"><img class="aligncenter" title="parenting SPOF HOP" src="http://labs.opsview.com/wp-content/uploads/2011/12/parenting-SPOF-HOP.png" alt="Parenting SPOF HOP" width="500" height="347" /></a></p>
<h2>Step 2:</h2>
<p><strong>Create your SPOFs and Hops in Opsview </strong></p>
<p>(ask your network admin for the host-addresses).</p>
<p>Start by adding the devices which have Opsview as it’s parent (Core  in our case) then add the devices which have Core as their parent.</p>
<p>This way you can immediately configure the devices’ parent based on our host-parent table.</p>
<p>Make sure you assign at least one service-check to the devices.</p>
<h2>Step 3:</h2>
<p><strong>Edit your hosts and add the parent based on the host-parent table.</strong></p>
<p style="text-align: center;"><a href="http://labs.opsview.com/wp-content/uploads/2011/12/edit-host-parent.png"><img class="aligncenter" title="edit host parent" src="http://labs.opsview.com/wp-content/uploads/2011/12/edit-host-parent.png" alt="Edit host parent in Opsview" width="500" height="250" /></a></p>
<h2>Step 4:</h2>
<p><strong>Check your notification settings for DOWN and UNREACHABLE notifications.</strong></p>
<p style="text-align: center;"><a href="http://labs.opsview.com/wp-content/uploads/2011/12/notification-profile-DOWN-UNREACHABLE.png"><img class="aligncenter" title="notification profile DOWN UNREACHABLE" src="http://labs.opsview.com/wp-content/uploads/2011/12/notification-profile-DOWN-UNREACHABLE.png" alt="notification profile down unreachable" width="500" height="127" /></a></p>
<h2>Step 5:</h2>
<p><strong>Reload your Opsview. </strong></p>
<p>If you accidently created a circular parent-child relationship a reload will fail with the following error:.</p>
<pre>Checking for circular paths between hosts...

Error: The host 'CoreA' is part of a circular parent/child chain!
Error: The host 'HostA' is part of a circular parent/child chain!
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...</pre>
<p>If this happens review your configuration and verify it against your host-parent table.</p>
<p>Look out for the post on Advanced Parenting where we will be building further on our basic parenting setup, including:</p>
</div>
<ol>
<li>Slave clusters and parenting</li>
<li>Multi-homed hosts and multiple parents</li>
<li>Circular parent child relationships</li>
<li>Common pitfalls for parenting</li>
<li>VPNs</li>
</ol>
<div>
<div style="border: 1px solid #ccc; background-color: #f5f5f5; padding: 8px;">
<h3>About the Author</h3>
<p>Alan Wijntje is responsible for maintaining and improving all forms of monitoring at <a href="http://www.ziggo.nl/">Ziggo</a>,  one of the leading Managed Service Providers in the Netherlands. An Opsview expert and open source enthusiast, Alan enjoys finding,  designing and implementing new and innovative ways of monitoring complex  systems and applications.</p>
<h4>Legal Disclaimer</h4>
<p>This blog post is contributed by a member of the Opsview community.  The Opsview project and Opsera Ltd accept no responsibility for the  accuracy of its content and are not liable for any direct or indirect  damages caused by its use.</p>
</div>
</div>
<p>Download <a href="http://www.opsview.com/downloads/download-opsview-community">Opsview Community edition</a> or try out a demo of <a href="http://www.opsview.com/products/online-demo">Opsview Enterprise edition.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://labs.opsview.com/2011/12/monitor-your-network-with-opsview-parenting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gaining an Edge with Opsview Open Source Monitoring</title>
		<link>http://labs.opsview.com/2011/11/gaining-an-edge-with-opsview-open-source-monitoring/</link>
		<comments>http://labs.opsview.com/2011/11/gaining-an-edge-with-opsview-open-source-monitoring/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 13:50:59 +0000</pubDate>
		<dc:creator>brian.king</dc:creator>
				<category><![CDATA[Catalyst]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[Opsview]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[IT availability]]></category>
		<category><![CDATA[IT management tools]]></category>
		<category><![CDATA[IT performance]]></category>
		<category><![CDATA[nagios core]]></category>
		<category><![CDATA[nagios plug-ins]]></category>
		<category><![CDATA[open source monitoring]]></category>
		<category><![CDATA[Perl DBI]]></category>
		<category><![CDATA[SLAs]]></category>

		<guid isPermaLink="false">http://labs.opsview.com/?p=1815</guid>
		<description><![CDATA[
			
				
			
		Not all open source IT monitoring systems are made equal. Just as IT infrastructures vary according to the size, location and type of business, so the systems that monitor and report on their performance must be flexible, easy to scale and configure to meet the demands of an ever changing business.
Opsview gives you the edge [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flabs.opsview.com%2F2011%2F11%2Fgaining-an-edge-with-opsview-open-source-monitoring%2F">
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flabs.opsview.com%2F2011%2F11%2Fgaining-an-edge-with-opsview-open-source-monitoring%2F&amp;style=normal&amp;b=2" height="61" width="50" />
			</a>
		</div><p><a href="http://labs.opsview.com/wp-content/uploads/2011/09/hyper-scalability_2.jpg"><img class="alignleft size-thumbnail wp-image-1012" title="hyper scalability_2" src="http://labs.opsview.com/wp-content/uploads/2011/09/hyper-scalability_2-150x150.jpg" alt="" width="150" height="150" /></a>Not all <a href="http://www.opsview.com/learn/open-source-monitoring">open source IT monitoring</a> systems are made equal. Just as IT infrastructures vary according to the size, location and type of business, so the systems that monitor and report on their performance must be flexible, easy to scale and configure to meet the demands of an ever changing business.</p>
<p>Opsview gives you the edge with open source monitoring by offering an easy to install and configure system that delivers enhanced functionality in a highly scalable, commercially supported system.</p>
<p>If you’re replacing your existing monitoring solution, or evaluating systems for implementation, here are 10 reasons why you should consider Opsview:</p>
<p><span id="more-1815"></span></p>
<h2>1.	Flexibility<a href="http://labs.opsview.com/wp-content/uploads/2011/09/alert120px.png"><img class="alignright size-full wp-image-1125" title="alert120px" src="http://labs.opsview.com/wp-content/uploads/2011/09/alert120px.png" alt="" width="120" height="120" /></a></h2>
<p>Opsview’s open source monitoring system is designed with ease of use and flexibility at its heart. Based on <a href="http://www.opsview.com/company/legal/trademarks#NagiosTrademarkStatement">Nagios® Core</a>, the installation, configuration and upgrade to Opsview doesn’t require highly specialised knowledge or additional investment into expensive specialist hardware or integration skills. It is essentially an enterprise IT window onto performance and availability, watching hosts and services, alerting users to problems or issues and allowing them to track their resolution.</p>
<h2>2.	A Single Tool for Monitoring all Environments</h2>
<p>IT environments are becoming increasingly diverse with a mix of physical, virtual and cloud environments as IT departments continually strive to do more with less. Using a mix of proprietary IT management tools to monitor these environments causes unnecessary complexity which could lead to slower fault resolution times and hamper overall monitoring effectiveness.  Opsview delivers a ‘single pane of glass’ view across this mix of layers, hosts and components helping ensure IT SLAs are met and keeping costs down by removing the need for multiple software licences or subscriptions.</p>
<h2>3.	Direct Access to Source Code</h2>
<p>As an <a title="Opsview Community" href="http://www.opsview.com/community">open source developed suite</a>, and unlike more expensive proprietary alternatives, Opsview allows end users direct access to the<a title="Opsview Community" href="http://www.opsview.com/community"> </a>source code, enabling IT departments to make changes to the root system. This enables a business to optimize individual IT monitoring requirements, for instance, tweaking status views so that they can be graphically represented in a way that delivers meaningful, at-a-glance information depending on the level of detail required.</p>
<p><a href="http://labs.opsview.com/wp-content/uploads/2011/11/spanner1.png"><img class="alignleft size-full wp-image-1830" title="spanner" src="http://labs.opsview.com/wp-content/uploads/2011/11/spanner1.png" alt="opsview software configuration" width="120" height="120" /></a>However, considering how much pressure IT budgets are under nowadays, most enterprises don’t want to use their own in-house software engineering staff to tinker with the source code of third-party applications. So Opsview Enterprise edition includes <a href="http://www.opsview.com/products/opsview-enterprise">software maintenance</a> to ensure you receive critical software fixes quickly and with minimum disruption to business.</p>
<h2>4.	Strength in Numbers</h2>
<p>Where proprietary software development is closed to all but the biggest enterprise customers, the Opsview community lies at the heart of our development model, supporting over 15,000 users. Their feedback is invaluable when developing and refining new features that continuously improve the suite. The variety of different environments monitored by the community enables the identification of the widest range of problems possible before any code is certified for inclusion in <a href="http://www.opsview.com/products/opsview-enterprise">Opsview Enterprise edition</a>.</p>
<h2>5. Open Platform</h2>
<p>Opsview is an open source application that encourages tight, two-way  integration with other systems such as <a title="Opsview Service Desk Connector" href="http://www.opsview.com/products/enterprise-modules/service-desk-connector">ticketing and help-desk consoles.</a> In doing so, Opsview offers a cost-effective way to upgrade your core  monitoring and performance management capabilities with minimal  disruption to existing procedures and processes.</p>
<h2>6.	Easy Migration from Other Systems<a href="http://labs.opsview.com/wp-content/uploads/2011/11/plug.png"><img class="alignright size-thumbnail wp-image-1823" title="plug" src="http://labs.opsview.com/wp-content/uploads/2011/11/plug-150x150.png" alt="opsview customization" width="150" height="150" /></a></h2>
<p>Another key consideration for the value of any IT monitoring system is not just only how easy it is to use, but also how simple it is to take on in the first place. That’s why Opsview makes migration easy. The use of standard frameworks such as Catalyst and Perl DBI make development straightforward and developer documentation supported by the strong open source community is freely available online. Opsview’s integration and compatibility characteristics mean you don’t have to replace existing monitoring agents and that it will work with existing plug-ins.  That way you don’t lose any of the value already invested in existing monitoring capabilities – you enhance and strengthen them.</p>
<p>Opsview also provides APIs for system configuration, monitoring data re-use, and the automatic population and update of host information. This is particularly useful for integrating Opsview Enterprise edition with other <a title="Integrates with IT Management Tools" href="http://www.opsview.com/products/enterprise-modules/service-desk-connector">IT management tools.</a></p>
<h2>7.	Lower Costs</h2>
<p>The open nature of Opsview locks down cost because your IT department is not supporting unique versions, nor is an army of consultants required to just carry out an upgrade. It also means display of system status information on everything from a company intranet or website, to the publishing of performance and availability metrics on a customer portal is possible from a single monitoring solution rather than multiple point solutions generating siloed reports and metrics.</p>
<h2><a href="http://labs.opsview.com/wp-content/uploads/2011/11/lock.png"><img class="alignleft size-thumbnail wp-image-1821" title="lock" src="http://labs.opsview.com/wp-content/uploads/2011/11/lock-150x150.png" alt="no vendor lock in" width="150" height="150" /></a>8.	No Vendor Lock-In</h2>
<p>As well as on-going licence fees, using proprietary software often means being ‘locked-in’ with the vendor with no option to customize the software to fit your needs. Opsview gives you the flexibility and control of a home-grown system, perfectly tailored to your needs, but with <a title="Opsview Support" href="http://www.opsview.com/services/technical-support">commercial support, </a><a title="Opsview Development Roadmap" href="http://www.opsview.com/community/developer-zone/roadmap">development roadmap</a> and <a title="Opsview Community" href="http://www.opsview.com/community/forum">community feedback</a> platform.</p>
<h2>9.	Field Tested for Monitoring Complex Infrastructures</h2>
<p>Opsview is used in all types of <a href="http://www.opsview.com/products/industry-solutions">monitoring environments</a> because it’s easy to install and configure and delivers an open platform with a large, active community of contributors and enthusiasts. However, mission critical business applications and services demand high performance and availability. This is where Opsview Enterprise edition comes in to its own.  From <a title="Opsview Customer Overview" href="http://www.opsview.com/products/customer-overview">Airports</a> to <a title="Opsview Customer Overview" href="http://www.opsview.com/products/customer-overview">Banks</a>, <a title="Opsview Customer Overview" href="http://www.opsview.com/products/customer-overview">Service Providers</a> and even the <a title="Opsview Customer Overview" href="http://www.opsview.com/products/customer-overview">Military</a>, Opsview Enterprise stands its ground in the most rigorous monitoring environments.  With integrated redundancy, high availability and scalable architecture, Opsview Enterprise edition is designed to help organisations toward uninterrupted business operations.</p>
<h2>10.	Fair Pricing on Commercial Products</h2>
<p>Unlike proprietary solutions, the <a title="Opsview Subscription Pricing" href="http://www.opsview.com/products/pricing">commercial version</a> of Opsview offers entry points for all types and sizes of business. SME and large enterprise IT estates can get professionally supported, total monitoring coverage for disparate systems without having to part with hundreds of thousands a year for the privilege.</p>
<p>Discover Opsview today – download <a href="http://www.opsview.com/downloads">Opsview Community edition</a> or view a live demo of <a href="http://www.opsview.com/products/online-demo">Opsview Enterprise edition</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.opsview.com/2011/11/gaining-an-edge-with-opsview-open-source-monitoring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Post Status Messages from Opsview to your Twitter Account</title>
		<link>http://labs.opsview.com/2011/11/how-to-post-status-messages-from-opsview-to-your-twitter-account/</link>
		<comments>http://labs.opsview.com/2011/11/how-to-post-status-messages-from-opsview-to-your-twitter-account/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 13:37:16 +0000</pubDate>
		<dc:creator>brian.king</dc:creator>
				<category><![CDATA[DevOps]]></category>
		<category><![CDATA[Opsview]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[notifications]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[status alerts]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://labs.opsview.com/?p=1701</guid>
		<description><![CDATA[
			
				
			
		
Opsview gives you lots of standard options for receiving status notifications, but with a bit of custom scripting you can also get status messages from Opsview and post them to a Twitter account. This could be useful if you want to keep all your status messages in one place with a timeline. Plus you can [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flabs.opsview.com%2F2011%2F11%2Fhow-to-post-status-messages-from-opsview-to-your-twitter-account%2F">
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flabs.opsview.com%2F2011%2F11%2Fhow-to-post-status-messages-from-opsview-to-your-twitter-account%2F&amp;style=normal&amp;b=2" height="61" width="50" />
			</a>
		</div><p><a title="@Opsview" href="http://labs.opsview.com/wp-content/uploads/2011/11/Twitter-Logo-300x293.jpg"><img class="alignleft size-thumbnail wp-image-1719" title="Follow @Opsview on Twitter" src="http://labs.opsview.com/wp-content/uploads/2011/11/Twitter-Logo-300x293-150x150.jpg" alt="How to Get Twitter Notifications in Opsview" width="150" height="150" /></a></p>
<p><a href="http://www.opsview.com">Opsview </a>gives you lots of standard options for receiving status notifications, but with a bit of custom scripting you can also get status messages from Opsview and post them to a Twitter account. This could be useful if you want to keep all your status messages in one place with a timeline. Plus you can also set up an account for other members of your team to follow so they can also see the updates. However it&#8217;s probably best that the Twitter account is kept within your organisation unless you want the world to see the status of your servers!</p>
<p>This article tells you how to configure Opsview to send messages to Twitter. For configuring this you need to have access to the shell of your Opsview server.</p>
<p><span id="more-1701"></span></p>
<p>To access Twitter from Opsview, you&#8217;ll need to install <a href="https://github.com/tweepy/tweepy">Tweepy</a>. Tweepy is a Python library for accessing the Twitter API. It requires Python 2.5 or later. If you need to install Python 2.6 you can follow the instructions on this <a href="http://ben.timby.com/?p=123">blog</a>.</p>
<pre># wget http://dagobah.ftphosting.net/yum/smartfile.repo -O /etc/yum.repos.d/smartfile.repo</pre>
<p>Then you can use YUM to install python26 package:</p>
<pre># yum install python26 python26-distribute</pre>
<p>To get a list of installed packages, do:</p>
<pre># yum list *python26* | grep -i installed</pre>
<pre>Installed Packages
python26.x86_64             2.6.5-6.el5   installed
python26-distribute.noarch  0.6.10-4.el5  installed
python26-libs.x86_64        2.6.5-6.el5   installed</pre>
<p>Install Tweepy</p>
<pre>/usr/bin/easy_install-2.6 tweepy</pre>
<p>Next you&#8217;ll need to authenticate Twitter from the command line. This blog tells you <a href="http://talkfast.org/2010/05/31/twitter-from-the-command-line-in-python-using-oauth">how.</a></p>
<p>At this point you&#8217;ll need to create a new Twitter account which will be used to post the notifications.</p>
<p>Make sure you enable <strong>Tweet Privacy</strong> under <strong>Settings</strong>, in the Twitter account, so that posts are not made public (unless you want them to be!)</p>
<p>After creating the Twitter account, you&#8217;ll need to <a href="http://talkfast.org/2010/05/31/twitter-from-the-command-line-in-python-using-oauth">register a new client app with Twitter.</a></p>
<p>Select &#8220;Connect the app to your Twitter account&#8221; with a minor change in the first line.. write <strong>python26 </strong>instead of python</p>
<pre>#!/usr/bin/env python26

Import tweepy

CONSUMER_KEY = 'paste your Consumer Key here'
CONSUMER_SECRET = 'paste your Consumer Secret here'
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
auth_url = auth.get_authorization_url()
print 'Please authorize: ' + auth_url
verifier = raw_input('PIN: ').strip()
auth.get_access_token(verifier)
print "ACCESS_KEY = '%s'" % auth.access_token.key
print "ACCESS_SECRET = '%s'" % auth.access_token.secret</pre>
<p>Again, in  &#8220;Create the command line script&#8221;, change to <strong>python26</strong>. Don&#8217;t forget to add your own keys.</p>
<pre>#!/usr/bin/env python26

import sys
import tweepy

CONSUMER_KEY = 'paste your Consumer Key here'
CONSUMER_SECRET = 'paste your Consumer Secret here'
ACCESS_KEY = 'paste your Access Key here'
ACCESS_SECRET = 'paste your Access Secret here'
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
auth.set_access_token(ACCESS_KEY, ACCESS_SECRET)
api = tweepy.API(auth)
api.update_status(sys.argv[1])</pre>
<p>Then &#8220;Send a test tweet from the command line&#8221; and if the test is successful, do the following:</p>
<pre>1.	Move the script to /usr/local/nagios/libexec/notifications/.</pre>
<p>(call the script &#8216;connect_twitter&#8217;, hence script is at /usr/local/nagios/libexec/notifications/connect_twitter)</p>
<pre>2.	chown nagios:nagios /usr/local/nagios/libexec/notifications/connect_twitter
3.	chmod +x /usr/local/nagios/libexec/notifications/connect_twitter</pre>
<p>Create another script to be used by Opsview:</p>
<pre>/usr/local/nagios/libexec/notifications/notify-by-twitter</pre>
<p>The script:</p>
<pre>dt=`date '+%H:%M %d%b%y'`
if [ -n "$NAGIOS_SERVICEDESC" ]
then
msg=`echo @$NAGIOS__CONTACTTWITTERID Time:$dt. $NAGIOS_SERVICEDESC @ $NAGIOS_HOSTNAME,$NAGIOS_HOSTADDRESS is $NAGIOS_SERVICESTATE. $NAGIOS_SERVICEOUTPUT | cut -c 0-140`
/usr/local/nagios/libexec/notifications/connect_twitter "$msg"
unset msg
else
msg=`echo @$NAGIOS__CONTACTTWITTERID Time:$dt. $NAGIOS_HOSTNAME,$NAGIOS_HOSTADDRESS is $NAGIOS_HOSTSTATE. $NAGIOS_HOSTOUTPUT| cut -c 0-140`
/usr/local/nagios/libexec/notifications/connect_twitter "$msg"
unset msg
fi</pre>
<p>Again,</p>
<pre>chown nagios:nagios /usr/local/nagios/libexec/notifications/notify-by-twitter
chmod +x /usr/local/nagios/libexec/notifications/notify-by-twitter</pre>
<p>Log in to Opsview as a user with admin privileges.</p>
<p>Go to <strong>Advanced</strong> then <strong>Notification Methods</strong> from the drop down menu.</p>
<p>On the top right, click <strong>Actions</strong> and then <strong>Create new Notification Method</strong> as following: <a href="http://labs.opsview.com/wp-content/uploads/2011/11/twitter-notify1.png"> </a></p>
<p style="text-align: center;"><a href="http://labs.opsview.com/wp-content/uploads/2011/11/twitter-notify2.jpg"><img class="aligncenter size-full wp-image-1760" title="Create new notification method" src="http://labs.opsview.com/wp-content/uploads/2011/11/twitter-notify2.jpg" alt="Display Opsview Status in Twitter" width="500" height="155" /></a></p>
<p>Next, go to <strong>Configuration</strong> on the Opsview Menu bar, then <strong>Contacts</strong>. Click on the contact you want to set Twitter alerts for. Click the <strong>Notifications</strong> button. Add your Twitter ID (this ID will receive the Tweets).</p>
<p style="text-align: center;"><a href="http://labs.opsview.com/wp-content/uploads/2011/11/twitter-profile2.jpg"><img class="aligncenter size-full wp-image-1752" title="Configure contacts" src="http://labs.opsview.com/wp-content/uploads/2011/11/twitter-profile2.jpg" alt="Display Opsview Status on Twitter" width="500" height="386" /></a></p>
<p>Click on <strong>Submit</strong> and edit <strong>Notification Profiles</strong>.</p>
<p>Click <strong>Actions</strong>, and create new <strong>Notification Profile</strong> for user.</p>
<p style="text-align: center;"><a href="http://labs.opsview.com/wp-content/uploads/2011/11/twitter-profile.jpg"></a><a href="http://labs.opsview.com/wp-content/uploads/2011/11/twitter-notify31.jpg"><img class="aligncenter size-full wp-image-1751" title="New notification profile" src="http://labs.opsview.com/wp-content/uploads/2011/11/twitter-notify31.jpg" alt="Display Opsview Status on Twitter" width="500" height="387" /></a></p>
<p>Create the profile and submit changes.</p>
<p>Reload your configuration (click on <strong>Configuration Status</strong>, top right, then <strong>Reload Configuration</strong>).</p>
<p>Reboot one of your servers or stop a service which is added in Opsview. Note that Twitter allows 250 direct messages per day, do not cross this limit as tweets won&#8217;t come in after you exceed this number.</p>
<p>The Tweets should now start coming in!</p>
<div style="border: 1px solid #ccc; background-color: #f5f5f5; padding: 8px;">
<h3>About the Author</h3>
<p>Shibashish Satpathy is an Opsview Community user based in Mumbai, India. Shib works in IT Operations and enjoys photography, travelling and working with Linux!</p>
<h4>Legal Disclaimer</h4>
<p>This blog post is contributed by a member of the Opsview community. The Opsview project and Opsera Ltd accept no responsibility for the accuracy of its content and are not liable for any direct or indirect damages caused by its use.</p>
</div>
<p>Try this out for yourself by downloading <a href="http://www.opsview.com/downloads/opsview-3-vmware-virtual-appliance">Opsview Community edition</a> and get our latest tips and updates by following us on <a href="http://www.twitter.com/opsview">Twitter</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.opsview.com/2011/11/how-to-post-status-messages-from-opsview-to-your-twitter-account/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>10 Steps to Moving an Opsview Master Server</title>
		<link>http://labs.opsview.com/2011/11/10-steps-to-moving-an-opsview-master-server/</link>
		<comments>http://labs.opsview.com/2011/11/10-steps-to-moving-an-opsview-master-server/#comments</comments>
		<pubDate>Mon, 14 Nov 2011 12:24:53 +0000</pubDate>
		<dc:creator>brian.king</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[DevOps]]></category>
		<category><![CDATA[Opsview]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[Install Opsview]]></category>
		<category><![CDATA[IT monitoring]]></category>
		<category><![CDATA[master server]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://labs.opsview.com/?p=1643</guid>
		<description><![CDATA[
			
				
			
		Uprooting the Opsview Master server is probably last on every administrator’s to-do list. But it’s not a perfect world and extenuating circumstances may require the master to be positioned elsewhere. 
Here are 10 steps to move an Opsview master server and limit downtime during the relocation of your IT monitoring system. 

Keep in mind in [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flabs.opsview.com%2F2011%2F11%2F10-steps-to-moving-an-opsview-master-server%2F">
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flabs.opsview.com%2F2011%2F11%2F10-steps-to-moving-an-opsview-master-server%2F&amp;style=normal&amp;b=2" height="61" width="50" />
			</a>
		</div><p><a href="http://labs.opsview.com/wp-content/uploads/2011/11/fork-lift.png"><img src="http://labs.opsview.com/wp-content/uploads/2011/11/fork-lift-150x150.png" alt="Moving an Opsview Master Server" title="fork lift" width="150" height="150" class="alignleft size-thumbnail wp-image-1685" /></a>Uprooting the Opsview Master server is probably last on every administrator’s to-do list. But it’s not a perfect world and extenuating circumstances may require the master to be positioned elsewhere. </p>
<p>Here are 10 steps to move an Opsview master server and limit downtime during the relocation of your IT monitoring system. </p>
<p><span id="more-1643"></span></p>
<p>Keep in mind in this scenario we have the luxury of moving the server while maintaining the same architecture and OS version, so we have the ability to copy files from the old server to the new server. We are not restoring the master server. (check out Opsview documentation on <a href="http://docs.opsview.com/doku.php?id=opsview-community:backups">backups and restores</a> to find out which databases and files are backed up by a nightly cron job).</p>
<p>The process can be broken down into three sections: components, configuration, and communication.</p>
<h2>Components</H2>
<strong>(For this section, stop all Opsview processes on the master and all slaves></strong></p>
<p>1.	On the new server, follow the documentation to <a href="http://docs.opsview.com/doku.php?id=opsview3.4:prereqs">install Opsview </a>for your Linux distribution. Also install MySQL and Apache in the same fashion as your original server, whether it is with a package manager or custom compile.</p>
<p>2.	Opsview does daily backups that can be used for a restore. In this case, we are doing a migration so we can manually copy all the data required. We will treat Opsview like any other web application and rsync the entire <strong>/usr/local/nagios</strong> directory to the new server and do a mysqldump of all MySQL databases, capturing odw, opsview, reports, runtime, and the database called mysql with all users and their permissions.</p>
<pre>nagios@< oldserver >$  rsync –arolptv /usr/local/nagios/ <newserver>:/usr/local/nagios/</pre>
<pre>root@< oldserver >#  mysqldump –-routines –u’dbuser’ -p’dbpass’ –-all-databases > /tmp/alldbs.dmp</pre>
<p>3.	Copy and import the MySQL databases on the new server. Also, verify the nagios user has the correct (and recursive) permissions on /usr/local/nagios.</p>
<p>4.	Time is crucial between the master and slave servers and you will get an error if the time is only seconds apart. Be sure all slaves and the master server are using the same time server and they are synced before turning on Opsview for the first time.</p>
<h2>Configuration </h2>
<p><strong>(For this section, don’t start up Opsview yet)</strong></p>
<p>5.	On the slave servers, the master server is listed in <strong>/usr/local/nagios/etc/opsview-slave.conf</strong> either by IP address or fully qualified domain name. Change the IP address here or change <strong>/etc/hosts</strong> to have the new IP address and keep the FQDN in the configuration file. We want to control how the slaves access the master and not rely on any other DNS source.</p>
<p>6.	If you use Apache as a proxy server, copy over <strong>/etc/httpd/conf.d/opsview.conf </strong>from the old server to the new server.</p>
<p>7.	If you use the rsync method to copy all files as the nagios user, permissions on the file <strong>/usr/local/nagios/libexec/check_icmp (and check_dhcp) </strong> may be changed to an incorrect value. Set the correct ownership and access permissions.</p>
<pre>chown root:nagios /usr/local/nagios/libexect/check_icmp
chmod 4550 /usr/local/nagios/libexec/check_icmp</pre>
<h2>Communication</h2>
<p><strong>(Wait for it…SSH connections must work before Opsview can be started).</strong></p>
<p>8.	Since we have the old server, copy all the SSH keys from the nagios home directory (probably under <strong>/var/log/nagios/.ssh/</strong>) to the new server. On the slaves, remove the entry for the master in the known_hosts file under the nagios user and establish a connection to the new master server to verify SSH works correctly with shared keys. </p>
<p>9.	Use the send2slaves command to test the master communicating with the slaves.</p>
<pre>/usr/local/nagios/bin/send2slaves –t <slavenode></pre>
<p>10.	When you have all components installed and started, all configuration files in place, and communication established from master to slaves (and vice versa), start Opsview and Opsview-web on the master server.</p>
<pre>/etc/init.d/opsview start
/etc/init.d/opsview-web start
Start Opsview on all the slave servers.</pre>
<pre>/etc/init.d/opsview-agent start
/etc/init.d/opsview-slave start</pre>
<p>Done! The Opsview UI should be accessible (after a DNS change or an edit to your local hosts file to verify). </p>
<p>Moving the master server shouldn’t be a frequent task, but with Opsview’s portable architecture, it can easily be accomplished. </p>
<div style="border: 1px solid #ccc; background-color: #f5f5f5; padding: 8px;">
<h3>About the Author</h3>
<p>Paul Fleetwood started as a Unix Administrator in 1999. He has rolled out Opsview at small and large companies including a distributed installation that monitored 600 hosts and 5000 services. Paul currently works for an award-winning custom content publisher in North Carolina and spends all his free time with his wife and three very active sons.</p>
<p><H4>Legal Disclaimer</h4>
<p>This blog post is contributed by a member of the Opsview community. The Opsview project and Opsera Ltd accept no responsibility for the accuracy of its content and are not liable for any direct or indirect damages caused by its use.</p>
</div>
<p><br />
Want to learn more about configuring and implementing IT monitoring with Opsview? Check out our <a href="http://www.opsview.com/company/events">training courses.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://labs.opsview.com/2011/11/10-steps-to-moving-an-opsview-master-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 Reasons to Monitor Virtual Servers with Opsview</title>
		<link>http://labs.opsview.com/2011/11/virtualization-monitoring/</link>
		<comments>http://labs.opsview.com/2011/11/virtualization-monitoring/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 12:58:28 +0000</pubDate>
		<dc:creator>brian.king</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[virtual IT]]></category>
		<category><![CDATA[virtual machines]]></category>
		<category><![CDATA[virtual servers]]></category>
		<category><![CDATA[virtual systems]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://labs.opsview.com/?p=1613</guid>
		<description><![CDATA[
			
				
			
		The adoption of virtual IT systems is growing rapidly, offering lower costs and improved availability. However virtualization&#8217;s inherent flexibility brings with it significant management challenges that can&#8217;t be solved using multiple monitoring tools.
Opsview provides a single, consolidated view of all your virtual systems and guests allowing for easier event correlation and rapid time to fix. [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flabs.opsview.com%2F2011%2F11%2Fvirtualization-monitoring%2F">
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flabs.opsview.com%2F2011%2F11%2Fvirtualization-monitoring%2F&amp;style=normal&amp;b=2" height="61" width="50" />
			</a>
		</div><p><a href="http://labs.opsview.com/wp-content/uploads/2011/03/global.jpg"><img class="alignleft size-thumbnail wp-image-803" style="margin-bottom: 8px; margin-right: 10px;" title="global" src="http://labs.opsview.com/wp-content/uploads/2011/03/global-150x150.jpg" alt="Virtualization Monitoring" width="105" height="105" /></a>The adoption of virtual IT systems is growing rapidly, offering lower costs and improved availability. However virtualization&#8217;s inherent flexibility brings with it significant management challenges that can&#8217;t be solved using multiple monitoring tools.</p>
<p>Opsview provides a single, consolidated view of all your virtual systems and guests allowing for easier event correlation and rapid time to fix. Combined with native network, enterprise application and Cloud support Opsview offers unparalleled coverage of your entire infrastructure.<span id="more-1613"></span></p>
<p>Here are 10 benefits of choosing Opsview to monitor your virtualized systems:</p>
<h2>1.	Build up a complete picture of your virtual system&#8217;s performance.</h2>
<p>Opsview gives you complete visibility of the health of your systems, physical and virtual.  If you’ve invested heavily in virtualizing servers, you need to ensure that those servers are performing at optimum levels to maximise staff productivity and customer satisfaction.</p>
<p>Opsview gives you insight and tools to identify trends, pre-empt problems and plan future capacity, all from one screen.</p>
<p><img class="alignright size-full wp-image-1638" style="margin-bottom: 8px; margin-left: 10px;" title="opsviewMobileEnterprise" src="http://labs.opsview.com/wp-content/uploads/2011/11/opsviewMobileEnterprise.png" alt="" width="93" height="179" /></p>
<h2>2.	Get notified before problems impact end-users.</h2>
<p>Poor user experience costs you money. Customers walk away from systems that lag and staff efficiency is severely impacted by slow business applications. Opsview enables you to fully track the health of your virtual systems and provides an array of <a title="Opsview Alerts" href="http://www.opsview.com/products/opsview-enterprise/real-time-monitoring">rich alerting options</a> that allow you to focus your effort where it’s needed most.</p>
<h2>3.	Easily group your virtualized hosts/guests by business process.</h2>
<p>Opsview makes it easy to manage virtual servers by grouping them in ways that are meaningful to you.  By applying keywords to virtual hosts, you can group them together to form business process views and display their status using simple &#8216;traffic lights&#8217; to all users in real-time.  From Opsview’s user interface you can quickly see the status of groups of virtualized servers and take action if required.</p>
<h2>4.	Understand the business impact of virtual host/guest issues and resolve them quickly.</h2>
<p>Tracking the health and availability of your virtual systems is a significant challenge; reacting quickly to events requires the  right information at the right time and with a clear path to implement  fault resolution. Opsview Enterprise edition offers <a title="Opsview Enterprise edition modules" href="http://www.opsview.com/products/enterprise-modules">enhanced modules</a> to enable you to act on monitoring issues quickly and in a controlled way to reduce the delay between fault and response.</p>
<h2><a href="http://labs.opsview.com/wp-content/uploads/2011/11/1292362969.png"><img class="alignleft size-thumbnail wp-image-1621" title="1292362969" src="http://labs.opsview.com/wp-content/uploads/2011/11/1292362969-150x150.png" alt="monitor system health" width="150" height="150" /></a>5.	Monitor end-to-end performance, not just a single component.</h2>
<p>Monitoring any kind of infrastructure whether virtual, physical or cloud is not just about focusing on one component of that infrastructure. That’s why Opsview gives you a fully integrated solution to provide an overall picture of system health and performance to make informed business decisions.</p>
<h2>6.	Critical monitoring tasks can be automated.</h2>
<p>Opsview&#8217;s <a title="Opview Puppet module" href="http://forge.puppetlabs.com/opsview/opsview">Puppet module</a> allows virtualized hosts managed by Puppet to be added automatically   into your Opsview monitoring helping ensure availability, provide   efficient service and reduce manual errors, cost and complexity.</p>
<h2>7.	Support for a wide range of virtualization technologies.</h2>
<p>Opsview has been designed to work with a wide range of virtual  machines and systems including VMware, KVM, Microsoft Hyper-V and Citrix  XenServer.</p>
<h2>8.	Performance can be Benchmarked.</h2>
<p><a title="Opsview Enterprise Reports Module" href="http://www.opsview.com/products/enterprise-modules/reports">Reports</a>, available with <a title="Opsview Enterprise edition" href="http://www.opsview.com/products/opsview-enterprise">Opsview Enterprise editon</a>,  provide insight into the availability, performance and capacity of your  virtual systems for better forward planning and reduced downtime. If  you’re providing virtualized servers as a <a title="Opsview for Managed Service Providers" href="http://www.opsview.com/learn/opsview-for-managed-service-providers">managed service</a> and need to benchmark performance, these reports can be invaluable in  helping keep to agreed SLAs. Reports can be customized and automatically  distributed to business managers or customers, saving you time and  ensuring stakeholders get the information they need.</p>
<h2>9. Scales with your infrastructure.<a href="http://labs.opsview.com/wp-content/uploads/2011/09/hyper-scalability_2.jpg"><img class="alignright size-thumbnail wp-image-1012" title="hyper scalability_2" src="http://labs.opsview.com/wp-content/uploads/2011/09/hyper-scalability_2-150x150.jpg" alt="" width="150" height="150" /></a></h2>
<p>Opsview provides a single, consolidated view of your virtualized servers, cloud environments, or mobile devices, allowing for easier event correlation and rapid time to fix. Opsview’s enterprise architecture is inherently scalable no matter the mix or geography of the systems to be monitored.</p>
<h2>10. Industry Recognised.</h2>
<p>Opsview are committed to providing technical solutions that are aligned with the demands of the modern enterprise. In recognition to our commitment, Opsview are a <a title="VMware Technology Alliance" href="http://www.vmware.com/uk/partners/programs/alliances/">VMware Technology Alliance Partner</a>, <a title="Open Virtualization Alliance" href="http://www.openvirtualizationalliance.org/index.html">Open Virtualization Alliance member</a> and have recently joined the <a title="Openstack" href="http://www.openstack.org/">Openstack Ecosystem</a>.</p>
<p>Try out <a title="Virtualization Monitoring" href="http://www.opsview.com/learn/virtualization-monitoring">virtualization monitoring</a> with Opsview by downloading the Opsview Community edition <a title="Opsview Community Virtual Appliance" href="http://www.opsview.com/downloads/opsview-3-vmware-virtual-appliance">virtual appliance.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://labs.opsview.com/2011/11/virtualization-monitoring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Workaround for “ODW_STATUS WARNING – No update since” Notification in Opsview</title>
		<link>http://labs.opsview.com/2011/10/workaround-for-%e2%80%9codw_status-warning-%e2%80%93-no-update-since%e2%80%9d-notification-in-opsview/</link>
		<comments>http://labs.opsview.com/2011/10/workaround-for-%e2%80%9codw_status-warning-%e2%80%93-no-update-since%e2%80%9d-notification-in-opsview/#comments</comments>
		<pubDate>Mon, 31 Oct 2011 12:37:26 +0000</pubDate>
		<dc:creator>brian.king</dc:creator>
				<category><![CDATA[DevOps]]></category>
		<category><![CDATA[Opsview]]></category>
		<category><![CDATA[System Management]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[distributed monitoring]]></category>
		<category><![CDATA[opsview community]]></category>
		<category><![CDATA[status warning]]></category>

		<guid isPermaLink="false">http://labs.opsview.com/?p=1535</guid>
		<description><![CDATA[
			
				
			
		This week&#8217;s post is a technical workaround, from Opsview Community edition user Matthew White, for anyone experiencing an ODW_Status Warning in Opsview due to heavy server load.
Over to you Matthew&#8230;

For a while I have been seeing a daily ODW_STATUS_WARNING about no updates since 03:59:59 on my master opsview server. I was 90% sure this was [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flabs.opsview.com%2F2011%2F10%2Fworkaround-for-%25e2%2580%259codw_status-warning-%25e2%2580%2593-no-update-since%25e2%2580%259d-notification-in-opsview%2F">
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flabs.opsview.com%2F2011%2F10%2Fworkaround-for-%25e2%2580%259codw_status-warning-%25e2%2580%2593-no-update-since%25e2%2580%259d-notification-in-opsview%2F&amp;style=normal&amp;b=2" height="61" width="50" />
			</a>
		</div><p><a href="http://labs.opsview.com/wp-content/uploads/2011/10/warning-sign11.png"><img class="alignleft size-medium wp-image-1548" title="warning-sign1" src="http://labs.opsview.com/wp-content/uploads/2011/10/warning-sign11-300x250.png" alt="opsview community" width="150" height="125" /></a>This week&#8217;s post is a technical workaround, from <a href="http://www.opsview.com/community">Opsview Community</a> edition user Matthew White, for anyone experiencing an ODW_Status Warning in Opsview due to heavy server load.</p>
<p>Over to you Matthew&#8230;</p>
<p><span id="more-1535"></span></p>
<p>For a while I have been seeing a daily ODW_STATUS_WARNING about no updates since 03:59:59 on my master opsview server. I was 90% sure this was due to the load that I put on the server (load average sits around 6 and goes up to 13 at certain times of the day) but still got bored of running cleanup_import and then import_runtime -i 1.</p>
<p>I started off by manually clearing out all but 1 week of data from the runtime database (this is run as part of opsview_master_housekeep for various tables) and this didn&#8217;t resolve the issue. In the end I modified my cron table so that the rc.opsview cron_daily task runs 30 minutes later (at 41 minutes past the hour instead of 11 minutes past). Since changing that I seem to have had no further re-occurrences of the No update prompt.</p>
<p>I am aware that each time I update Opsview I am going to have to make this change until I manage to move the databases to their own host and rebuild the master server onto new hardware. But its a workaround for now!</p>
<p>For reference the crontab now looks like:</p>
<pre># OPSVIEW-START
# Do not remove comment above. Everything between OPSVIEW-START and OPSVIEW-END
# will be automatically installed as part of an Opsview install/upgrade
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/local/nagios/bin/mrtg_genstats.sh &gt; /dev/null 2&gt;&amp;1
41 3 * * * /usr/local/nagios/bin/rc.opsview cron_daily &gt; /dev/null 2&gt;&amp;1
22 2,6,10,14,18,22 * * * . /usr/local/nagios/bin/profile &amp;&amp; /usr/local/nagios/bin/opsview_cronjobs 4hourly &gt; /dev/null 2&gt;&amp;1
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/local/nagios/bin/call_nmis nmis.pl type=collect mthread=true &gt; /dev/null 2&gt;&amp;1
34 0,4,8,12,16,20 * * * /usr/local/nagios/bin/call_nmis nmis.pl type=update mthread=true &gt; /dev/null 2&gt;&amp;1
4 * * * * . /usr/local/nagios/bin/profile &amp;&amp; /usr/local/nagios/bin/import_runtime -q
# NMIS reports
0 0 * * * /usr/local/nagios/bin/call_nmis run-reports.sh day health
0 0 * * * /usr/local/nagios/bin/call_nmis run-reports.sh day top10
0 0 * * * /usr/local/nagios/bin/call_nmis run-reports.sh day outage
0 0 * * * /usr/local/nagios/bin/call_nmis run-reports.sh day response
0 0 * * * /usr/local/nagios/bin/call_nmis run-reports.sh day avail
0 0 * * * /usr/local/nagios/bin/call_nmis run-reports.sh day port
0 0 * * 0 /usr/local/nagios/bin/call_nmis run-reports.sh week health
0 0 * * 0 /usr/local/nagios/bin/call_nmis run-reports.sh week top10
0 0 * * 0 /usr/local/nagios/bin/call_nmis run-reports.sh week outage
0 0 * * 0 /usr/local/nagios/bin/call_nmis run-reports.sh week response
0 0 * * 0 /usr/local/nagios/bin/call_nmis run-reports.sh week avail
0 0 * * 0 /usr/local/nagios/bin/call_nmis run-reports.sh week port
0 0 1 * * /usr/local/nagios/bin/call_nmis run-reports.sh month health
0 0 1 * * /usr/local/nagios/bin/call_nmis run-reports.sh month top10
0 0 1 * * /usr/local/nagios/bin/call_nmis run-reports.sh month outage
0 0 1 * * /usr/local/nagios/bin/call_nmis run-reports.sh month response
0 0 1 * * /usr/local/nagios/bin/call_nmis run-reports.sh month avail
0 0 1 * * /usr/local/nagios/bin/call_nmis run-reports.sh month port
# OPSVIEW-END</pre>
<div style="border: 1px solid #ccc; background-color: #f5f5f5; padding: 8px;">
<h3>About the Author</h3>
<p>Matthew has been working in IT for 5 years after graduating from the University of Durham with a Degree in Software Engineering. He currently works for an IT outsourcing company in London, working with a range of including Microsoft, VMWare, Citrix, Juniper, Cisco, CheckPoint, RSA, Lumension.</p>
<p>Legal Disclaimer</p>
<p>This blog post is contributed by a member of the Opsview community. The Opsview project and Opsera Ltd. accept no responsibility for the accuracy of its content and are not liable for any direct or indirect damages caused by its use.</p>
</div>
<p>Do you have technical experience of using Opsview that you would like to share with Opsview&#8217;s community? We&#8217;d love to hear from you! Contact us at <a href="mailto:marketing@opsview.com">marketing@opsview.com</a> or <a href="http://www.twitter.com/opsview">@opsview</a> on Twitter.</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.opsview.com/2011/10/workaround-for-%e2%80%9codw_status-warning-%e2%80%93-no-update-since%e2%80%9d-notification-in-opsview/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Opsview Enterprise 3.14 Edition Released Today</title>
		<link>http://labs.opsview.com/2011/10/opsview-enterprise-3-14-edition-released-today/</link>
		<comments>http://labs.opsview.com/2011/10/opsview-enterprise-3-14-edition-released-today/#comments</comments>
		<pubDate>Thu, 27 Oct 2011 11:00:25 +0000</pubDate>
		<dc:creator>brian.king</dc:creator>
				<category><![CDATA[Opsview]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[IE9]]></category>
		<category><![CDATA[opsview enterprise]]></category>
		<category><![CDATA[red hat]]></category>

		<guid isPermaLink="false">http://labs.opsview.com/?p=1509</guid>
		<description><![CDATA[
			
				
			
		Our latest release, Opsview Enterprise 3.14 edition, is out today!
As well as fixes and major enhancements, configuration changes are  applied in half the time compared to previous releases for complex  Opsview deployments.
Updates and improvements include:

Reload times on systems with a large number of contacts (&#62; 50) halved
Configuration generation speed improvement of 60% when [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Flabs.opsview.com%2F2011%2F10%2Fopsview-enterprise-3-14-edition-released-today%2F">
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Flabs.opsview.com%2F2011%2F10%2Fopsview-enterprise-3-14-edition-released-today%2F&amp;style=normal&amp;b=2" height="61" width="50" />
			</a>
		</div><p><a href="http://labs.opsview.com/wp-content/uploads/2011/10/OpsviewEnterprise3-14editionMobileEvents_300px.jpg"><img class="size-full wp-image-1516 alignleft" style="margin-bottom: 8px; margin-right: 10px;" title="OpsviewEnterprise3-14editionMobileEvents_300px" src="http://labs.opsview.com/wp-content/uploads/2011/10/OpsviewEnterprise3-14editionMobileEvents_300px.jpg" alt="opsview mobile" width="168" height="113" /></a>Our latest release, Opsview Enterprise 3.14 edition, is out today!</p>
<p>As well as fixes and major enhancements, configuration changes are  applied in half the time compared to previous releases for complex  Opsview deployments.<span id="more-1509"></span></p>
<h2>Updates and improvements include:</h2>
<ul>
<li>Reload times on systems with a large number of contacts (&gt; 50) halved</li>
<li>Configuration generation speed improvement of 60% when using lots of keywords</li>
<li><a title="Opsview Android App" href="http://www.opsview.com/products/opsview-mobile"></a><a title="Opsview Mobile for Android" href="http://www.opsview.com/products/opsview-mobile">Opsview Mobile for Android</a> is now available in Opsview Enterprise 3.14 edition</li>
<li>Red Hat Enterprise Linux 6 and Debian Linux 6.0 (Squeeze) are now officially supported platforms</li>
<li>IE9 is now an officially supported web browser</li>
<li>Rest API status information now summarised by host group, host, service and viewport</li>
</ul>
<p>For a full list of improvements in 3.14 edition visit our<a title="Opsview Enterprise 3.14 Edition Release" href="http://docs.opsview.com/doku.php?id=opsview3.14:changes"> documentation wiki</a>.</p>
<p>Want to find see some of the new dashboard features coming up in Opsview Enterprise 4.0 edition? <a title="Join our webinar" href="http://www.opsview.com/learn/opsview-webinars">Join our webinar on 3rd November 2011.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://labs.opsview.com/2011/10/opsview-enterprise-3-14-edition-released-today/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.616 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-05 01:47:07 -->

