<?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>Matejunkie &#187; mysql</title>
	<atom:link href="http://www.matejunkie.com/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.matejunkie.com</link>
	<description>&#34;Look behind you, a Three-Headed Monkey!&#34;</description>
	<lastBuildDate>Thu, 07 Jan 2010 14:26:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Database fix for Nagios plugin for Cacti</title>
		<link>http://www.matejunkie.com/database-fix-for-nagios-plugin-for-cacti/</link>
		<comments>http://www.matejunkie.com/database-fix-for-nagios-plugin-for-cacti/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 15:30:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Binary Talks]]></category>
		<category><![CDATA[cacti]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[network monitoring]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://www.matejunkie.com/?p=1255</guid>
		<description><![CDATA[If you&#8217;re interested in running Nagios within the Cacti interface you may be interested in the Nagios plugin for Cacti (NPC) project which does a good job overall in combining these two powerful tools within the monitoring/graphing world. Nevertheless, I had a database related problem during the initial setup due to the fact that NPC [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re interested in running <a title="Nagios - Official website" href="http://www.nagios.org/" target="_blank">Nagios </a>within the <a title="Cacti - Official website" href="http://www.cacti.net/" target="_blank">Cacti</a> interface you may be interested in <a title="Nagios plugin for Cacti Wiki" href="http://trac2.assembla.com/npc/wiki" target="_blank">the Nagios plugin for Cacti (NPC)</a> project which does a good job overall in combining these two powerful tools within the monitoring/graphing world. Nevertheless, I had a database related problem during the initial setup due to the fact that NPC brings along its own schema of the ndo database which is outdated since the last release of ndoutils 1.4b8 (they added a new column called long_output).</p>
<p>Therefore, you want do the changes below via your mysql console to the following tables if you&#8217;d like to use the latest versions of ndoutils (1.4b8) with npc (2.0.4):</p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">use</span> databasename <span style="color: #000033;">;</span>
<span style="color: #990099; font-weight: bold;">alter</span> <span style="color: #990099; font-weight: bold;">table</span> npc_servicechecks <span style="color: #990099; font-weight: bold;">add</span> <span style="color: #990099; font-weight: bold;">column</span> long_output <span style="color: #999900; font-weight: bold;">VARCHAR</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">8192</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #990099; font-weight: bold;">default</span> <span style="color: #008000;">''</span> <span style="color: #990099; font-weight: bold;">AFTER</span> output<span style="color: #000033;">;</span>
<span style="color: #990099; font-weight: bold;">alter</span> <span style="color: #990099; font-weight: bold;">table</span> npc_servicestatus <span style="color: #990099; font-weight: bold;">add</span> <span style="color: #990099; font-weight: bold;">column</span> long_output <span style="color: #999900; font-weight: bold;">VARCHAR</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">8192</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #990099; font-weight: bold;">default</span> <span style="color: #008000;">''</span> <span style="color: #990099; font-weight: bold;">AFTER</span> output<span style="color: #000033;">;</span>
<span style="color: #990099; font-weight: bold;">alter</span> <span style="color: #990099; font-weight: bold;">table</span> npc_systemcommands <span style="color: #990099; font-weight: bold;">add</span> <span style="color: #990099; font-weight: bold;">column</span> long_output <span style="color: #999900; font-weight: bold;">VARCHAR</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">8192</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #990099; font-weight: bold;">default</span> <span style="color: #008000;">''</span> <span style="color: #990099; font-weight: bold;">AFTER</span> output<span style="color: #000033;">;</span>
<span style="color: #990099; font-weight: bold;">alter</span> <span style="color: #990099; font-weight: bold;">table</span> npc_statehistory <span style="color: #990099; font-weight: bold;">add</span> <span style="color: #990099; font-weight: bold;">column</span> long_output <span style="color: #999900; font-weight: bold;">VARCHAR</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">8192</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #990099; font-weight: bold;">default</span> <span style="color: #008000;">''</span> <span style="color: #990099; font-weight: bold;">AFTER</span> output<span style="color: #000033;">;</span></pre></div></div>

<p>Afterwards NPC should work like a charm.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.matejunkie.com/database-fix-for-nagios-plugin-for-cacti/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
