<?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/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>centos &#8211; AgileOps</title>
	<atom:link href="https://agileops.co.uk/category/centos/feed/" rel="self" type="application/rss+xml" />
	<link>https://agileops.co.uk</link>
	<description>Virtualization made simple for Everyone.</description>
	<lastBuildDate>Mon, 25 May 2020 18:55:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.8</generator>

<image>
	<url>https://agileops.co.uk/wp-content/uploads/2017/10/favicon-01-50x50.png</url>
	<title>centos &#8211; AgileOps</title>
	<link>https://agileops.co.uk</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">194680508</site>	<item>
		<title>snmp configuration on Linux (snmpd.conf) NET-SNMP</title>
		<link>https://agileops.co.uk/snmp-configuration-on-linux-snmpd-conf/</link>
					<comments>https://agileops.co.uk/snmp-configuration-on-linux-snmpd-conf/#comments</comments>
		
		<dc:creator><![CDATA[Ibrahim Quraishi]]></dc:creator>
		<pubDate>Sat, 04 May 2013 17:42:45 +0000</pubDate>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[configure snmp on linux]]></category>
		<category><![CDATA[cpu utilizaiton]]></category>
		<category><![CDATA[disk utilization]]></category>
		<category><![CDATA[linux snmp]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[network monitoring]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[snmp]]></category>
		<category><![CDATA[snmp config]]></category>
		<category><![CDATA[snmp configuration on linux]]></category>
		<category><![CDATA[snmpd]]></category>
		<category><![CDATA[snmpwalk]]></category>
		<category><![CDATA[solarwinds]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://quraishi.wordpress.com/?p=693</guid>

					<description><![CDATA[
				<![CDATA[]]>		]]></description>
										<content:encoded><![CDATA[<div class="vgblk-rw-wrapper limit-wrapper">Hi All,</p>
<p>I am going to show you how to configure the snmp agent on a Linux based distribution &#8211; this example is tested on CentOS and Red Hat Linux</p>
<p><strong>Purpose:</strong></p>
<p>The purpose of installing SNMP (Simple Network Transfer Protocol) is to monitor host resources like CPU, Memory, Network and Disk Utilization etc.</p>
<p>SNMP is a network management protocol used to send and recive<br />
messages between NMS (Network Management Systems). SNMP allows NMS to<br />
manage network devices remotely, by using MIBs .</p>
<p>You might be wondering what are MIB ?<br />
MIB&#8217;s are Management Information Base, It can be best described as information in the form of variable that would be useful to manage the specific item. The developer who creates a  MIB has to create a OID  aka Object Identifiers</p>
<p>Now you might be wondering whats OID ?<br />
An object identifier is simply a unique id represented by a series of numbers and point that has a unique corresponding name. The format of OID is a sequence of numbers with periods /dots in between.</p>
<p>example of Print Device OID is like this:<br />
1.3.6.1.2.1.43.10.2.1.4.1.1<br />
This is HP Printer Total Page Count.</p>
<p>To learn more about MIB&#8217;s and OID&#8217;s please Google it, as I am still learning about it too its a huge topic on its own.</p>
<p>Now that you have a basic understanding of how SNMP works lets start off with the installation of NET-SNMP package ( oh by the way formally it was known as UCD-SNMP)</p>
<p><strong>Installing NET-SNMP on Linux System:</strong></p>
<p>To install the snmp (net-snmp ) I will recommend you to install the other package net-snmp-utils this will be useful for testing as it has handy tools like snmpwalk etc.</p>
<p><em><strong>You can also watch the snmp installation video created  by me.</strong></em></p>
<p><em><strong> The Video has the full installation process.</strong></em></p>
<p>[youtube=https://youtu.be/BsEzFE_z-UQ]</p>
<p><strong><span style="color: #ff9900;">[root@Client ~]# yum install net-snmp net-snmp-utils </span></strong><br />
Loaded plugins: downloadonly, fastestmirror<br />
Loading mirror speeds from cached hostfile<br />
* base: mirrors.coreix.net<br />
* extras: mirrors.coreix.net<br />
* updates: mirror.krystal.co.uk<br />
Setting up Install Process<br />
Package 1:net-snmp-utils-5.5-44.el6_4.1.x86_64 already installed and latest version<br />
Resolving Dependencies<br />
&#8211;&gt; Running transaction check<br />
&#8212;&gt; Package net-snmp.x86_64 1:5.5-44.el6_4.1 will be installed<br />
&#8211;&gt; Finished Dependency Resolution</p>
<p>Dependencies Resolved</p>
<p>=========================================================================================<br />
Package Arch Version Repository Size<br />
=========================================================================================<br />
Installing:<br />
net-snmp x86_64 1:5.5-44.el6_4.1 updates 303 k</p>
<p>Transaction Summary<br />
=========================================================================================<br />
Install 1 Package(s)</p>
<p>Total download size: 303 k<br />
Installed size: 816 k<br />
Is this ok [y/N]:Y</p>
<p><span style="color: #ff9900;">Give<strong> y</strong></span></p>
<p>Dependencies Resolved</p>
<p>=========================================================================================<br />
Package Arch Version Repository Size<br />
=========================================================================================<br />
Installing:<br />
net-snmp x86_64 1:5.5-44.el6_4.1 updates 303 k</p>
<p>Transaction Summary<br />
=========================================================================================<br />
Install 1 Package(s)</p>
<p>Total download size: 303 k<br />
Installed size: 816 k<br />
Is this ok [y/N]: y<br />
Downloading Packages:<br />
net-snmp-5.5-44.el6_4.1.x86_64.rpm | 303 kB 00:00<br />
Running rpm_check_debug<br />
Running Transaction Test<br />
Transaction Test Succeeded<br />
Running Transaction<br />
Warning: RPMDB altered outside of yum.<br />
Installing : 1:net-snmp-5.5-44.el6_4.1.x86_64 1/1<br />
Verifying : 1:net-snmp-5.5-44.el6_4.1.x86_64 1/1</p>
<p>Installed:<br />
net-snmp.x86_64 1:5.5-44.el6_4.1</p>
<p>Complete!<br />
[root@Client ~]#</p>
<p>Once the package is installed we can edit the snmpd.conf, before doing that I would suggest you make a copy of the orignal file</p>
<p><strong><span style="color: #ff9900;">#cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.bak</span></strong></p>
<p>Edit the snmpd.conf file with vi editor</p>
<p><strong><span style="color: #ff9900;">#vi /etc/snmp/snmp.conf</span></strong></p>
<p>1. Locate the line</p>
<p>com2sec notConfigUser  default  public</p>
<p>and comment it with #or just change the community name to something secret I have changed it to sizmic</p>
<p><span style="color: #99cc00;">com2sec notConfigUser default sizmic</span></p>
<p>2. Locate the lines and comment them with #</p>
<p>view systemview included .1.3.6.1.2.1.1<br />
view systemview included .1.3.6.1.2.1.25.1.1</p>
<p>add a new line</p>
<p><span style="color: #99cc00;">view                 all                            included                     .1                                   80</span></p>
<p>3. Locate the line</p>
<p># group context sec.model sec.level prefix read write notif<br />
access notConfigGroup &#8220;&#8221; any noauth exact<span style="color: #ff0000;"> systemview</span> one none</p>
<p>change the systemview to all</p>
<p><span style="color: #99cc00;">access notConfigGroup &#8220;&#8221; any noauth exact all none none</span></p>
<p><a href="https://quraishi.files.wordpress.com/2013/05/snmpfile-configuration.png"><img fetchpriority="high" decoding="async" class="alignright size-full wp-image-697" src="https://quraishi.files.wordpress.com/2013/05/snmpfile-configuration.png" alt="snmpfile configuration" width="604" height="487" /></a></p>
<p>the same changes are highlighted in the image</p>
<p><strong>Save the file</strong></p>
<p>once the file is configured save it by pressing escape key then<strong><span style="color: #ffcc00;"> : wq!</span></strong></p>
<p><strong>Start the snmp service </strong></p>
<p>once you save the file you can give the following command to start the snmp service</p>
<p><strong><span style="color: #ffcc00;">#service snmpd start</span></strong></p>
<p>Note: each time you make any change to the snmpd.conf file make sure to restart the snmpd service service</p>
<p>For restarting the snmpd service the command is</p>
<p><strong><span style="color: #ffcc00;">#service snmpd restart</span></strong></p>
<p><strong>Configure the snmp service to start automatically: </strong></p>
<p>once the service is started we need to make sure the Linux server knows to keep the service running in an event of reboot.</p>
<p>give the command</p>
<p><strong><span style="color: #ffcc00;">#chkconfig snmpd on </span></strong></p>
<p>this enable snmpd on the following runlevel 2, 3, 4, 5 ( this is required to make sure the snmpd service is running after a reboot to the linux system)</p>
<p>to make sure the service is running on the above runlevel you can use the following command</p>
<p><strong><span style="color: #ffcc00;">#chkconfig &#8211;list snmpd</span></strong></p>
<p># chkconfig &#8211;list snmpd<br />
snmpd 0:off 1:off <strong><span style="color: #339966;">2:on 3:on 4:on 5:on</span></strong> 6:off</p>
<p><strong>Test the snmpd service :</strong></p>
<p>to test it we need to give snmpwalk command.</p>
<p><span style="color: #ffcc00;"><b id="docs-internal-guid-58048806-70b6-7985-dbb6-0689e76ece70">snmpwalk -v 1 -c sizmic localhost</b></span></p>
<p>I have created a Video which can take you through these changes,belive me I had spend a long time to learn about how snmp monitoring works and I will be happy to help if you have any questions</p>
<p>I hope you find this post useful. Don&#8217;t forget to leave comments if you find it useful.]]&gt;</p></div>
<p><!-- .vgblk-rw-wrapper --></p>
]]></content:encoded>
					
					<wfw:commentRss>https://agileops.co.uk/snmp-configuration-on-linux-snmpd-conf/feed/</wfw:commentRss>
			<slash:comments>33</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">693</post-id>	</item>
	</channel>
</rss>
