<?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>[LINICKX].com &#187; snmp</title>
	<atom:link href="http://www.linickx.com/tag/snmp/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linickx.com</link>
	<description>Moments of Genius followed by Trash.</description>
	<lastBuildDate>Tue, 07 Feb 2012 15:06:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Cacti. How to Enable SNMP v3 Polling.</title>
		<link>http://www.linickx.com/9/cacti-how-to-enable-snmp-v3-polling</link>
		<comments>http://www.linickx.com/9/cacti-how-to-enable-snmp-v3-polling#comments</comments>
		<pubDate>Wed, 30 Mar 2005 09:41:18 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[cacti]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[snmp]]></category>

		<guid isPermaLink="false">http://www.linickx.com/blog/?p=9</guid>
		<description><![CDATA[This document is intended to describe the process required to enable encrypted snmp polling within cacti. The document was written whilst performing the installation on a Linux Fedora Core 3 server, although implemntations on Fedora Core 1 &#038; White Box Enterprise Linux have also been sucesful. The host used to gather data from for the purpose of this document is a Nokia IPSO appliance.  <a href="http://www.linickx.com/9/cacti-how-to-enable-snmp-v3-polling">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2>Cacti SNMP v3 How-To (0.2)</h2>
<h3>Preface:</h3>
<p>This document is intended to describe the process required to enable encrypted snmp polling within cacti. The document was written whilst performing the installation on a Linux Fedora Core 3 server, although implemntations on Fedora Core 1 &#038; White Box Enterprise Linux have also been sucesful. The host used to gather data from for the purpose of this document is a Nokia IPSO appliance. </p>
<h3>Limitations:</h3>
<p>The version of cacti used will be 0.8.6b, &#8220;TheWitness&#8221; has told me that this version has a pooler crash, but I&#8217;ve yet to try upgrading to 8.8.6c. </p>
<h3>System Requirements:</h3>
<p>Apache, php, mysql, snmp, rrd-tool, and cacti <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<h3>Installation:</h3>
<div class=comment>
I&#8217;m going to assume that you&#8217;ve got to the point where  all of the parts needed for system requirements are working, cacti is installed, and you&#8217;ve just logged in after step 8 of <a href="http://www.cacti.net/downloads/docs/html/install_unix.html">http://www.cacti.net/downloads/docs/html/install_unix.html</a> and was going to create a device.
</div>
<ol>
<li>Log out <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />
<div class=comment>Before we can create any snmp v3, we need to enable it; to enable snmp we need to make some changes to the php files.
</div>
</li>
<li>Change: ~/cacti_install_dir/lib/snmp.php.txt
<div class=comment>
Line 46:</p>
<div class=code>
<ul>
<li>Change: 	$version = &#8220;1&#8243;; </li>
<li>to: 	$version = &#8220;3&#8243;;</li>
</ul>
</div>
<p>Line 65:</p>
<div class=code>
<ul>
<li>Change: $snmp_auth = &#8220;-u $username -X $password&#8221;; /* v3 &#8211; username/password */</li>
<li>to: $snmp_auth = &#8220;-u $username -A $password&#8221;; /* v3 &#8211; username/password */</li>
</ul>
</div>
<p>Line 119:</p>
<div class=code>
<ul>
<li>Change: $snmp_auth = &#8220;-u $username -X $password&#8221;; /* v3 &#8211; username/password */</li>
<li>to: $snmp_auth = &#8220;-u $username -A $password&#8221;; /* v3 &#8211; username/password */</li>
</ul>
</div>
</div>
</li>
<li>Change: ~/cacti_install_dir/include/config_form.php.txt
<div class=comment>
Line 655:</p>
<div class=code>
<ul>
<li>Change: &#8220;method&#8221; => &#8220;hidden&#8221;</li>
<li>to: &#8220;method&#8221; => &#8220;textbox&#8221;</li>
</ul>
</div>
<p>Line 663:</p>
<div class=code>
<ul>
<li>Change: &#8220;method&#8221; => &#8220;hidden&#8221;</li>
<li>to: &#8220;method&#8221; => &#8220;textbox&#8221;</li>
</ul>
</div>
</div>
</li>
<li>Change: config_settings.php.txt
<div class=comment>
Uncomment Line 186 -> 199, i.e. remove the &#8220;//&#8221; from the begining of each line.
</div>
</li>
<li>Change: config_array.php.txt
<div class=comment>
Line 135:</p>
<div class=code>
<ul>
<li>Change:<br />
$snmp_versions = array(1 =><br />
	&#8220;Version 1&#8243; ,<br />
	&#8220;Version 2&#8243; );
</li>
<li>
To:<br />
$snmp_versions = array(1 =><br />
	&#8220;Version 1&#8243;,<br />
	&#8220;Version 2&#8243;,<br />
	&#8220;Version 3&#8243;);
</li>
</ul>
</div>
</div>
</li>
<li>Create /etc/snmp/snmp.conf
<div class=comment>
The contents of the file should be:</p>
<p>
	defContext &#8220;&#8221; <br />
	defSecurityLevel authNoPriv
</p>
</div>
</li>
<li>Create Device
<div class=comment>
	As documented. <a href="http://www.cacti.net/downloads/docs/html/graph_howto.html#NEW_DEVICE">http://www.cacti.net/downloads/docs/html/graph_howto.html#NEW_DEVICE</a> <br />
	(For Nokia IPSO Appliences use host Templaye Generic SNMP-enabled<br />
HOST, and Associated Data Queries: SNMP &#8211; Get Processor Infomation &#038; SNMP -<br />
Interface Statistics )</p>
<p>
	<a href="http://linickx.com/files/pics/cacti-snmpv3-createhost.png" rel="lightbox[9]"><img src="http://linickx.com/files/pics/.thumb.cacti-snmpv3-createhost.png" alt="Screen Shot of creating a cacti device"/></a>
</p>
</div>
</li>
<li>Create Graph
<div class=comment>
	As Documented. <a href="http://www.cacti.net/downloads/docs/html/graph_howto.html">http://www.cacti.net/downloads/docs/html/graph_howto.html</a>
</div>
</li>
</ol>
<h3>Appendix:</h3>
<ul>
<li>Rpms on my FC3 Machine
<div class=shell>
<pre>
<span class=shell-prompt>$SHELL></span>rpm -qa | grep mysql
mysql-3.23.58-14
php-mysql-4.3.10-3.2
mysql-server-3.23.58-14
mysql-devel-3.23.58-14
libdbi-dbd-mysql-0.6.5-9
</pre>
<pre>
<span class=shell-prompt>$SHELL></span> rpm -qa | grep php
php-ldap-4.3.10-3.2
php-mysql-4.3.10-3.2
php-odbc-4.3.10-3.2
php-4.3.10-3.2
php-pear-4.3.10-3.2
</pre>
<pre>
<span class=shell-prompt>$SHELL></span> rpm -qa | grep http
httpd-suexec-2.0.52-3.1
system-config-httpd-1.3.1-1
httpd-2.0.52-3.1
httpd-manual-2.0.52-3.1
</pre>
<pre>
<span class=shell-prompt>$SHELL></span> rpm -qa | grep rrd
rrdtool-1.0.49-3
</pre>
<pre>
<span class=shell-prompt>$SHELL></span> rpm -qa | grep snmp
net-snmp-libs-5.1.2-11
net-snmp-5.1.2-11
net-snmp-utils-5.1.2-11
</pre>
</div>
</li>
<li>How to setup snmp v3 on IPSO
<div class=comment>
(The is a quick guide of the steps needed)</p>
<ol>
<li>Log into Voyager</li>
<li>Click Config</li>
<li>Below the heading &#8220;Security and Access Configuration&#8221; Click Users</li>
<li>Add a new user (Username , uid {eg. 110}, home {eg /var/uid}), Click Apply </li>
<li>Set new users password , click apply </li>
<li>CLick Home, config, snmp </li>
<li>at the bottom of page set user to read-write </li>
</ol>
<p>to test from cacti server, try from shell, snmpwalk -u user -A password <host>,<br />
you should get&#8230;.</p>
<div class=shell>
<span class=shell-prompt>$SHELL></span>snmpwalk -u user -A password default_gw <br />
SNMPv2-MIB::sysDescr.0 = STRING: IP650 rev AAA06449-411, IPSO xxx 3.7.1-BUILD004 releng 1227  11.06.2003-010000 i386 <br />
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.94.1.21.2.1.8 <br />
SNMPv2-MIB::sysUpTime.0 = Timeticks: (382157315) 44 days, 5:32:53.15 <br />
SNMPv2-MIB::sysContact.0 = STRING: Me <br />
SNMPv2-MIB::sysName.0 = STRING: Nokia <br />
SNMPv2-MIB::sysLocation.0 = STRING: Here <br />
SNMPv2-MIB::sysServices.0 = INTEGER: 76 <br />
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (16) 0:00:00.16 <br />
SNMPv2-MIB::sysORID.1 = OID: SNMPv2-MIB::snmpMIB <br /> <br />
SNMPv2-MIB::sysORID.2 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance <br />
SNMPv2-MIB::sysORID.3 = OID: SNMP-MPD-MIB::snmpMPDCompliance <br />
SNMPv2-MIB::sysORID.4 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance <br />
&#8230;&#8230;.
</div>
<p></host></div>
<h3> ChangeLog </h3>
<div class=comment>
<ol>
<li>16/3/2005 : [NICK] Doc Complete </li>
<li>17/3/2005 : [NICK] Doc Published on <a href="http://forums.cacti.net/">http://forums.cacti.net/</a></li>
<li>30/3/2005: [NICK] Doc moved into WordPress to allow viewers to comment directly</li>
</ol>
</div>
<h3>END</h3>
<div class=bluebox>
And I think that&#8217;s all folks, I hope it works for you &#038; that you find this of some use !.
</div>
</li>
</ul>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/9/cacti-how-to-enable-snmp-v3-polling/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

