<?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>Bits of Arrogance &#187; Nagios</title>
	<atom:link href="https://www.crummylogic.com/wordpress/?feed=rss2&#038;tag=nagios" rel="self" type="application/rss+xml" />
	<link>https://www.crummylogic.com/wordpress</link>
	<description>Making myself pervasive</description>
	<lastBuildDate>Wed, 04 Oct 2017 17:25:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.2.4</generator>
	<item>
		<title>New Nagios Plugin</title>
		<link>https://www.crummylogic.com/wordpress/?p=106</link>
		<comments>https://www.crummylogic.com/wordpress/?p=106#comments</comments>
		<pubDate>Mon, 30 Sep 2013 14:44:37 +0000</pubDate>
		<dc:creator><![CDATA[jrdalrymple]]></dc:creator>
				<category><![CDATA[Technology junk]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://www.jrssite.com/wordpress/?p=106</guid>
		<description><![CDATA[Last Friday going into the weekend I ran across a snapshot on one of my VMware hosts almost 160 days old, OUCH. The right tool to keep that from happening is definitely Nagios. NagiosExchange didn&#8217;t really have a solution for my problem that I could find. Somebody has written a snapshot age tool in PowerShell &#8230; <a href="https://www.crummylogic.com/wordpress/?p=106" class="more-link">Continue reading <span class="screen-reader-text">New Nagios Plugin</span> <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Last Friday going into the weekend I ran across a snapshot on one of my VMware hosts almost 160 days old, OUCH. The right tool to keep that from happening is definitely Nagios. NagiosExchange didn&#8217;t really have a solution for my problem that I could find. Somebody has written a snapshot age tool in PowerShell but I&#8217;m not interested in having plugins run on hosts that aren&#8217;t my main Nagios server. I was given a fun project to work on.</p>
<p>The vSphere Command Line Interface (formerly the PERL toolkit if I&#8217;m not mistaken) was of little help. It didn&#8217;t really give me any interface into snapshot data at all. I decided the simplest solution would be to work right on the BusyBox console. I started Friday around noon and working on it here and there over a couple days came up with a usable product yesterday morning:</p>
<pre>[jrdalrymple@nagios ~]$ /usr/local/nagios/libexec/check_snapshot.py
No password specified
usage: check_snapshot.py -H hostname [-U username] &lt;-P password | -f PasswordFile&gt;</pre>
<pre>[jrdalrymple@nagios ~]$ sudo /usr/local/nagios/libexec/check_snapshot.py -H 172.16.100.11 -U nagioschk -f /home/nagios/.check_esxi_hw.pw -w 10 -c 20

3 VMs are CRITICAL
Guest example1.domain.local has snapshot 24 days old!
Guest example2.domain.local has snapshot 28 days old!
Guest example3.domain.local has snapshot 26 days old!</pre>
<p><a href="http://www.jrssite.com/wordpress/wp-content/uploads/2013/09/Clipboard03.jpg"><img alt="Clipboard03" src="http://www.jrssite.com/wordpress/wp-content/uploads/2013/09/Clipboard03.jpg" /></a></p>
<p>The results between my command line run and the Nagios GUI aren&#8217;t the same because I gave the Nagios check different thresholds.</p>
<p>I&#8217;ll probably put it up on Nagios Exhange at some point. For now I&#8217;ll just feel accomplished.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.crummylogic.com/wordpress/?feed=rss2&#038;p=106</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
