<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://cafuego.net"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Cafuego - apc</title>
 <link>http://cafuego.net/taxonomy/term/231/0</link>
 <description></description>
 <language>en</language>
<item>
 <title>BackUPS with Nagios</title>
 <link>http://cafuego.net/2009/06/19/backups-nagios</link>
 <description>&lt;!-- google_ad_section_start --&gt;&lt;p&gt;In order to rule out a crap power infrastructure as the cause for some naughty server behaviour on a client site, it was suggested I should stick a UPS on said server, to make sure that at least the input power would be clean.&lt;/p&gt;&lt;p&gt;In a confusion of &lt;a href=&quot;http://geekscape.org&quot;&gt;An&lt;/a&gt;&lt;a href=&quot;http://andy.brisgeek.com&quot;&gt;dy&lt;/a&gt;s I found a recommendation for the &lt;a href=&quot;http://www.geekscape.org/daisy/geekscape/104.html&quot;&gt;APC BackUPS CS 500&lt;/a&gt;, so that is what I got and installed.&lt;/p&gt;&lt;p&gt;With &lt;em&gt;apcupsd&lt;/em&gt; installed on&amp;nbsp;Debian Etch, the UPS is immediately detected and it &amp;quot;just works&amp;quot;.&lt;/p&gt;&lt;p&gt;I wanted to monitor it via nagios though, but I couldn&#039;t find any scripts that use the &lt;em&gt;apcaccess&lt;/em&gt; tool to interface with nagios, so I &lt;a href=&quot;/files/check_apc_ups.txt&quot;&gt;created one&lt;/a&gt; in PHP. It simply runs the &lt;em&gt;apcaccess&lt;/em&gt; binary and parses the output from that command into something that nagios can handle.&lt;/p&gt;&lt;!-- google_ad_section_end --&gt;
&lt;!--
&lt;rdf:RDF xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot; xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:trackback=&quot;http://madskills.com/public/xml/rss/module/trackback/&quot;&gt;
&lt;rdf:Description rdf:about=&quot;http://cafuego.net/2009/06/19/backups-nagios&quot; dc:identifier=&quot;http://cafuego.net/2009/06/19/backups-nagios&quot; dc:title=&quot;BackUPS with Nagios&quot; trackback:ping=&quot;http://cafuego.net/trackback/341&quot; /&gt;
&lt;/rdf:RDF&gt;
--&gt;
&lt;div class=&quot;trackback-url&quot;&gt;&lt;div class=&quot;box&quot;&gt;

  &lt;h2&gt;Trackback URL for this post:&lt;/h2&gt;

  &lt;div class=&quot;content&quot;&gt;http://cafuego.net/trackback/341&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;table id=&quot;attachments&quot; class=&quot;sticky-enabled&quot;&gt;
 &lt;thead&gt;&lt;tr&gt;&lt;th&gt;Attachment&lt;/th&gt;&lt;th&gt;Size&lt;/th&gt; &lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
 &lt;tr class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;http://cafuego.net/sites/cafuego.net/files/check_apc_ups.txt&quot;&gt;check_apc_ups.txt&lt;/a&gt;&lt;/td&gt;&lt;td&gt;1.93 KB&lt;/td&gt; &lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</description>
 <comments>http://cafuego.net/2009/06/19/backups-nagios#comments</comments>
 <category domain="http://cafuego.net/category/tags/apc">apc</category>
 <category domain="http://cafuego.net/category/tags/nagios">nagios</category>
 <category domain="http://cafuego.net/taxonomy/term/30">php</category>
 <category domain="http://cafuego.net/category/tags/ups">ups</category>
 <enclosure url="http://cafuego.net/sites/cafuego.net/files/check_apc_ups.txt" length="1976" type="text/plain" />
 <pubDate>Fri, 19 Jun 2009 00:59:33 +0000</pubDate>
 <dc:creator>cafuego</dc:creator>
 <guid isPermaLink="false">341 at http://cafuego.net</guid>
</item>
</channel>
</rss>

