<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>nagios &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/nagios/</link>
	<description>Feed of posts on WordPress.com tagged "nagios"</description>
	<pubDate>Thu, 26 Nov 2009 04:38:33 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Adding perfmon counters using nrpe and centreon]]></title>
<link>http://sysengineers.wordpress.com/2009/11/25/adding-perfmon-counters-using-nrpe-and-centreon/</link>
<pubDate>Wed, 25 Nov 2009 09:18:52 +0000</pubDate>
<dc:creator>chrisgralike</dc:creator>
<guid>http://sysengineers.wordpress.com/2009/11/25/adding-perfmon-counters-using-nrpe-and-centreon/</guid>
<description><![CDATA[First Create a Command Definition inside Centreon that looks like this. Naturally alter the globals ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>First Create a Command Definition inside Centreon that looks like this. Naturally alter the globals to fit inside your organisation.</p>
<p style="text-align:center;"><a href="http://sysengineers.wordpress.com/files/2009/11/img1.png"><img class="size-full wp-image-165 aligncenter" title="img1" src="http://sysengineers.wordpress.com/files/2009/11/img1.png" alt="" width="420" height="98" /></a></p>
<p>Notice the Argument example, when you test it in this form you might also notice that you get a valid response from the server. Sadly this argument will not work inside the service definition.</p>
<p style="text-align:center;"><a href="http://sysengineers.wordpress.com/files/2009/11/img2.png"><img class="size-full wp-image-166 aligncenter" title="img2" src="http://sysengineers.wordpress.com/files/2009/11/img2.png" alt="" width="420" height="143" /></a></p>
<p>Next Create a Service definition that utilizes this check command to check a specific counter. In my example i am using the MSExchange OWA\Total Users counter that is part of the new Exchange 2007 Perfmon counters. It will not work with a older exchange version. Use Perfmon on the destination machine to locate the right counters for your organisation.</p>
<p style="text-align:center;"><a href="http://sysengineers.wordpress.com/files/2009/11/img3.png"><img class="size-full wp-image-167 aligncenter" title="img3" src="http://sysengineers.wordpress.com/files/2009/11/img3.png" alt="" width="420" height="164" /></a></p>
<p>Notice the difference in the passed Argument. To make this check command work you need to slightly alter the argument because the application is making the strings &#8220;save&#8221; when these settings are stored. The result is that some of the characters will be escaped. This can luckly be countered by participating this behavior.</p>
<p>We need the check_nrpe binairy to parse the escaped characters as literals and make centreon believe that we have already escaped the unsafe chars by adding slashes to each present slash, and add a double qoute at the start and the end to make check_nrpe binary parse the argument correctly. The outcome should look somewhat like this.</p>
<p>If this is the counter you want to check, and lets make it chalanging <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<pre class="brush: bash;">

\MSExchangeTransport Queues(_total)\Messages Queued For Delivery
</pre>
<p>Then the service argument for $ARG1$ in my example should look like this inside the Centreon service definition.</p>
<pre class="brush: bash;">

!\&#34;\\MSExchangeTransport Queues(_total)\\Messages Queued For Delivery\&#34;!(ARG2)!(ARG3)!
</pre>
<p style="text-align:left;">The result will be the following.</p>
<p style="text-align:center;"><a href="http://sysengineers.wordpress.com/files/2009/11/img4.png"><img class="size-full wp-image-168 aligncenter" title="img4" src="http://sysengineers.wordpress.com/files/2009/11/img4.png" alt="" width="420" height="117" /></a></p>
<p>I hope this will help you tackle the &#8220;Counter&#8221; chalanges that Centreon will present when using the NSCLient++ and Check_NRPE commands.</p>
<p><strong>Tools used in this setup</strong></p>
<p><em>NSClient++ for Windows (32Bit / 64Bit) Using the NRPE option instead of the NS option.</em><br />
http://nsclient.org/nscp/downloads</p>
<p><em>NSClient manual for Check_Counter</em><br />
http://nsclient.org/nscp/wiki/CheckCounter</p>
<p><em>NSC.Ini file that we used on our remote machines (do add your nagios server IP to the allowed hosts section)</em><br />
<a href="http://sysengineers.wordpress.com/files/2009/11/nsc-ini.doc">NSC.ini</a> (Rename it by removing the .doc part or simply copy paste its contence)</p>
<p><em>Check_nrpe Command.</em><br />
http://www.rpmfind.net/linux/rpm2html/search.php?query=check_nrpe</p>
<div id="_mcePaste" style="overflow:hidden;position:absolute;left:-10000px;top:668px;width:1px;height:1px;">http://nsclient.org/nscp/wiki/CheckCounter</div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[PHP Script for SMS delivery using Clickatell]]></title>
<link>http://esisteinfehleraufgetreten.wordpress.com/2009/11/24/php-script-for-sms-delivery-using-clickatell/</link>
<pubDate>Tue, 24 Nov 2009 10:42:12 +0000</pubDate>
<dc:creator>alexs77</dc:creator>
<guid>http://esisteinfehleraufgetreten.wordpress.com/2009/11/24/php-script-for-sms-delivery-using-clickatell/</guid>
<description><![CDATA[We&#8217;re using the provider Clickatell to send out SMS. To do the delivery, I wrote a PHP CLI (co]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>We&#8217;re using the provider <a href="http://www.clickatell.com">Clickatell</a> to send out SMS. To do the delivery, I wrote a PHP CLI (command line) script, which I&#8217;ll share here.  We use this script, to make Nagios (or Icinga, for that matter&#8230;) notify us via SMS about issues.</p>
<h2>Pastebins</h2>
<p>I also uploaded the script to <a href="http://php.pastebin.com/f799ccefe">pastebin.com</a> and <a href="http://pastebin.ca/1685151">pastebin.ca</a>, where you can &#8220;enjoy&#8221; the script with &#8220;nice&#8221; syntax highlighting <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  <!--more-->It&#8217;s the same script at both pastebin.</p>
<h2>Clickatell Documentation</h2>
<ul>
<li><a href="http://www.clickatell.com/downloads/http/Clickatell_HTTP.pdf">http://www.clickatell.com/downloads/http/Clickatell_HTTP.pdf</a></li>
<li>View Online thanks to Google: <a href="http://docs.google.com/viewer?url=http://www.clickatell.com/downloads/http/Clickatell_HTTP.pdf">http://docs.google.com/viewer?url=http://www.clickatell.com/downloads/http/Clickatell_HTTP.pdf</a></li>
</ul>
<h2>Required Parameters</h2>
<p>The script <strong>REQUIRES</strong> the following parameters:</p>
<ul>
<li><span style="color:#ff0000;"><strong>-t</strong></span> → Phone number of the recipient (<strong>&#8220;to&#8221;</strong>).<br />
The script will strip out any non-digit characters from this parameter. So a good value might be: &#8216;+41 79 123 45 67&#8242; or &#8216;41791234567&#8242;. The number <em>MUST</em> be specified in international format!</li>
<li><strong><span style="color:#ff0000;">-u</span></strong> → Clickatell Username</li>
<li><span style="color:#ff0000;"><strong>-p</strong></span> → Clickatell Password</li>
<li><strong><span style="color:#ff0000;">-i</span></strong> → Clickatell API ID</li>
</ul>
<p>The script will read the message text from standard input.</p>
<h2>Optional Parameters</h2>
<p>Additionally, there&#8217;s a handfull of <strong>OPTIONAL</strong> parameters:</p>
<ul>
<li><strong><span style="color:#ff0000;">-@</span></strong> → Scheduled Delivery Time. When should the message be sent?<br />
If not set, the message is sent <em>&#8220;now&#8221;</em>. Otherwise, it&#8217;ll be sent at (almost&#8230;) the given time. Format: Unix Timestamp (eg. 1233133393) or UTC date format (2009-01-30T14:00:00Z)</li>
<li><strong><span style="color:#ff0000;">-f</span></strong> → Source Address (<strong>&#8220;from&#8221;</strong>). Needs to be registered at Clickatell.</li>
<li><span style="color:#ff0000;"><strong>-c</strong></span> → Max. number of concatted msgs to send out. By default, only 1 160char msg is send. If set to 2 or 3, 2x or 3x (160-7) char are allowed. Can be set to a higher value than 3, but shouldn&#8217;t.</li>
<li><span style="color:#ff0000;"><strong>-b</strong></span> → Clickatell Callback type. See <a href="http://docs.google.com/viewer?q=5.2.4&#38;url=http://www.clickatell.com/downloads/http/Clickatell_HTTP.pdf"><em>&#8220;5.2.4 Callback URL&#8221;</em> of the Clickatell HTTP documentation</a>. 0 = off, 3 = intermediate &#38; final status</li>
<li><span style="color:#ff0000;"><strong>-q</strong></span> → Required SMS Features. See <a href="http://docs.google.com/viewer?q=5.2.8&#38;url=http://www.clickatell.com/downloads/http/Clickatell_HTTP.pdf"><em>&#8220;5.2.8 Required features&#8221;</em></a> of the documentation. needs to incl. 16 if using Alpha (Text) as a &#8220;from&#8221; (-f) value.</li>
<li><strong><span style="color:#ff0000;">-x</span></strong> → Max. Credits; how many credits is ONE SMS message allowed to consum?; should be set to 3, to allow every possible SMS</li>
</ul>
<h2>Examples</h2>
<pre>echo 'Hello World!' &#124; clickatell.php -t '+41 79 123 45 67' -u ClickDoe -p FooBar -i 9876543
clickatell.php -t 41791234567 -u ClickDoe -p FooBar -i 9876543 -@ 2009-12-24T18:00:00Z -f Santa-Claus -b 3 -x 3 -q 16 -c 3 &#60; /tmp/msg</pre>
<p>The first command will send the message &#8220;Hello World!&#8221; to +41 79 123 45 67. Clickatell username is set to ClickDoe and password is FooBar. At clickatell, a HTTP API has been registered and Clickatell assgined the number 9876543 to it.</p>
<p>The 2nd example reads a (possibly long) message from the file /tmp/msg. It&#8217;ll send out a maximum of 3x(16o-7) = 459 characters (because of the &#8220;<strong>-c 3</strong>&#8221; parameter) from the beginning of the message. The message is going to be send out at Christmas eve (&#8220;<strong>-@ 2009-12-24T18:00:00Z</strong>&#8221; ). It&#8217;s made to look like it&#8217;s from Santa (&#8220;<strong>-f Santa-Claus</strong>&#8221; — &#8220;Santa-Claus&#8221; needs to be registered at Clickatell first). One message can cost up to 3 credits (&#8220;<strong>-x 3</strong>&#8221; ) and required features is set to 16 (&#8220;<strong>-q 16</strong>&#8221; ), which means that a textual from (&#8220;Santa-Claus&#8221;) can be used.</p>
<h2>Source</h2>
<p>As mentioned, check out <a href="http://php.pastebin.com/f799ccefe">pastebin.com</a> and <a href="http://pastebin.ca/1685151">pastebin.ca</a> for nicely readable versions of the script.</p>
<pre><code>#! /opt/csw/php5/bin/php
&#60;?php

/*
 * Send SMS notifications using the Clickatell HTTP API Interface
 *
 * Description of command line parameters: see further down...
 *
 * Clickatell HTTP API Documentation:
 * http://www.clickatell.com/downloads/http/Clickatell_HTTP.pdf
 * -&#62; http://docs.google.com/viewer?url=http://www.clickatell.com/downloads/http/Clickatell_HTTP.pdf
 */

// "Enhance" the implode() function to work with associative arrays (eg. array("user" =&#62; "john"))
function implode_assoc($array, $inner_glue = '=', $outer_glue = '&#38;') {
 $output = array();
 foreach( $array as $key =&#62; $item )
 $output[] = $key . $inner_glue . $item;

 return implode($outer_glue, $output);
}

// Parse command line parameters
$args = getopt('t:u:p:i:@:f:b:c:q:x:');
if (
 ($args == FALSE)
 OR (! isset($args["t"]))
 OR (! isset($args["u"]))
 OR (! isset($args["p"]))
 OR (! isset($args["i"]))
){
 echo "Error! Command line arguments could not be parsed!

 * The script requires the following command line parameters:
 * # -t ['to' SMS Recipient Number - \$CONTACTPAGER\$] #
 * # -u [Clickatell Username] #
 * # -p [Clickatell Password] #
 * # -i [Clickatell API ID] #
 * -@ [Scheduled Delivery Time; When should the message be sent?; Formats: Unix timestamp (1233133393) or UTC date format (2009-01-30T14:00:00Z)]
 * -f ['from' Source Address A valid international format number between 1 and 16 characters long, or an 11 character alphanumeric string.]
 * -b [Clickatell Callback type; see 5.2.4 Callback URL (callback); 0 = off, 3 = intermediate &#38; final status]
 * -c [Max. number of concatted msgs to send out. By default (1), only 1 160char msg is send. If set to 2 or 3, 2x or 3x (160-7) char are allowed]
 * -q [Required SMS Features; see 5.2.8 Required features (req_feat); needs to incl. 16 if using Alpha From]
 * -x [Max. Credits; how many credits is ONE SMS message allowed to consum?; should be set to 3, to allow every possible SMS]

 * Parameters listed with # are REQUIRED; others are optional.

 * The script reads the SMS text from STDIN, ie. invoke it like so:
 *   printf 'Hello\\nWorld!' &#124; " . $_SERVER['SCRIPT_NAME'] . " -u JohnDoe -p FooBar -i 9876543 ...

 * Clickatell HTTP API Documentation:
 * http://www.clickatell.com/downloads/http/Clickatell_HTTP.pdf
 * -&#62; http://docs.google.com/viewer?url=http://www.clickatell.com/downloads/http/Clickatell_HTTP.pdf
";
 exit(1);
}

echo "Welcome - Going to send an SMS....\n";

// "Fetch" parameters from the $args array
define('CLICKATELL_USER', $args['u']);
define('CLICKATELL_PASS', $args['p']);
define('CLICKATELL_API_ID', $args['i']);

// "Sanitize" the number of the recipient - ie. drop any non-digit char
define('TO', preg_replace('/[^[:digit:]]/', '', $args["t"]));

// Set "FROM"
if (isset($args['f'])){ define('FROM', $args['f']); }

// SMS Concatenation
// Maximum number of SMS to send, which makes up 1 msg at the
// receiver. Allows to send SMS messages which are longer than
// 160char
// See 5.2.6 Concatenation (concat)
if (isset($args['c'])){ define('SMS_CONCATS', $args['c']); }

// Callback Value
// See 5.2.4 Callback URL (callback)
//
//    Callback    Message status types returned                Message status code returned
//    value
//    0        No message status returned.
//    1        Returns only intermediate statuses.            002, 003, 011
//    2        Returns only final statuses of a message.        004, 005, 006, 007, 008, 010, 012
//    3        Returns both intermediate and final statuses of a msg.    All except 001
if (isset($args['b'])){ define('CALLBACK_VALUE', $args['b']); }

// Required Features
// See 5.2.8 Required features (req_feat)
//
//    Hex    Decimal    Feature        Description
//    0x0001    1    FEAT_TEXT    Text – set by default.
//    0x0002    2    FEAT_8BIT    8-bit messaging – set by default.
//    0x0004    4    FEAT_UDH    UDH (Binary) - set by default.
//    0x0008    8    FEAT_UCS2    UCS2 / Unicode – set by default.
//    0x0010    16    FEAT_ALPHA    Alpha source address (from parameter).
//    0x0020    32    FEAT_NUMER    Numeric source address (from parameter).
//    0x0200    512    FEAT_FLASH    Flash messaging.
//    0x2000    8192    FEAT_DELIVACK    Delivery acknowledgments.
//    0x4000    16384    FEAT_CONCAT    Concatenation – set by default.
if (isset($args['q'])){ define('REQ_FEAT', $args['q']); }

// Maximum Credits
// This parameter overrides the maximum charge associated with message delivery,
// 5.2.7 Maximum credits (max_credits)
if (isset($args['x'])){ define('MAX_CREDITS', $args['x']); }

// Scheduled Time
// The purpose of this parameter is to allow you to specify when you want a message to be delivered.
// See 5.2.16 Scheduled Time
// Formats:
//     1) Unix timestamp:
//         scheduled_time:1233133393
//     2) UTC date format:
//         scheduled_time:2009-01-30T14:00:00Z
if (isset($args['@'])){ define('SCHEDULED_TIME', $args['@']); }

// Read the to-be sent message from stdin.
$text = file_get_contents('php://stdin');
// Convert UTF-8 chars -&#62; iso-8859-1
$text = utf8_decode($text);
// Only allow $concat_count * (160-7) chars in $text
if (defined('SMS_CONCATS')){
 $text = substr($text, 0, SMS_CONCATS * (160-7));
} else {
 $text = substr($text, 0, 160);
}

// URL to prepend to all outgoing calls
define('BASEURL', "http://api.clickatell.com");

// auth call
$cmd = "auth";
$cmd_parms = array("user" =&#62; CLICKATELL_USER, "password" =&#62; CLICKATELL_PASS, "api_id" =&#62; CLICKATELL_API_ID);
$url = BASEURL . "/http/" . $cmd . "?" . implode_assoc(array_map("urlencode", $cmd_parms));
// do auth call
$ret = file($url);
// split our response. return string is on first line of the data returned
$sess = split(":", $ret[0]);

// Did we get an "OK"? If so, continue with sending the message.
if ($sess[0] == "OK") {
 $sess_id = trim($sess[1]); // remove any whitespace
 $cmd = "sendmsg";
 $cmd_parms = array("session_id" =&#62; $sess_id,
 "to" =&#62; TO,
 "text" =&#62; $text
 );
 if (defined('MAX_CREDITS')){ $cmd_parms['max_credits'] = MAX_CREDITS; }
 if (defined('FROM')){ $cmd_parms['from'] = FROM; }
 if (defined('REQ_FEAT')){ $cmd_parms['req_feat'] = REQ_FEAT; }
 if (defined('CALLBACK_VALUE')){ $cmd_parms['callback'] = CALLBACK_VALUE; }
 if (defined('SMS_CONCATS')){ $cmd_parms['concat'] = SMS_CONCATS; }
 if (defined('SCHEDULED_TIME')){ $cmd_parms['scheduled_time'] = SCHEDULED_TIME; }

 $url = BASEURL . "/http/" . $cmd . "?" . implode_assoc(array_map("urlencode", $cmd_parms));
 // echo 'url: ' . $url . "\n";
 // exit(42);
 // do sendmsg call
 $ret = file($url);
 $send = split(":",$ret[0]);
 if ($send[0] == "ID") {
 echo "success
message ID: ". $send[1] . "\n";
 exit(0);
 } else {
 echo "send message failed: " . $ret[0] . "\n";
 exit(1);
 }
} else {
 echo "Authentication failure: " . $ret[0] . "\n";
 exit(2);
}

// We cannot reach this spot!
echo "ERROR! Impossible program location!";
exit(3);
// EOF //</code></pre>
<p>Enjoy! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h1><span style="color:#ff0000;">#FTW!</span></h1>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Installing and Configuring Nagios on Ubuntu]]></title>
<link>http://supporthandbook.wordpress.com/2009/11/19/installing-and-configuring-nagios-on-ubuntu/</link>
<pubDate>Thu, 19 Nov 2009 19:24:24 +0000</pubDate>
<dc:creator>supporthandbook</dc:creator>
<guid>http://supporthandbook.wordpress.com/2009/11/19/installing-and-configuring-nagios-on-ubuntu/</guid>
<description><![CDATA[How to install Nagios. SO today I decided to install and test nagios for testing purposes as its bei]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://supporthandbook.wordpress.com/files/2009/11/logofullsize.png"><img class="alignnone size-full wp-image-8" title="Nagios" src="http://supporthandbook.wordpress.com/files/2009/11/logofullsize.png" alt="Nagios " width="300" height="75" /></a></p>
<p><strong>How to install Nagios.</strong></p>
<p><strong><br />
</strong><br />
SO today I decided to install and test nagios for testing purposes as its being used to monitor various services in the company I&#8217;m working in, surprisingly it was really simple&#8230;</p>
<p>I started by simply using the synaptic to locate and mark up nagios and click install, it installs apache but it doesn&#8217;t connect them.</p>
<p>then you test to see everything is ok by using<br />
<em><br />
sudo nagios3 -v nagios.cfg </em></p>
<p>where nagios.cfg can be found in /etc/nagios3</p>
<p>the next step is creating nagios user and user group on the http server using</p>
<p>#htpasswd -c htpasswd.users nagios while in /etc/nagios3</p>
<p>which will create the file htpaswd.users which includes a user name and an encrypted password.</p>
<p>use a browser to log on to http://host_ip/nagios3 and you&#8217;ll be prompted for credentials, use the user name and password you just created.</p>
<p>you&#8217;ll find your self in the nagios interface but have access to nothing</p>
<p><strong>Part 2: modify the configuration files</strong></p>
<p>these files should be modified to reflect the current nagios configuration&#8230;to follow the instructions i started with the timeperiods_nagios2.cfg which can be foudn in conf.d directory which includes the time period definitions i just went through them to learn what each of them is, there are basically work hours/nonwork hours/24X7/and never</p>
<p>contacts_nagios2.cfg contains the contact people to recieve the emails</p>
<p>create group nagcmd if it wasn&#8217;t already created<br />
then create user nagios<br />
add users nagios and www-data to nagcmd group</p>
<p>grep nagios /etc/group to make sure they were created</p>
<p>i tried to open the http://host_ip/nagios3 and eventhough it opened and all i wasn&#8217;t able to view anything recieving It appears as though you do not have permission to view information for any of the hosts you requested&#8230; error</p>
<p>so i had to do something</p>
<p>i&#8217;m expecting that it has something to do with the htpasswd part</p>
<p>this took a while to solve but i finally found out that the default user name for nagios is infact nagiosadmin rather than nagios, and my installation somehow was inconsistent while file nagios.cfg had the main user as nagios, the cgi.cfg had the main user ans nagios admin. and of course the htpasswd.users had nagios, the solution was modifying the cgi.cfg to match the rest, simply by searching for and replacing nagios admin.</p>
<p><strong> </strong></p>
<p><strong>Part 3 </strong><br />
now how to configure nagios to listen to services and check, first of all nagios places all the executable files in /usr/lib/nagios/plugins/ these files are used to check the services. you can of course develop your own, but i didnt try that yet.</p>
<p>now you go to /etc/nagios-plugins/config this contain the config files that calls on these executables, you can configure here.</p>
<p>then another important file is hostname_nagios2.cfg which actually contains the monitored services, you define the thresholds here.</p>
<p><strong>Part 4</strong></p>
<p>another important note, to actually allow modifying nagios from the web interface you need to tweak the<br />
nagios.cfg, firts the command_file variable should point to an empty file named anything (and you have to create it) the commands are kept there till the nagios reads them. and then log_external_commands should be set to 1.</p>
<p><em><br />
#/etc/init.d/nagios3 restart</em></p>
<p><strong>UPDATE</strong></p>
<p>I restarted the nagios service and for some reason it didn&#8217;t start I checked the log to find out that the service wasn&#8217;t able to create the cmd file (the one talked about earlier) I deleted the file and tried to restart again and got the same result, obviously the nagios user didnt have write access to that folder, and after chmoding the folder it worked out perfectly.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Nagios - XI]]></title>
<link>http://sysengineers.wordpress.com/2009/11/18/nagios-xi/</link>
<pubDate>Wed, 18 Nov 2009 17:40:17 +0000</pubDate>
<dc:creator>chrisgralike</dc:creator>
<guid>http://sysengineers.wordpress.com/2009/11/18/nagios-xi/</guid>
<description><![CDATA[Yey! yeah, i have luckily become a tester for the new Nagios XI (eXtended Interface) tool and I thou]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>Yey!</strong></p>
<p>yeah, i have luckily become a tester for the new Nagios XI (eXtended Interface) tool and I thought&#8230;. Lets devote a post to this new product!</p>
<p>Well first i was a bit surprised that the new product comes as a VM package meaning that you will download a virtual machine with all the required settings pre-configured for you. When reading various posts on the subject, its all support related, which brings me to the second point.  Nope, Nagios XI will not be open source as in &#8220;free for download&#8221;, but it will be open source as in &#8220;your free to develop ontop of the original product&#8221;.</p>
<p>Yea i know this will raise allot of questions, but drilling down to the source of this &#8216;little evil&#8217; it seems that developers need to be payed, so lets blame society for this and not the people developing and releasing the product.</p>
<p><strong>What does it do?</strong><br />
Well the Nagios-Core (which is and stays free for download) monitors network nodes using check_commands that can be utilized by nagios to check for a wide range of network services like; Ping,Oracle,NTP,DHCP,CPU,MEM,DISKSpace.</p>
<p>Using the data the Nagios-Core collects there are a wide range of exsisting GUIs that can make this data visible in many different ways like; headsup-displays,performance-graphs,traffic-lights etc. And allows people to be notified using mail,sms,or other means.</p>
<p><strong>Whats XI?</strong><br />
Well most of the GUIs had a mayor downside, it required a fair amount of know how to get it up and running. You needed to compile allot of tar-bals, install allot different RPMs and next you needed to make all these different things work together using some kind of a unified configuration that could reach 1M lines easily when you wanted all the fancy features.</p>
<p>Nagios-XI primarily makes the nagios tool and its GUI available for non-skilled users that dont have any affinity with linux. Its a VMware image that you can boot easily using a VMware player. Next thing you need to do is configure an IP (with extended manual) and open your explorer. The rest is done from there, pre-configured and working without a hassle.</p>
<p>Next to that the GUI is fully graphical including configuration wizards, custom dashboards (drag-drop style), custom views, custom almost everything. In short, Next, Next, Finish!</p>
<p>Im not sure seasoned engineers like myself would buy this product quickly, most of us would compile, configure, and download a GNU gui and work from there. But i do think there is a large market out there of engineers that dont have the required time, or linux know-how to get up and running. For these people i think Nagios XI will be a welcome alternative!</p>
<p>Rgrds,  </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Using Amazon ec2's CloudWatch To Monitor Your Servers]]></title>
<link>http://thenetworkmonitor.org/2009/11/12/using-amazon-ec2s-cloudwatch-to-monitor-your-servers/</link>
<pubDate>Thu, 12 Nov 2009 22:58:33 +0000</pubDate>
<dc:creator>intermapper</dc:creator>
<guid>http://thenetworkmonitor.org/2009/11/12/using-amazon-ec2s-cloudwatch-to-monitor-your-servers/</guid>
<description><![CDATA[Amazon Web Services released it&#8217;s  CloudWatch API and many people are using it to gather metri]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Amazon Web Services released it&#8217;s  CloudWatch API and many people are using it to gather metrics/information about their servers. This article describes the process used to write a nagios compatible plugin that gathers data from the Amazon CloudWatch API. We decided to write this plugin in a nagios compatible mode because nagios is basically the defacto standard in monitoring return code.</p>
<h2>Background</h2>
<p>This plugin was written for DartWare&#8217;s InterMapper as a probe pack for it&#8217;s Free 5 Server Cloud Monitoring solution. More information about DartWare&#8217;s monitoring solutions in and out of the cloud can be found at: <a href="http://intermapper.com">http://intermapper.com</a></p>
<p>Almost all network monitoring solutions support nagios compatible scripts including InterMapper. InterMapper is an extremely versatile network and system monitoring solution. This plugin returns all nagios compatible messages and furthermore uses InterMapper formatting when nagios is not specifically set to true.</p>
<p><strong>What do I need to make this plugin work? </strong></p>
<p>The CloudWatch monitoring plugin is written in Python and relies on the BOTO framework. The BOTO framework is included with the download at the bottom of the page.</p>
<h2><strong>Examples</strong></h2>
<p>The following execution of the CloudWatch Script will give you CPU utilization for a specific InstanceID. The options <strong>-w </strong>and <strong>-c </strong> represent the warning and critical thresholds within nagios.</p>
<h3>CPUUtilization</h3>
<p>The warning and critical thresholds are measured in percent.</p>
<p><em>./awscloudwatch.py -a &#60;access-key&#62; -s &#60;secrect-key&#62; -i &#60;instance-id&#62; -m CPUUtilization -w 10 -c 70</em></p>
<p><em><br />
</em></p>
<h3>NetworkIn</h3>
<p>The warning and critical thresholds are measured in bytes/sec.</p>
<p><em>./awscloudwatch.py -a &#60;access-key&#62; -s &#60;secrect-key&#62; -i &#60;instance-id&#62; -m CPUUtilization -w 10000 -c 900000</em></p>
<p><em><br />
</em></p>
<p><span style="font-size:15px;font-weight:800;">Results Look Like?</span></p>
<p>By default all info messages are displayed with InterMapper&#8217;s  probe formatting, this allows InterMapper users to track detailed information and make it graphable.</p>
<p><strong><span style="color:#808080;">\{ $CPUUtilization := &#8220;2.78&#8243; } </span></strong></p>
<p>To get standard nagios INFO messages just pass &#8220;&#8211;nagios True&#8221;  and the response will look more like:</p>
<p><span style="color:#808080;"><strong>OK: CPUUtilization is 2.73</strong></span></p>
<p><span style="color:#808080;"><strong><br />
</strong></span></p>
<h3>What other metrics are supported?</h3>
<p>Currently all of CloudWatch metrics can be monitored. Please see the following API document for all available metrics and their data types.</p>
<p><a title="Amazon CloudWatch Metrics" href="http://docs.amazonwebservices.com/AmazonCloudWatch/latest/DeveloperGuide/arch-AmazonCloudWatch-metricscollected.html" target="_blank">http://docs.amazonwebservices.com/AmazonCloudWatch/latest/DeveloperGuide/arch-AmazonCloudWatch-metricscollected.html</a></p>
<h2>Download The Plugin Now</h2>
<p>The CloudWatch plugin can be downloaded by clicking <a href="http://intermapper.com/aws-pack.tgz">here</a> . To learn more about how InterMapper&#8217;s free custom AWS AMI visit <a href="http://www.intermapper.com/products/ec2-monitoring">here</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Cliente NET-SNMP]]></title>
<link>http://torocatala.wordpress.com/2009/11/10/cliente-net-snmp/</link>
<pubDate>Tue, 10 Nov 2009 10:21:21 +0000</pubDate>
<dc:creator>torocatala</dc:creator>
<guid>http://torocatala.wordpress.com/2009/11/10/cliente-net-snmp/</guid>
<description><![CDATA[1.- MSWindows 2.- GNU/Linux El cliente NET-SNMP nos servira para Nagios, Cacti, Zenoss y otras aplic]]></description>
<content:encoded><![CDATA[1.- MSWindows 2.- GNU/Linux El cliente NET-SNMP nos servira para Nagios, Cacti, Zenoss y otras aplic]]></content:encoded>
</item>
<item>
<title><![CDATA[Cliente NET-SNMP en Windows &amp; Linux]]></title>
<link>http://torocatala.wordpress.com/2009/11/10/86/</link>
<pubDate>Tue, 10 Nov 2009 08:58:43 +0000</pubDate>
<dc:creator>torocatala</dc:creator>
<guid>http://torocatala.wordpress.com/2009/11/10/86/</guid>
<description><![CDATA[Windows&amp;Linux 1.- MSWindows El cliente NET-SNMP nos servira para Nagios, Cacti, Zenoss y otras a]]></description>
<content:encoded><![CDATA[Windows&amp;Linux 1.- MSWindows El cliente NET-SNMP nos servira para Nagios, Cacti, Zenoss y otras a]]></content:encoded>
</item>
<item>
<title><![CDATA[Monitoramento: Zabbix Bar no Firefox 3.5.0+]]></title>
<link>http://mypenguim.wordpress.com/2009/11/04/monitoramento-zabbix-bar-no-firefox-3-5-0/</link>
<pubDate>Thu, 05 Nov 2009 00:19:56 +0000</pubDate>
<dc:creator>danlsgiga</dc:creator>
<guid>http://mypenguim.wordpress.com/2009/11/04/monitoramento-zabbix-bar-no-firefox-3-5-0/</guid>
<description><![CDATA[Quem trabalha com TI, mais especificamente na área de Administração de Redes e Sistemas, tem que lid]]></description>
<content:encoded><![CDATA[Quem trabalha com TI, mais especificamente na área de Administração de Redes e Sistemas, tem que lid]]></content:encoded>
</item>
<item>
<title><![CDATA[Programas Open Source para la empresa]]></title>
<link>http://ubanov.wordpress.com/2009/11/04/programas-open-source-para-la-empresa/</link>
<pubDate>Wed, 04 Nov 2009 22:25:43 +0000</pubDate>
<dc:creator>ubanov</dc:creator>
<guid>http://ubanov.wordpress.com/2009/11/04/programas-open-source-para-la-empresa/</guid>
<description><![CDATA[En esta entrada voy a dar un listado de programas a utilizar para algunos de las necesidades más típ]]></description>
<content:encoded><![CDATA[En esta entrada voy a dar un listado de programas a utilizar para algunos de las necesidades más típ]]></content:encoded>
</item>
<item>
<title><![CDATA[Data Center Administrator ]]></title>
<link>http://mindsourceinc.wordpress.com/2009/10/27/data-center-administrator/</link>
<pubDate>Tue, 27 Oct 2009 22:50:43 +0000</pubDate>
<dc:creator>Michelle</dc:creator>
<guid>http://mindsourceinc.wordpress.com/2009/10/27/data-center-administrator/</guid>
<description><![CDATA[*THIS POSITION HAS CLOSED.  THANK YOU FOR YOUR INTEREST.* Our client&#8217;s growing their Technical]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>*THIS POSITION HAS CLOSED.  THANK YOU FOR YOUR INTEREST.*</strong></p>
<p>Our client&#8217;s growing their Technical Operations team to meet the demands of their rapidly growing user community, and have a terrific opportunity for a <strong>DATA CENTER ADMINISTRATOR</strong> with strong attention to detail and excellent communication skills. This position is primarily onsite at local data centers, with occasional onsite work in their Oakland, CA offices, and travel to remote data center locations a few times per year.  Our client&#8217;s team is small, agile and dedicated.  They value diligence and creativity in scaling our infrastructure while consolidating servers as our usage continues to grow.  We are  looking for the right person for this position &#8211; someone who’s ready to dig in on day one, with substantial hands-on experience in data centers and a “can-do” attitude.</p>
<p><strong>RESPONSIBILITIES</strong></p>
<p>As a member of our client&#8217;s Technical Operations team, you will have primary responsibility for the daily operations of our <strong>SAN JOSE, CA</strong> and <strong>SAN FRANCISCO, CA</strong> co-location data centers. Primarily on site in San Jose, you will be the eyes, ears and hands for our client&#8217;s team there &#8211; coordinating everything from rack mounting servers, performing routine maintenance and hardware troubleshooting to structured cable design, operating system installs, cross-connect installs, vendor deliveries and physical plant maintenance.</p>
<p><strong>REQUIREMENTS</strong></p>
<p>You must be self-motivated, capable of managing your time well, and work efficiently without close supervision. Meticulous and well-documented work is an absolute must. You should be enthusiastic about hardware and cabling installation, diagnostics, and repair.  You will be responding to trouble tickets opened by staff members but will also be expected to proactively identify and resolve problems as you gain familarity with our client&#8217;s systems.</p>
<ul>
<li>5 years extensive PC Hardware experience and detailed knowledge of components (x86, x86_64 with a strong preference for white/grey box systems)</li>
<li>Minimum 5 year hands-on UNIX/Linux experience, including solid knowledge of OS install, configuration, and boot</li>
<li>Experience working in a 24/7 customer-facing environment</li>
<li>Experience building &#38; maintaining structured cabling</li>
<li>Strong experience with host-based storage &#38; RAID</li>
<li>Strong understanding of ethernet networking &#38; TCP/IP</li>
<li>Reliable transportation between Oakland, San Jose,  and San Francisco (available as needed, 24/7)</li>
<li>Be able to lift 50lb to a height of 6ft</li>
<li>Available for occasional off-hours (24/7) on-site data center support</li>
</ul>
<p><strong>DESIRED SKILLS</strong></p>
<ul>
<li>Experience with Debian or Ubuntu</li>
<li>Experience with enterprise switches (Cisco, Force10, Arista, Foundry)</li>
<li>Understanding of Load Balancers</li>
<li>Familiarity with optical networks</li>
<li>Scripting in BASH, Perl and/or Python</li>
<li>System monitoring (Nagios, Cacti, Smokeping)</li>
<li>Understanding of DHCP, PXE and automated system installs</li>
</ul>
<p>If you are interested, please send us your resume to <a href="mailto:tsotelo@mindsource.com?subject=Data Center Administrator">tsotelo@mindsource.com</a>.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Install &amp; Configure Nagios in Ubuntu]]></title>
<link>http://unixmeraj.wordpress.com/2009/10/25/install-configure-nagios-in-ubuntu/</link>
<pubDate>Sun, 25 Oct 2009 10:32:48 +0000</pubDate>
<dc:creator>unixmeraj</dc:creator>
<guid>http://unixmeraj.wordpress.com/2009/10/25/install-configure-nagios-in-ubuntu/</guid>
<description><![CDATA[Required Packages Make sure you&#8217;ve installed the following packages on your Ubuntu installatio]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong><span style="text-decoration:underline;">Required Packages</span></strong></p>
<p>Make sure you&#8217;ve installed the following packages on your Ubuntu installation before continuing.</p>
<ul>
<li>Apache 2</li>
<li>PHP</li>
<li>GCC compiler and development      libraries</li>
<li>GD development libraries</li>
</ul>
<p>You can use <em>apt-get</em> to install these packages by running the following commands:</p>
<pre>sudo apt-get install apache2

sudo apt-get install libapache2-mod-php5

sudo apt-get install build-essential</pre>
<p>With Ubuntu 6.10, install the gd2 library with this command:</p>
<pre>sudo apt-get install libgd2-dev</pre>
<p>With Ubuntu 7.10, the gd2 library name has changed, so you&#8217;ll need to use the following:</p>
<pre>sudo apt-get install libgd2-xpm-dev</pre>
<p><strong><span style="text-decoration:underline;">1) Create Account Information</span></strong></p>
<p>Become the root user.</p>
<pre>sudo -s</pre>
<p>Create a new <em>nagios</em> user account and give it a password.</p>
<pre>/usr/sbin/useradd -m -s /bin/bash nagios

passwd nagios</pre>
<p>On older Ubuntu server editions (6.01 and earlier), you will need to also add a <em>nagios</em> group (it&#8217;s not created by default). You should be able to skip this step on desktop, or newer server editions of Ubuntu.</p>
<pre>/usr/sbin/groupadd nagios

/usr/sbin/usermod -G nagios nagios</pre>
<p>Create a new <em>nagcmd</em> group for allowing external commands to be submitted through the web interface. Add both the nagios user and the apache user to the group.</p>
<pre>/usr/sbin/groupadd nagcmd

/usr/sbin/usermod -a -G nagcmd nagios

/usr/sbin/usermod -a -G nagcmd www-data</pre>
<p><strong><span style="text-decoration:underline;">2) Download Nagios and the Plugins</span></strong></p>
<p>Create a directory for storing the downloads.</p>
<pre>mkdir ~/downloads

cd ~/downloads</pre>
<p>Download the source code tarballs of both Nagios and the Nagios plugins (visit <a href="http://www.nagios.org/download/">http://www.nagios.org/download/</a> for links to the latest versions). These directions were tested with Nagios 3.1.1 and Nagios Plugins 1.4.11.</p>
<pre>wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.0.tar.gz

wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.11.tar.gz</pre>
<p><strong><span style="text-decoration:underline;">3) Compile and Install Nagios</span></strong></p>
<p>Extract the Nagios source code tarball.</p>
<pre>cd ~/downloads

tar xzf nagios-3.2.0.tar.gz

cd nagios-3.2.0</pre>
<p>Run the Nagios configure script, passing the name of the group you created earlier like so:</p>
<pre>./configure --with-command-group=nagcmd</pre>
<p>Compile the Nagios source code.</p>
<pre>make all</pre>
<p>Install binaries, init script, sample config files and set permissions on the external command directory.</p>
<pre>make install

make install-init

make install-config

make install-commandmode</pre>
<p>Don&#8217;t start Nagios yet &#8211; there&#8217;s still more that needs to be done&#8230;</p>
<p><strong><span style="text-decoration:underline;">4) Customize Configuration</span></strong></p>
<p>Sample <a href="http://nagios.sourceforge.net/docs/3_0/config.html">configuration files</a> have now been installed in the <em>/usr/local/nagios/etc</em> directory. These sample files should work fine for getting started with Nagios. You&#8217;ll need to make just one change before you proceed&#8230;</p>
<p>Edit the <em>/usr/local/nagios/etc/objects/contacts.cfg</em> config file with your favorite editor and change the email address associated with the <em>nagiosadmin</em> contact definition to the address you&#8217;d like to use for receiving alerts.</p>
<pre>vi /usr/local/nagios/etc/objects/contacts.cfg</pre>
<p><strong><span style="text-decoration:underline;">5) Configure the Web Interface</span></strong></p>
<p>Install the Nagios web config file in the Apache conf.d directory.</p>
<pre>make install-webconf</pre>
<p>Create a <em>nagiosadmin</em> account for logging into the Nagios web interface. Remember the password you assign to this account &#8211; you&#8217;ll need it later.</p>
<pre>htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin</pre>
<p>Restart Apache to make the new settings take effect.</p>
<pre>/etc/init.d/apache2 reload</pre>
<p>Note: Consider implementing the ehanced CGI security measures described <a href="http://nagios.sourceforge.net/docs/3_0/cgisecurity.html">here</a> to ensure that your web authentication credentials are not compromised.</p>
<p><strong><span style="text-decoration:underline;">6) Compile and Install the Nagios Plugins</span></strong></p>
<p>Extract the Nagios plugins source code tarball.</p>
<pre>cd ~/downloads

tar xzf nagios-plugins-1.4.11.tar.gz

cd nagios-plugins-1.4.11</pre>
<p>Compile and install the plugins.</p>
<pre>./configure --with-nagios-user=nagios --with-nagios-group=nagios

make

make install</pre>
<p><strong><span style="text-decoration:underline;">7) Start Nagios</span></strong></p>
<p>Configure Nagios to automatically start when the system boots.</p>
<pre>ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios</pre>
<p>Verify the sample Nagios configuration files.</p>
<pre>/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg</pre>
<p>If there are no errors, start Nagios.</p>
<pre>/etc/init.d/nagios start</pre>
<p><strong><span style="text-decoration:underline;"> <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Login to the Web Interface</span></strong></p>
<p>You should now be able to access the Nagios web interface at the URL below. You&#8217;ll be prompted for the username (<em>nagiosadmin</em>) and password you specified earlier.</p>
<pre>http://localhost/nagios/</pre>
<p>Click on the &#8220;Service Detail&#8221; navbar link to see details of what&#8217;s being monitored on your local machine. It will take a few minutes for Nagios to check all the services associated with your machine, as the checks are spread out over time.</p>
<p><strong><span style="text-decoration:underline;">9) Other Modifications</span></strong></p>
<p>If you want to receive email notifications for Nagios alerts, you need to install the mailx (Postfix) package.</p>
<pre>sudo apt-get install mailx

sudo apt-get install postfix</pre>
<p>You&#8217;ll have to edit the Nagios email notification commands found in <em>/usr/local/nagios/etc/objects/commands.cfg</em> and change any &#8216;/bin/mail&#8217; references to &#8216;/usr/bin/mail&#8217;. Once you do that you&#8217;ll need to restart Nagios to make the configuration changes live.</p>
<pre>sudo /etc/init.d/nagios restart</pre>
<p>Configuring email notifications is outside the scope of this documentation. Refer to your system documentation, search the web, or look to the <a href="http://support.nagios.com/" target="_blank">Nagios Support Portal</a> or <a href="http://wiki.nagios.org/" target="_blank">Nagios Community Wiki</a> for specific instructions on configuring your Ubuntu system to send email messages to external addresses.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Nagios]]></title>
<link>http://filipebatista.wordpress.com/2009/10/23/nagios/</link>
<pubDate>Fri, 23 Oct 2009 14:56:21 +0000</pubDate>
<dc:creator>filipebatista</dc:creator>
<guid>http://filipebatista.wordpress.com/2009/10/23/nagios/</guid>
<description><![CDATA[Aqui ficam dois tutoriais de configuração para o Nagios. Para aqueles que não sabem o que é, o Nagio]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img class=" " src="http://assets.nagios.com/images/header/Nagios.png" alt="Logonagios" width="127" height="30" /></p>
<p>Aqui ficam dois tutoriais de configuração para o <a href="http://www.nagios.org/">Nagios</a>.<br />
Para aqueles que não sabem o que é, o Nagios é um software opensource de monitorização de serviços e equipamentos de rede. Podendo alertar os administradores sobre problemas nos serviços, bem como problemas dos próprios equipamentos.<br />
<img src="http://nagiostat.sourceforge.net/screenshots/in-nagios.png" alt="nagios" width="625" height="513" /><br />
<!-- SlideShare error: doc is missing or has illegal characters /[^-_a-zA-Z0-9]/ --><br />
<!-- SlideShare error: doc is missing or has illegal characters /[^-_a-zA-Z0-9]/ --></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Add Nagios Power Supply Check for PowerEdge 770N]]></title>
<link>http://blesseddlo.wordpress.com/2009/10/23/add-nagios-power-supply-check-for-poweredge-770n/</link>
<pubDate>Fri, 23 Oct 2009 00:32:16 +0000</pubDate>
<dc:creator>blesseddlo</dc:creator>
<guid>http://blesseddlo.wordpress.com/2009/10/23/add-nagios-power-supply-check-for-poweredge-770n/</guid>
<description><![CDATA[1. Download the Nagios Power Supply check for PowerEdge 1850 from Nagios Exchange: http://exchange.n]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>1. Download the Nagios Power Supply check for PowerEdge 1850 from Nagios Exchange:</p>
<p>http://exchange.nagios.org/directory/Plugins/Hardware/Server-Hardware/Dell/Check-Dell-server-power-supplies-status/details</p>
<p><strong>wget http://exchange.nagios.org/components/com_mtree/attachment.php?link_id=437&#38;cf_id=24</strong></p>
<p>2.The command line options and instructions on how to implement the check are listed on the plugin site.</p>
<p>3.  For each server, I needed to play with the command line options.  For most servers, the options of -n 2 -c 2 (2 &#8211; power supplies and 2 cpus) worked just fine, but for some servers I needed to edit those.  For one server particularly I needed to not provide any options.</p>
<p>4. This got Nagios checks working for all PowerEdge 1850&#8217;s.  But we had some 770N,  2650, and 850&#8217;s in our environment as well.</p>
<p>5. First make a copy so you can change the OID&#8217;s as appropriate.</p>
<p>6. I downloaded the MIB table from Dell for the PowerEdge 850.  From searching through the table I found a PowerSupplyStatus OID of  .1.3.6.1.4.1.674.10892.1.600.12.1.5  I edited the original script and change the powersupply OID from <strong>.1.3.6.1.4.674.10892.1.600.12.1.10.1</strong> to <strong>.1.3.6.1.4.674.10892.1.600.12.1.5.1</strong></p>
<p>7. Test the script via command line to find the appropriate values for the number of power supplies -n and the number of CPU&#8217;s. For some hosts I wasn&#8217;t able to enter a CPU value, it only worked with a number for the power supplies.</p>
<p><strong>./check_snmp_dell_powersupply_other.pl -H IPAddress -C CommunityString -n 2</strong></p>
<p><strong>./check_snmp_dell_powersupply_other.pl -H 128.97.154.177 -C Jum73guG -n 1 -c 1</strong></p>
<p>8. Enter into the commands.cfg the correct command definition and edit the powersupply.cfg file to add the service for the new servers.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Nagios and iPhone push notifications]]></title>
<link>http://jayholler.wordpress.com/2009/10/18/nagios-and-iphone-push-notifications/</link>
<pubDate>Sun, 18 Oct 2009 17:35:03 +0000</pubDate>
<dc:creator>jayholler</dc:creator>
<guid>http://jayholler.wordpress.com/2009/10/18/nagios-and-iphone-push-notifications/</guid>
<description><![CDATA[I have a friend who works for an ISP and a few months back he told me about how he had wrangled Nagi]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I have a friend who works for an ISP and a few months back he told me about how he had wrangled Nagios into monitoring their servers and networking equipment.  His story piqued my interest, and last night I finally downloaded Nagios, and configured it to monitor my 24&#215;7 Linux host that sits behind my TV providing a number of different services to my internal network.  Installing Nagios from source was simple with the instructions at http://www.nagios.org, and within minutes I was up and running.  I had a little trouble with setting up auth_digest authentication for apache2 but I think that was mostly because that module wasn&#8217;t enabled by default.  After I got the main configuration up and running, and I was able to access the web interface, I began to poke around.  While I was doing this I got an email notification that my disk space was over 20%.  I then thought, wouldn&#8217;t this be cool if I could turn this into a push notification?<br />
I already set up a script provided by http://prowl.weks.net/static/prowl.pl, and have that working to notify me when a new TV show is added to my Linux host.  I found that the settings for notifications in Nagios were located at /usr/local/nagios/etc/objects/commands.cfg.  In the notifications section, I added the following below the two entries for email notifications, which I included:</p>
<p># &#8216;notify-host-by-email&#8217; command definition<br />
define command{<br />
        command_name    notify-host-by-email<br />
        command_line    /usr/bin/printf &#8220;%b&#8221; &#8220;***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n&#8221; &#124; /usr/bin/mail -s &#8220;** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **&#8221; $CONTACTEMAIL$<br />
        }</p>
<p># &#8216;notify-service-by-email&#8217; command definition<br />
define command{<br />
        command_name    notify-service-by-email<br />
        command_line    /usr/bin/printf &#8220;%b&#8221; &#8220;***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$&#8221; &#124; /usr/bin/mail -s &#8220;** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **&#8221; $CONTACTEMAIL$<br />
        }</p>
<p># &#8216;notify-host-by-prowl&#8217; command definition<br />
define command{<br />
        command_name    notify-host-by-prowl<br />
        command_line    /usr/local/bin/prowl.pl -application=&#8221;Nagios&#8221; -event=&#8221;** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **&#8221; -notification=&#8221;Host: $HOSTNAME$ State: $HOSTSTATE$ Address: $HOSTADDRESS$ Info: $HOSTOUTPUT$ Date/Time: $LONGDATETIME$&#8221; -priority=1 -apikey=THISISWHEREMYAPIKEYWOULDGO<br />
        }</p>
<p># &#8216;notify-service-by-prowl&#8217; command definition<br />
define command{<br />
        command_name    notify-service-by-prowl<br />
        command_line    /usr/local/bin/prowl.pl -application=&#8221;Nagios&#8221; -event=&#8221;** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **&#8221; -notification=&#8221;Host: $HOSTNAME$ State: $HOSTSTATE$ Address: $HOSTADDRESS$ Info: $HOSTOUTPUT$ Date/Time: $LONGDATETIME$&#8221; -priority=1 -apikey=THISISWHEREMYAPIKEYWOULDGO<br />
        }</p>
<p>So now, when Nagios sends a notification, I get a pop up instantly on my phone that looks something like this:<br />
<div id="attachment_191" class="wp-caption alignnone" style="width: 330px"><img src="http://jayholler.wordpress.com/files/2009/10/mobile-photo-oct-18-2009-1-23-38-pm.jpg" alt="Nagios iPhone Prowl" title="Mobile Photo Oct 18, 2009 1 23 38 PM" width="320" height="480" class="size-full wp-image-191" /><p class="wp-caption-text">Nagios iPhone Prowl</p></div></p>
<p>Righteous!!</p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
