<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Monitoring on Shane Cunningham</title><link>https://cunninghamshane.com/tags/monitoring/</link><description>Recent content in Monitoring on Shane Cunningham</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Mon, 06 Oct 2014 08:21:02 +0000</lastBuildDate><atom:link href="https://cunninghamshane.com/tags/monitoring/index.xml" rel="self" type="application/rss+xml"/><item><title>Cloud Orchestration template for CoreOS and Cloud Monitoring</title><link>https://cunninghamshane.com/posts/cloud-orchestration-template-for-coreos-and-cloud-monitoring/</link><pubDate>Mon, 06 Oct 2014 08:21:02 +0000</pubDate><guid>https://cunninghamshane.com/posts/cloud-orchestration-template-for-coreos-and-cloud-monitoring/</guid><description>&lt;p&gt;&lt;a href="http://www.rackspace.com/blog/cloud-orchestration-automating-deployments-of-full-stack-configurations/"&gt;Cloud Orchestration&lt;/a&gt; is an automated deployment service provided by Rackspace Cloud. The backend for this service is &lt;a href="https://wiki.openstack.org/wiki/Heat"&gt;OpenStack Heat&lt;/a&gt;. The following is a simple template for deploying CoreOS Stable and runs a small bash script after the server is built to set it up for Cloud Monitoring. The script just performs the steps in my previous post on monitoring CoreOS with Cloud Monitoring. The template is pretty self explanatory so you can edit it to your liking.&lt;/p&gt;</description></item><item><title>Monitoring CoreOS with Rackspace Cloud Monitoring</title><link>https://cunninghamshane.com/posts/monitoring-coreos-with-rackspace-cloud-monitoring/</link><pubDate>Tue, 05 Aug 2014 11:24:00 +0000</pubDate><guid>https://cunninghamshane.com/posts/monitoring-coreos-with-rackspace-cloud-monitoring/</guid><description>&lt;p&gt;&lt;strong&gt;Updated 8/5 to use systemd unit file.&lt;/strong&gt;&lt;/p&gt;&#10;&lt;p&gt;Recently decided to move my blog to containers and &lt;a href="https://coreos.com"&gt;CoreOS&lt;/a&gt; for learning and fun. While setting up an &lt;a href="http://www.haproxy.org"&gt;HAProxy&lt;/a&gt; container on one of my CoreOS hosts I thought about how I would monitor the host. Luckily, smart people have already thought about this. :)&lt;/p&gt;&#10;&lt;p&gt;I use Rackspace&amp;rsquo;s Cloud Monitoring and &lt;a href="http://www.rackspace.com/knowledge_center/article/install-the-cloud-monitoring-agent"&gt;agent&lt;/a&gt; which can be setup on any server in any datacenter or cloud provider. Rackspace hosted servers get a nice GUI and &lt;a href="https://intelligence.rackspace.com/"&gt;awesome dashboard&lt;/a&gt; for the checks and monitoring data, but you could still set it all up on a non Rackspace hosted server using the &lt;a href="http://docs.rackspace.com/cm/api/v1.0/cm-devguide/content/overview.html"&gt;Cloud Monitoring API&lt;/a&gt; and &lt;a href="https://developer.rackspace.com/blog/using-raxmon-to-configure-rackspace-cloud-monitoring/"&gt;raxmon&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Moved to Ghost</title><link>https://cunninghamshane.com/posts/moved-to-ghost/</link><pubDate>Fri, 04 Apr 2014 10:05:25 +0000</pubDate><guid>https://cunninghamshane.com/posts/moved-to-ghost/</guid><description>&lt;p&gt;A couple days ago I moved my blog from Wordpress to &lt;a href="http://ghost.org/"&gt;Ghost&lt;/a&gt;. I found the the easiest way to get a full stack Ghost blog running is to use the &lt;a href="http://developer.rackspace.com/blog/launch-ghost-with-rackspace-deployments.html"&gt;Rackspace Ghost Deployment&lt;/a&gt;. The current version of the deployment comes with a full stack consisting of Ubuntu Server 12.04 LTS, Ghost 0.4, node.js 0.10.21, MySQL 5.5 and nginx 1.4.4 acting as the web server passing requests back to node.js.&lt;/p&gt;&#10;&lt;p&gt;I run off of a 1GB Performance Cloud Server. I don&amp;rsquo;t use the included MySQL setup, instead I use a &lt;a href="http://www.rackspace.com/cloud/databases/"&gt;Cloud Database&lt;/a&gt; with 512MB RAM - 2GB storage as the backend database and &lt;a href="http://mailgun.com" title="Mailgun"&gt;Mailgun&lt;/a&gt; to send emails. To use an external database and your own SMTP settings just make the following changes to &lt;code&gt;/var/www/vhosts/yourdomain.com/ghost/config.js&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>Check_MK agent setup and configuration</title><link>https://cunninghamshane.com/posts/check_mk-agent-setup-and-configuration/</link><pubDate>Thu, 20 Feb 2014 07:40:25 +0000</pubDate><guid>https://cunninghamshane.com/posts/check_mk-agent-setup-and-configuration/</guid><description>&lt;p&gt;Setting up OMD to get a working Nagios server is really simple, but what makes this monitoring setup really awesome is how easy &lt;a href="http://mathias-kettner.com/check_mk_introduction.html"&gt;Check_MK&lt;/a&gt; makes finding, configuring and running these checks. Setup the agent on your nodes, or just monitor SNMP/ping data, then tell Nagios/Check_MK which hosts to monitor and it will inventory and monitor all available checks it can find.&lt;/p&gt;&#10;&lt;figure class="code-block"&gt;&#10; &lt;figcaption class="code-bar"&gt;&#10; &lt;span class="code-title"&gt;console&lt;/span&gt;&#10; &lt;span class="code-meta"&gt;&#10; &lt;button type="button" class="copy-btn" data-copy&gt;Copy&lt;/button&gt;&#10; &lt;/span&gt;&#10; &lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-console" data-lang="console"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;[root@node1 ~]#&lt;/span&gt; yum install -y xinetd check-mk-agent&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/figure&gt;&#10;&lt;p&gt;This should create a check-mk-agent config file for xinetd at /etc/xinetd.d/check-mk-agent. We can edit one option for security, I haven&amp;rsquo;t tried running this as a regular user instead of root, but I should look into that. Uncomment the following line and specify your Nagios servers IP or hostname.&lt;/p&gt;</description></item><item><title>Simple Nagios setup with Open Monitoring Distribution</title><link>https://cunninghamshane.com/posts/simple-nagios-setup-with-open-monitoring-distribution/</link><pubDate>Wed, 19 Feb 2014 06:00:21 +0000</pubDate><guid>https://cunninghamshane.com/posts/simple-nagios-setup-with-open-monitoring-distribution/</guid><description>&lt;p&gt;I&amp;rsquo;ve been a fan of &lt;a href="http://www.nagios.org/"&gt;Nagios&lt;/a&gt; for quite awhile. It has its issues, but with how easy it has become to setup with &lt;a href="http://omdistro.org/"&gt;OMD&lt;/a&gt; and check discovery using &lt;a href="http://mathias-kettner.de/check_mk.html"&gt;Check_MK&lt;/a&gt;, I don&amp;rsquo;t know of anything else this powerful and simple to use. I&amp;rsquo;ll go over this first part which is the OMD installation and setup.&lt;/p&gt;&#10;&lt;p&gt;I&amp;rsquo;m using CentOS 6.5 for my Nagios server. Download links and other distros can be found &lt;a href="http://omdistro.org/download"&gt;here&lt;/a&gt;.&lt;/p&gt;&#10;&lt;figure class="code-block"&gt;&#10; &lt;figcaption class="code-bar"&gt;&#10; &lt;span class="code-title"&gt;console&lt;/span&gt;&#10; &lt;span class="code-meta"&gt;&#10; &lt;button type="button" class="copy-btn" data-copy&gt;Copy&lt;/button&gt;&#10; &lt;/span&gt;&#10; &lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-console" data-lang="console"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;[root@nagios ~]#&lt;/span&gt; wget http://files.omdistro.org/releases/centos_rhel/omd-1.10-rh61-31.x86_64.rpm&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gp"&gt;[root@nagios ~]#&lt;/span&gt; yum localinstall omd-1.10-rh61-31.x86_64.rpm&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/figure&gt;&#10;&lt;p&gt;To setup your monitoring environment you will want to create a &amp;ldquo;site&amp;rdquo;. It&amp;rsquo;s possible to have multiple sites depending on what you will be monitoring. I just created a single site for my home monitoring.&lt;/p&gt;</description></item><item><title>Monitor OpenIndiana/Solaris 11 with check_mk_agent and Nagios</title><link>https://cunninghamshane.com/posts/monitor-openindianasolaris-11-with-check_mk_agent-and-nagios/</link><pubDate>Fri, 07 Dec 2012 07:12:09 +0000</pubDate><guid>https://cunninghamshane.com/posts/monitor-openindianasolaris-11-with-check_mk_agent-and-nagios/</guid><description>&lt;p&gt;Here&amp;rsquo;s a short how-to on monitoring OpenIndiana (Solaris 11) that is running ZFS using Nagios, &lt;a href="http://mathias-kettner.com/check_mk.html"&gt;check___mk&lt;/a&gt; and &lt;code&gt;check_mk_agent&lt;/code&gt;. This awesome open source tool makes setting up your servers to be checked by Nagios super easy. In the past I would manually create or edit the Nagios .cfg files for my environment and install various agents depending on OS architecture on the servers I wanted to monitor. Even though I am not monitoring a ton of servers it still took quite a bit of time. Now I use &lt;code&gt;check_mk&lt;/code&gt; and &lt;a href="http://omdistro.org/"&gt;Open Monitoring Distribution&lt;/a&gt;. I plan to write-up a more detailed post on OMD soon, but I found it&amp;rsquo;s a very impressive bundled Nagios package with many important addons and can easily be installed on every major Linux distribution. On to monitoring Solaris 11.&lt;/p&gt;</description></item><item><title>How to Tweet your Nagios alerts</title><link>https://cunninghamshane.com/posts/how-to-tweet-your-nagios-alerts/</link><pubDate>Tue, 13 Dec 2011 06:14:18 +0000</pubDate><guid>https://cunninghamshane.com/posts/how-to-tweet-your-nagios-alerts/</guid><description>&lt;p&gt;I don’t know how truly useful this is, but it’s kinda cool just for the geekiness.&lt;/p&gt;&#10;&lt;p&gt;I installed this on Ubuntu Server 9.04 running Nagios 3.1.2. You will want to create a Twitter account just for sending these tweets. Setup a new account and go to &lt;a href="https://dev.twitter.com"&gt;https://dev.twitter.com&lt;/a&gt; and login with the Twitter account you will be sending tweets from. Next, create a new application. After that you need to create Access Tokens for the application, you may have to refresh a bit to receive the tokens.&lt;/p&gt;</description></item><item><title>Nagios</title><link>https://cunninghamshane.com/posts/nagios/</link><pubDate>Tue, 02 Nov 2010 05:20:40 +0000</pubDate><guid>https://cunninghamshane.com/posts/nagios/</guid><description>&lt;p&gt;A good tutuorial on using service checks by SSH.&lt;br&gt;&#10;&lt;a href="http://wiki.nagios.org/index.php/Howtos:checkbyssh_RedHat"&gt;wiki.nagios.org&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Useful commands&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Verify config&lt;/strong&gt;&lt;br&gt;&#10;/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Plugin directory&lt;/strong&gt;&lt;br&gt;&#10;/usr/local/nagios/libexec&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Commands directory&lt;/strong&gt;&lt;br&gt;&#10;/usr/local/nagios/etc/objects&lt;/p&gt;</description></item></channel></rss>