<?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>SHOCM &#187; nagios</title>
	<atom:link href="http://www.shocm.com/tag/nagios/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shocm.com</link>
	<description>Open Source, Cloud, Scotch, Baseball, Family, and Programming since the 1900&#039;s</description>
	<lastBuildDate>Fri, 27 Apr 2012 15:24:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>[Nagios] Error: Could not stat() command file &#8216;/var/lib/nagios3/rw/nagios.cmd&#8217;!</title>
		<link>http://www.shocm.com/2010/04/nagios-error-could-not-stat-command-file-varlibnagios3rwnagios-cmd/</link>
		<comments>http://www.shocm.com/2010/04/nagios-error-could-not-stat-command-file-varlibnagios3rwnagios-cmd/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 07:55:03 +0000</pubDate>
		<dc:creator>Shocm</dc:creator>
				<category><![CDATA[Geek Stuff]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[fixes]]></category>
		<category><![CDATA[nagios]]></category>

		<guid isPermaLink="false">http://www.shocm.com/?p=628</guid>
		<description><![CDATA[Fixed this Nagios error on my host 
Error: Could not stat() command file '/var/lib/nagios3/rw/nagios.cmd'! ]]></description>
			<content:encoded><![CDATA[<p>System: Ubuntu 9.10 | Nagios 3.x</p>
<p>This is another post that is more of a note to myself than anything else. Been doing a lot of Nagios configuring and decided to implement the ability to push commands from the web interface. I followed the basic instructions to configure &#8220;<a href="http://nagios.sourceforge.net/docs/3_0/extcommands.html">External Commands</a>&#8221; but after doing and going to the web interface to test it, I got the following error message;</p>
<pre class="brush: bash; title: ; notranslate">
Error: Could not stat() command file '/var/lib/nagios3/rw/nagios.cmd'!

The external command file may be missing, Nagios may not be running, and/or Nagios may not be checking external commands.  An error occurred while attempting to commit your command for processing.
</pre>
<p>The file was there so I did what any good geek should do, I did a quick google search. The closet thing I could find was some commands to fix the issue on Debian systems. Since I was running Ubuntu, which is for all intensive purposes Debian, I figured I would try it.  So I ran the following set of command;</p>
<pre class="brush: bash; title: ; notranslate">
sudo /etc/init.d/nagios3 stop
sudo dpkg-statoverride --update --add nagios www-data 2710 /var/lib/nagios3/rw
sudo dpkg-statoverride --update --add nagios nagios 751 /var/lib/nagios3
sudo /etc/init.d/nagios3 start
</pre>
<p>This worked like a charm and the web interface began accepting commands.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shocm.com/2010/04/nagios-error-could-not-stat-command-file-varlibnagios3rwnagios-cmd/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

