<?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>Vishal Vasu&#039;s Blog &#187; Nagios</title>
	<atom:link href="http://www.vishalvasu.com/tag/nagios/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vishalvasu.com</link>
	<description>Thoughts, Passion, Technology</description>
	<lastBuildDate>Wed, 04 Jan 2012 08:23:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Windows Updates Check on Nagios</title>
		<link>http://www.vishalvasu.com/windows-updates-check-on-nagios/</link>
		<comments>http://www.vishalvasu.com/windows-updates-check-on-nagios/#comments</comments>
		<pubDate>Sat, 02 Aug 2008 09:05:30 +0000</pubDate>
		<dc:creator>Vishal Vasu</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[Windows Server 2003]]></category>

		<guid isPermaLink="false">http://www.vishalvasu.com/wordpress/?p=37</guid>
		<description><![CDATA[I&#8217;m not much of a Linux guy but still love Nagios. Few days back I came across a script on Nagios Exchange (http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2639.html;d=1 ) which does a check for Windows updates and reports the results back to the Nagios server. The moment I saw it, I was very happy and I wanted to set this [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: lucida grande;">I&#8217;m not much of a Linux guy but still love Nagios. Few days back I came across a script on Nagios Exchange (</span><a href="http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2639.html;d=1"><span style="font-family: lucida grande;"><span style="color: #225588;">http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2639.html;d=1</span></span></a><span style="font-family: lucida grande;"> ) which does a check for Windows updates and reports the results back to the Nagios server. The moment I saw it, I was very happy and I wanted to set this up. But the happiness did not last for long. Few hours later I found that it was not going to be easy to set this up and get it running. The problem is not the script &#8211; the problem is me. Always had been away from the Red Devil and Penguin since Windows always was my passion.</span><span style="font-family: lucida grande;"><strong>define service{<br />
use generic-service </strong><br />
<strong>host_name Name Of Host &#8211; replace this with your Host Name</strong><br />
<strong>service_description Updates </strong><br />
<strong>check_command check_nrpe!check_updates!-l </strong><br />
<strong>}</strong></span></p>
<p>Searched a lot on the Internet and forums but I could not find a single site which would show how to implement the script in NsClient ++ and how to define the command and service in Nagios. Finally, I managed to crack it and now I would like to share this with everyone who may need some help on this.</p>
<p>Follow these steps to get this working:</p>
<p>[1] Download the script from Nagios Exchange and store it on your hard disk of your server which you need to check for updates. Note down the path to the wsf script for further reference.</p>
<p>[2] Edit your NSC.INI file (NsClient ++) and add this line to it:<br />
<strong>check_updates=c:windowssystem32cscript.exe //NoLogo //T:40 C:Scriptscheckupdates.wsf $arg1$</strong><br />
The line above will check for the checkupdates.wsf script under the Scripts folder and run it using cscript. The $arg1$ will return the value back to Nagios.</p>
<p>[3] Next step is to add a command to your Nagios command.cfg file:<br />
<strong>#&#8217;check_nrpe&#8217; command definition</strong><br />
<strong>define command { </strong><br />
<strong>command_name check_nrpe </strong><br />
<strong>command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c $ARG1$ -a $ARG2$</strong><br />
<strong>}</strong></p>
<p>[4] Now it&#8217;s time to define the service. Depending on the way you use templates, I&#8217;ll leave it up to you to decide where to place it. Add the following lines:<br />
<strong># Monitor updates in windows machine</strong></p>
<p>Do a pre-flight check of Nagios. If no configuration errors are reported then you are good to go. Restart nagios for the new checks to work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vishalvasu.com/windows-updates-check-on-nagios/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Nagios and MSSQL 2005</title>
		<link>http://www.vishalvasu.com/nagios-and-mssql-2005/</link>
		<comments>http://www.vishalvasu.com/nagios-and-mssql-2005/#comments</comments>
		<pubDate>Mon, 14 Jul 2008 12:28:12 +0000</pubDate>
		<dc:creator>Vishal Vasu</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Nagios]]></category>

		<guid isPermaLink="false">http://www.vishalvasu.com/wordpress/?p=34</guid>
		<description><![CDATA[Recently some of the hosts that I monitor and provide server administration support upgraded their MSSQL 2000 to MSSQL 2005. The problem started when we tried to add MSSQL 2005 database service to monitoring. Nagios would simply not check &#8220;MSSQL$SQLEXPRESS&#8221; and return a Unknown state. Obviously the $ in the middle of the service name [...]]]></description>
			<content:encoded><![CDATA[<p>Recently some of the hosts that I monitor and provide server administration support upgraded their MSSQL 2000 to MSSQL 2005. The problem started when we tried to add MSSQL 2005 database service to monitoring. Nagios would simply not check &#8220;MSSQL$SQLEXPRESS&#8221; and return a Unknown state. Obviously the $ in the middle of the service name was causing the issue. Found out later that we need to use either two $$ or quote the dollar sign so that it shows MSSQL$&#8221;$&#8221;SQLEXPRESS.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vishalvasu.com/nagios-and-mssql-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  www.vishalvasu.com/tag/nagios/feed/ ) in 5.58800 seconds, on Feb 6th, 2012 at 12:55 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 6th, 2012 at 1:55 pm UTC -->
