<?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>Hack Admin &#187; net-snmp</title>
	<atom:link href="http://www.hackadmin.com/tag/net-snmp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hackadmin.com</link>
	<description></description>
	<lastBuildDate>Tue, 16 Mar 2010 21:31:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Net-SNMP Startup Issues and package updates.</title>
		<link>http://www.hackadmin.com/2008/04/16/net-snmp-startup-issues-and-package-updates/</link>
		<comments>http://www.hackadmin.com/2008/04/16/net-snmp-startup-issues-and-package-updates/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 22:57:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Maintenance]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Repair]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[centos 4.5]]></category>
		<category><![CDATA[error message]]></category>
		<category><![CDATA[net-snmp]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://www.hackadmin.com/2008/04/16/net-snmp-startup-issues-and-package-updates/</guid>
		<description><![CDATA[I ran into an issue the other day installing net-snmp-utils via yum on a CentOS 4.5  box and it just happened to me again.  This time however, I didn&#8217;t install the net-snmp-utils, it was from the original load of net-snmp.  Basically, I typically just do a:
yum -y install net-snmp
Then copy over my [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into an issue the other day installing net-snmp-utils via yum on a CentOS 4.5  box and it just happened to me again.  This time however, I didn&#8217;t install the net-snmp-utils, it was from the original load of net-snmp.  Basically, I typically just do a:</p>
<p>yum -y install net-snmp</p>
<p>Then copy over my default snmpd.conf file and fire it up.</p>
<p>In these instances however, snmpd either refused to start or gave the following error in /var/log/messages:</p>
<p><span id="more-6"></span><code>Apr 16 18:14:35 msx-db01 kernel: audit(1208384075.250:6): avc:  denied  { read } for  pid=27712 comm="snmpd" name="snmpd.conf" dev=sda3 ino=7241736 scontext=root:system_r:snmpd_t tcontext=root:object_r:tmp_t tclass=file<br />
Apr 16 18:14:35 msx-db01 kernel: audit(1208384075.265:7): avc:  denied  { read } for  pid=27712 comm="snmpd" name="snmpd.conf" dev=sda3 ino=7241736 scontext=root:system_r:snmpd_t tcontext=root:object_r:tmp_t tclass=file<br />
Apr 16 18:14:35 msx-db01 snmpd[27712]: Warning: no access control information configured.   It's unlikely this agent can serve any useful purpose in this state.   Run "snmpconf -g basic_setup" to help you configure the snmpd.conf file for this agent.<br />
Apr 16 18:14:35 msx-db01 snmpd[27712]: NET-SNMP version 5.1.2<br />
</code></p>
<p>I tried to use snmpconf as suggested even though I knew my snmpd.conf file was fine.  snmpconf was not on the system so I didn&#8217;t waste any time trying to find out how to get it.</p>
<p>So the fix is to install the net-snmp-libs package, not sure what it updates but it works.</p>
<p><code>yum -y install net-snmp-libs</code></p>
<p>The catch after that is (at least in all 3 of my situations) the following error on the yum install:</p>
<p><code>Transaction Check Error:   file /usr/share/man/man8/ext2online.8.gz from install of e2fsprogs-1.35-12.11.el4_6.1 conflicts with file from package e2fsprogs-1.35-12.4.EL4</code></p>
<p>So, back to the hack admin package manager of choice *yum* :</p>
<p><code>yum update e2fsprogs</code></p>
<p>Once it&#8217;s updated, the net-snmp-libs goes in as expected.</p>
<p>So what&#8217;s the deal with all this?  I dunno, what the hell do utilities for ext2 have to do with my ability to run snmp monitoring?  Who gives a shit and if you know, you&#8217;re probably on the wrong site.  At any rate, my monitoring works and I&#8217;ll leave the rest to the server fairies.</p>
<p>Moral of the story: If your shit works, do you really need to understand it?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hackadmin.com/2008/04/16/net-snmp-startup-issues-and-package-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

