<?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>logIt &#187; RRDtool</title>
	<atom:link href="https://lakm.us/logit/tag/rrdtool/feed/" rel="self" type="application/rss+xml" />
	<link>https://lakm.us/logit</link>
	<description>Log Around The Clock</description>
	<lastBuildDate>Sat, 06 Jun 2015 14:17:37 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Configuring Cacti</title>
		<link>https://lakm.us/logit/2009/09/configuring-cacti/</link>
		<comments>https://lakm.us/logit/2009/09/configuring-cacti/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 05:55:04 +0000</pubDate>
		<dc:creator>Arif</dc:creator>
				<category><![CDATA[General Linux]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[Cacti]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[RRDtool]]></category>
		<category><![CDATA[snmp]]></category>
		<category><![CDATA[web-based]]></category>

		<guid isPermaLink="false">http://localhost/it/?p=77</guid>
		<description><![CDATA[A successful installation in a LAMP system may require more library. I added php5-cli to enable php through command line i.e $ /usr/bin/php , libphp-adodb, php5-snmp. In localhost snmpd is installed and configured /etc/default/snmpd: SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid' and edit /etc/snmp/snmpd.conf to have: com2sec readonly  localhost         &#60;some community string&#62; Install [...]]]></description>
				<content:encoded><![CDATA[<p>A successful installation in a LAMP system may require more library. I added php5-cli to enable php through command line i.e <code>$ /usr/bin/php <some_command></code>, libphp-adodb, php5-snmp.</p>
<p>In localhost <code>snmpd</code> is installed and configured <code>/etc/default/snmpd</code>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">SNMPDOPTS</span>=<span style="color: #ff0000;">'-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid'</span></pre></div></div>

<p>and edit <code>/etc/snmp/snmpd.conf</code> to have:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">com2sec <span style="color: #7a0874; font-weight: bold;">readonly</span>  localhost         <span style="color: #000000; font-weight: bold;">&lt;</span>some community string<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>Install <code>snmp</code>, then I can test <code>snmpwalk</code>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ snmpwalk <span style="color: #660033;">-Os</span> <span style="color: #660033;">-c</span> <span style="color: #000000; font-weight: bold;">&lt;</span>some community string<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #660033;">-v</span> <span style="color: #000000;">1</span> localhost system</pre></div></div>

<p>Cacti requires RRDTool and the correct version to be set in Settings menu of the Cacti web console. In my case, RRDTool version is 1.3x. In Cacti 0.8.6.x and above <code>poller.php</code> is called by cron instead of <code>cmd.php</code>, put this trough crontab in Cacti user (enter this Cacti user crontab from <code>crontab -e -u <some Cacti user></code> or embed the user in crontab by root instead of individually edited).</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">*/</span><span style="color: #000000;">2</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>php <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>cacti<span style="color: #000000; font-weight: bold;">/</span>poller.php</pre></div></div>

<p>It will generate file under <code>rra</code> directory of the web <code>/var/www/cacti/rra/<some file>.rrd</code>. RRD tool will create image based on this polling result file.</p>
]]></content:encoded>
			<wfw:commentRss>https://lakm.us/logit/2009/09/configuring-cacti/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
