{"id":176,"date":"2009-07-12T13:24:59","date_gmt":"2009-07-12T12:24:59","guid":{"rendered":"http:\/\/mccltd.net\/blog\/?p=176"},"modified":"2009-07-31T10:32:20","modified_gmt":"2009-07-31T09:32:20","slug":"monitoring-a-ups-with-nagios","status":"publish","type":"post","link":"http:\/\/darenmatthews.com\/blog\/?p=176","title":{"rendered":"Monitoring a UPS with Nagios"},"content":{"rendered":"<p>The check_ups plugin was created to facilitate monitoring of a number of UPS vendor products.\u00a0 To use the plugin you will need to install UPSD daemon distributed with Russel Kroll&#8217;s Smart UPS Tools on the remote host.\u00a0 (See the REQUIREMENTS at the end of this post).<\/p>\n<p>I do however believe that this plugin works with the old NUT API, which has been deprecated when switching from 1.4 to 2.0 version of NUT.<\/p>\n<p><!--more--><br \/>\nCopyright (c) 2000 Tom ShieldsCopyright (c) 2004 Alain Richard <alain.richard@equation.fr><br \/>\nCopyright (c) 2004 Arnaud Quette <arnaud.quette@mgeups.com><br \/>\nCopyright (c) 2002-2006 Nagios Plugin Development Team<br \/>\n\t<nagiosplug-devel@lists.sourceforge.net><\/p>\n<p>This plugin tests the UPS service on the specified host.Network UPS Tools<br \/>\nfrom www.networkupstools.org must be running for thisplugin to work.<\/p>\n<p>Usage:check_ups -H host -u ups [-p port] [-v variable] [-w warn_value] [-c crit_value] [-to to_sec] [-T]<\/p>\n<p>Options:<br \/>\n-h, &#8211;help<br \/>\nPrint detailed help screen<br \/>\n-V, &#8211;version<br \/>\nPrint version information<br \/>\n-H, &#8211;hostname=ADDRESS<br \/>\nHost name, IP Address, or unix socket (must be an absolute path)<br \/>\n-p, &#8211;port=INTEGER<br \/>\nPort number (default: 3493)<br \/>\n-u, &#8211;ups=STRING<br \/>\nName of UPS<br \/>\n-T, &#8211;temperature<br \/>\nOutput of temperatures in Celsius<br \/>\n-v, &#8211;variable=STRING<br \/>\nValid values for STRING are LINE, TEMP, BATTPCT or LOADPCT<br \/>\n-w, &#8211;warning=DOUBLE<br \/>\nResponse time to result in warning status (seconds)<br \/>\n-c, &#8211;critical=DOUBLE<br \/>\nResponse time to result in critical status (seconds)<br \/>\n-t, &#8211;timeout=INTEGER<br \/>\nSeconds before connection times out (default: 10)<\/p>\n<p>Notes:<br \/>\nThis plugin attempts to determine the status of a UPS (Uninterruptible Power<br \/>\nSupply) on a local or remote host. If the UPS is online or calibrating, the<br \/>\nplugin will return an OK state. If the battery is on it will return a WARNING<br \/>\nstate.If the UPS is off or has a low battery the plugin will return a CRITICAL<br \/>\nstate.<\/p>\n<p>You may also specify a variable to check [such as temperature, utility voltage, battery load, etc.]\u00a0 as well as warning and critical thresholds for the value of that variable.\u00a0 If the remote host has multiple UPS that are being monitored you will have to use the [ups] option to specify which UPS to check.<\/p>\n<p><strong>REQUIREMENTS<\/strong><br \/>\nThis plugin requires that the UPSD daemon distributed with Russel Kroll&#8217;s<br \/>\nSmart UPS Tools be installed on the remote host.\u00a0 If you do not have the<br \/>\npackage installed on your system, you can download it from <a href=\"http:\/\/www.networkupstools.org\" target=\"_blank\">http:\/\/www.networkupstools.org<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The check_ups plugin was created to facilitate monitoring of a number of UPS vendor products.\u00a0 To use the plugin you will need to install UPSD daemon distributed with Russel Kroll&#8217;s Smart UPS Tools on the remote host.\u00a0 (See the REQUIREMENTS at the end of this post). I do however believe that this plugin works with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[81],"_links":{"self":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/176"}],"collection":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=176"}],"version-history":[{"count":8,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/176\/revisions"}],"predecessor-version":[{"id":232,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/176\/revisions\/232"}],"wp:attachment":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=176"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}