<?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>linsec.ca blog &#187; nagios</title>
	<atom:link href="http://linsec.ca/blog/tag/nagios/feed/" rel="self" type="application/rss+xml" />
	<link>http://linsec.ca/blog</link>
	<description>You can have it right, or you can have it now.  But you can&#039;t have it right now.</description>
	<lastBuildDate>Sat, 05 May 2012 22:03:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Nagios XI wizards make setup a snap for network monitoring</title>
		<link>http://linsec.ca/blog/2011/07/08/nagios-xi-wizards-make-setup-a-snap-for-network-monitoring/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=nagios-xi-wizards-make-setup-a-snap-for-network-monitoring</link>
		<comments>http://linsec.ca/blog/2011/07/08/nagios-xi-wizards-make-setup-a-snap-for-network-monitoring/#comments</comments>
		<pubDate>Sat, 09 Jul 2011 03:57:29 +0000</pubDate>
		<dc:creator>vdanen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[techmail]]></category>

		<guid isPermaLink="false">http://linsec.ca/blog/?p=1005</guid>
		<description><![CDATA[One of my last TechMails to ever be published by TechRepublic is Nagios XI wizards make setup a snap for network monitoring. This tip looks at using Nagios XI, a really slick commercially-backed install of Nagios with a really incredible GUI frontend for configuring Nagios. Anyone who has configured Nagios by hand using vim and [...]]]></description>
			<content:encoded><![CDATA[<p>One of my last TechMails to ever be published by TechRepublic is <a href="http://www.techrepublic.com/blog/opensource/nagios-xi-wizards-make-setup-a-snap-for-network-monitoring/2637">Nagios XI wizards make setup a snap for network monitoring</a>.  This tip looks at using Nagios XI, a really slick commercially-backed install of Nagios with a really incredible GUI frontend for configuring Nagios.  Anyone who has configured Nagios by hand using vim and a stack of text files will appreciate the web interface to configure it from top to bottom.</p>
<p>This is also one of the last TechMails that TechRepublic will be publishing that I&#8217;ve written.  There might be one or two more in the queue yet, I can&#8217;t remember if everything I&#8217;ve submitted has been published or not.  It has been almost 12 years of writing monthly for TechRepublic &#8212; initially as full length articles and the last few years as blog-style tips (which are both easier and harder to write; you get less words and more topics to cover in a month).  The last year or so I&#8217;ve also been writing Mac tips for TechRepublic, as one of the original contributors to the Mac track.</p>
<p>Twelve years is a long time, so it is with mixed feelings that I gave my resignation to TechRepublic last month.  I&#8217;ve worked with some really great editors: Jack, Sonja, Selena&#8230; you guys have been great to work with and I will definitely miss working with you.  I think, after a respite from technical writing, that I&#8217;ll work on updating some of the documentation I have on the <a href="http://linsec.ca/">linsec.ca</a> wiki, and hopefully finish off a few more that I&#8217;ve started but never completed.  At least writing for my own wiki there are no deadlines, no wracking the brain for various topics that appeal to a larger crowd (I can concentrate on the niche security/sysadmin stuff that I enjoy), so it should be a little more relaxed and hobby-ish, rather than feeling like &#8220;real work&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://linsec.ca/blog/2011/07/08/nagios-xi-wizards-make-setup-a-snap-for-network-monitoring/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Nagios monitoring with NRPE allows better tracking of remote systems</title>
		<link>http://linsec.ca/blog/2011/03/10/nagios-monitoring-with-nrpe-allows-better-tracking-of-remote-systems/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=nagios-monitoring-with-nrpe-allows-better-tracking-of-remote-systems</link>
		<comments>http://linsec.ca/blog/2011/03/10/nagios-monitoring-with-nrpe-allows-better-tracking-of-remote-systems/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 20:42:40 +0000</pubDate>
		<dc:creator>vdanen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[techmail]]></category>

		<guid isPermaLink="false">http://linsec.ca/blog/?p=945</guid>
		<description><![CDATA[The Linux tip from a few weeks ago was Nagios monitoring with NRPE allows better tracking of remote systems which talks about using the NRPE daemon on client systems to allow Nagios to get more information from the remote host that would normally be only available to a local user. Nagios is one of my [...]]]></description>
			<content:encoded><![CDATA[<p>The Linux tip from a few weeks ago was <a href="http://www.techrepublic.com/blog/opensource/nagios-monitoring-with-nrpe-allows-better-tracking-of-remote-systems/2265">Nagios monitoring with NRPE allows better tracking of remote systems</a> which talks about using the NRPE daemon on client systems to allow Nagios to get more information from the remote host that would normally be only available to a local user.</p>
<p>Nagios is one of my favourite things to tinker with, and using NRPE is a bit nicer than using the check_by_ssh plugin that I used to use.  I don&#8217;t really care if the load average or memory usage is sniffed, so using NRPE is nice and easy (and removes the hassles of key-based auth for SSH, seeing all those SSH connections show up in logwatch reports, etc.).  If you have the ability to install NRPE on a remote system to monitor, it&#8217;s worth trying out.</p>
]]></content:encoded>
			<wfw:commentRss>http://linsec.ca/blog/2011/03/10/nagios-monitoring-with-nrpe-allows-better-tracking-of-remote-systems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learning more about Nagios for server monitoring</title>
		<link>http://linsec.ca/blog/2009/01/15/learning-more-about-nagios-for-server-monitoring/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=learning-more-about-nagios-for-server-monitoring</link>
		<comments>http://linsec.ca/blog/2009/01/15/learning-more-about-nagios-for-server-monitoring/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 15:10:29 +0000</pubDate>
		<dc:creator>vdanen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[techmail]]></category>

		<guid isPermaLink="false">http://linsec.ca/blog/?p=367</guid>
		<description><![CDATA[This week&#8217;s TechMail is Learning more about Nagios for server monitoring which reviews the book Learning NAGIOS 3.0 published by Packt Publishing. This is a pretty decent book for anyone interested in learning more about Nagios. It taught me, who&#8217;s been using Nagios for some time, a few new tricks. Not necessarily a good read, [...]]]></description>
			<content:encoded><![CDATA[<p>This week&#8217;s TechMail is <a href="http://blogs.techrepublic.com.com/opensource/?p=320">Learning more about Nagios for server monitoring</a> which reviews the book <i>Learning NAGIOS 3.0</i> published by <a href="http://www.packtpub.com/">Packt Publishing</a>.  This is a pretty decent book for anyone interested in learning more about Nagios.  It taught me, who&#8217;s been using Nagios for some time, a few new tricks.  Not necessarily a good read, but a darn fine reference manual (although reading from front to back would be good for someone who really wants to get up to speed on the full power of Nagios quickly).  Read the TechMail for the full review.</p>
]]></content:encoded>
			<wfw:commentRss>http://linsec.ca/blog/2009/01/15/learning-more-about-nagios-for-server-monitoring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>hddtemp wrapper for Nagios</title>
		<link>http://linsec.ca/blog/2008/02/09/hddtemp-wrapper-for-nagios/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hddtemp-wrapper-for-nagios</link>
		<comments>http://linsec.ca/blog/2008/02/09/hddtemp-wrapper-for-nagios/#comments</comments>
		<pubDate>Sat, 09 Feb 2008 07:52:50 +0000</pubDate>
		<dc:creator>vdanen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mandriva]]></category>
		<category><![CDATA[hddtemp]]></category>
		<category><![CDATA[nagios]]></category>

		<guid isPermaLink="false">http://linsec.ca/blog/2008/02/09/hddtemp-wrapper-for-nagios/</guid>
		<description><![CDATA[I was bored tonight so I wrote a wrapper for hddtemp for Nagios monitoring. I have a bit of a quirky setup for Nagios where I run the local system checks on remote systems via netcat, ipsvd, and a script to handle the query. This allows me to monitor remote drive space, current users, total [...]]]></description>
			<content:encoded><![CDATA[<p>I was bored tonight so I wrote a wrapper for hddtemp for Nagios monitoring.  I have a bit of a quirky setup for Nagios where I run the local system checks on remote systems via netcat, ipsvd, and a script to handle the query.  This allows me to monitor remote drive space, current users, total processes, and current load.  Using hddtemp, I can now monitor the temperature of the drives in those machines (which also gives me an idea of how hot/cold the server room itself is).</p>
<p>This may need some tweaking to work with other Nagios setups, but shouldn&#8217;t be too hard to adapt.  One of these days I&#8217;ll do a writeup on my Nagios configuration.  Anyways, the wrapper script is as follows.  It could probably be optimized a bit more, but it works well enough.  WordPress doesn&#8217;t handle the indents very well, so keep that in mind.</p>
<pre>
#!/bin/sh

usage() {
    echo "${0} -w [warn] -c [crit] [drives]"
}

if [ "${1}" == "-h" -o "${1}" == "--help" ]; then
    usage
    exit 0
fi
if [ "${1}" == "-w" ]; then
    shift
    warn="${1}"
    shift
else
    usage
    exit 1
fi
if [ "${1}" == "-c" ]; then
    shift
    crit="${1}"
    shift
else
    usage
    exit 1
fi
while [ "${1}" != "" ]; do
    drives="${drives} ${1}"
    shift
done
if [ "${drives}" == "" ]; then
    usage
    exit 1
fi

status=0
smsg=""
htemp=0

for drive in ${drives}; do
    msg=""
    stats=`/usr/local/sbin/hddtemp ${drive}`
    model=`echo ${stats} | cut -d ':' -f 2`
    temp=`echo ${stats} | cut -d ':' -f 3 | cut -d ' ' -f 2`
    dev=`echo ${drive}|cut -d '/' -f 3`

    if [ "${temp}" -ge "${warn}" ]; then
        if [ "${status}" != "2" ]; then
            status=1
        fi
    fi

    if [ "${temp}" -ge "${crit}" ]; then
        status=2
    fi

    if [ "${temp}" -gt "${htemp}" ]; then
        htemp="${temp}"
    fi

    smsg="${smsg}${dev}=${temp}C; "
done

case "${status}" in
    2)
        wmsg="CRITICAL"
        ;;
    1)
        wmsg="WARN"
        ;;
    0)
        wmsg="OK"
        ;;
esac

echo "HDDTEMP ${wmsg} - ${smsg}|hddtemp=${htemp};${warn};${crit};0"
</pre>
<p>The output, in Nagios&#8217; status view looks like:</p>
<pre>
HDDTEMP OK - hda=22C: sda=24C: sdb=24C:
</pre>
<p>It&#8217;s called as &#8220;hddtemp-mon -w 30 -c 35 /dev/hda /dev/sda /dev/sdb&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://linsec.ca/blog/2008/02/09/hddtemp-wrapper-for-nagios/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

