<?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>Solusan &#187; CentoOS</title>
	<atom:link href="http://www.solusan.com/blog/centoos/feed" rel="self" type="application/rss+xml" />
	<link>http://www.solusan.com</link>
	<description>..:: Solusan - Otro blog más ::..</description>
	<lastBuildDate>Thu, 25 Aug 2011 16:39:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=185</generator>
		<item>
		<title>How To: Getting Started with Amazon EC2</title>
		<link>http://www.solusan.com/how-to-getting-started-with-amazon-ec2.html</link>
		<comments>http://www.solusan.com/how-to-getting-started-with-amazon-ec2.html#comments</comments>
		<pubDate>Sun, 13 Feb 2011 16:18:03 +0000</pubDate>
		<dc:creator>Solusan</dc:creator>
				<category><![CDATA[BSD]]></category>
		<category><![CDATA[CentoOS]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[DragonFlyBSD]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.solusan.com/?p=1395</guid>
		<description><![CDATA[Así.. sin valium y sin nada: Amazon EC2 is among the more potent items in Amazon&#8217;s web services arsenal. You&#8217;ve probably heard of many of the other services such as S3 for storage and FPS for payments. EC2 is all about the &#8220;elastic compute cloud.&#8221; In layman&#8217;s terms, it&#8217;s a server. In slightly less layman&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Así.. sin valium y sin nada:</p>
<p><a href="http://www.amazon.com/gp/browse.html?node=201590011">Amazon EC2</a> is among the more potent items in Amazon&#8217;s web services arsenal. You&#8217;ve  probably heard of many of the other services such as S3 for storage and  FPS for payments. EC2 is all about the &#8220;elastic compute cloud.&#8221; In  layman&#8217;s terms, it&#8217;s a server. In slightly less layman&#8217;s terms, EC2 lets  you easily run and manage many instances (like servers) and  given the proper software and configurations, have a scalable platform  for your web application, outsource resource-intensive tasks to EC2 or  for whatever you would use a server farm.</p>
<p>There are three different <a href="http://www.amazon.com/Instances-EC2-AWS/b/ref=sc_fe_c_0_201590011_2?ie=UTF8&amp;node=370375011&amp;no=201590011&amp;me=A36L942TSJ2AJA">sizes of EC2 instances</a> you can summon and they&#8217;re all probably more powerful than the server  currently running your blog. Unless you&#8217;re offloading video processing  or something intense to EC2, the default small instance with its 1.7GB  of RAM and 160GB disk should be more than fine. It&#8217;s just nice to know  that if for any reason I need a farm of machines each with 15GB of RAM, I  can get that easily.</p>
<p>EC2 has been around for a while but has gained interest in the last  few weeks as Amazon released an elastic IP feature. One of the larger  EC2 issues deals with data persistence on instances. There are many  limitations with EC2 that make it difficult to use unless you carefully  build around the EC2 architecture and don&#8217;t just assume that you can  move your app to EC2 flawlessly. If an instance crashes and you run it  again, you&#8217;ll loose data and when the instance comes back up it will  have a new IP, adding another hurdle with DNS issues. Fortunately, the  elastic IP feature lets you assign a static IP address to your  instances.</p>
<p>As the title of this article implies, this article is meant to be a  beginner&#8217;s look into tinkering with EC2. Just because you will be able  to host a page on EC2 at the end of this article does not mean you  should start using it as your only server. Many considerations need to  be made when using EC2 to get around the data persistence issue. If your  startup is looking to use EC2 as a scalable platform, fortunately there  are many services that have already built stable systems on top of EC2,  ready for your consumption: <a href="http://weoceo.weogeo.com/">WeoCeo</a>, <a href="http://code.google.com/p/scalr/">Scalr</a> and <a href="http://www.rightscale.com/">RightScale</a>. Enough talk, shall we jump right in?</p>
<p><strong>Note:</strong> Most of the information below (and more) is available in the EC2 API doc if you enjoy reading those things.</p>
<h4><span id="more-1395"></span>Getting Started</h4>
<p>In order to interact with any EC2 instances, you&#8217;ll need to install  Amazon&#8217;s command line tools and download your X.509 certificate from  Amazon. Let&#8217;s start with the certificate. Login to your Amazon account  and visit the AWS Access Identifiers page. In the X.509 certificate  section near the bottom, click <strong>Create New</strong>. You&#8217;ll be  greeted with a page allowing you to download both the private key file  and X.509 certificate. Both of these are very important, download them  to your desktop so you don&#8217;t lose them.</p>
<div><a href="http://www.solusan.com/wp-content/2011/02/amazon_aws_create_x509.jpg"><img class="aligncenter size-full wp-image-1400" title="amazon_aws_create_x509" src="http://www.solusan.com/wp-content/2011/02/amazon_aws_create_x509.jpg" alt="" width="500" height="211" /></a></div>
<p>Next up, grab the <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351&amp;categoryID=88">EC2 command line tools</a>. Extract them and you should be left with a folder named something like <em>ec2-api-tools-1.3-19403</em>. We&#8217;ll move those to a directory where we will also store the private and public keys.</p>
<p>The commands below assume you are working on an OS X machine in the Terminal.</p>
<pre><code>
mkdir ~/.ec2
cd ~/Desktop
mv *.pem ~/.ec2
cd ~/Desktop/ec2-api-tools-1.3-19403/  #depends on ec2 tools folder name
mv * ~/.ec2
</code></pre>
<p>This is what your .ec2 folder should have now.</p>
<div><a title="Amazon EC2 Folder" href="http://turbo.paulstamatiou.com/uploads/2008/04/ec2_howto_folder_800.jpg"></a><a href="http://www.solusan.com/wp-content/2011/02/ec2_howto_folder.jpg"><img class="aligncenter size-full wp-image-1402" style="border: 1px solid black;" title="ec2_howto_folder" src="http://www.solusan.com/wp-content/2011/02/ec2_howto_folder.jpg" alt="" width="500" height="181" /></a></div>
<p>Next up, we&#8217;ll set some paths in your bash profile so the OS knows where the EC2 tools are located.</p>
<p><code>sudo vi ~/.bash_profile</code></p>
<p>Add these lines, replacing &#8220;YOURKEYNAME&#8221; with the actual file name of your private and public keys, then save.</p>
<pre><code>
export EC2_HOME=~/.ec2
export PATH=$PATH:$EC2_HOME/bin
export EC2_PRIVATE_KEY=pk-YOURKEYNAME.pem
export EC2_CERT=cert-YOURKEYNAME.pem
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home/
</code></pre>
<p>To get the changes noticed by the OS immediately, run <em>source</em>.</p>
<p><code>source ~/.bash_profile</code></p>
<p>Now we can actually use those helpful EC2 command line tools.</p>
<h4>AMIs, Keypairs and Instances, Oh My!</h4>
<p>Before proceeding, you&#8217;ll need to grok the concept of AMIs. They are  Amazon Machine Images and whenever you create an EC2 instance, an AMI is  quickly loaded on the machine. They&#8217;re essentially images of the OS. If  you terminate an instance and bring it up again, your machine will only  have the data initially included in the image. That&#8217;s why lots of work  goes into making (&#8220;bundling&#8221;) a good image you will always use that has  the configurations and software you need so you don&#8217;t have to do much  whenever you load the image. This article won&#8217;t delve into creating your  own AMIs but fortunately there are many great, public AMIs available  for use.</p>
<p>To SSH into the instance we&#8217;ll create from an AMI we find, we&#8217;ll need  to create a keypair. This is a different key from the one provided to  us by Amazon. That was for using the EC2 tools and interacting with the  instances in terms of creation and management. To actually SSH into an  instance, a separate keypair is required as there are no passwords by  default.</p>
<pre><code>
cd ~/.ec2 #we pretty much always need to be here
ec2-add-keypair pstam-keypair
</code></pre>
<p>That will print out the private key, which you&#8217;ll need to copy and paste into a file manually.</p>
<div><a title="Amazon EC2 - Adding a keypair" href="http://turbo.paulstamatiou.com/uploads/2008/04/ec2_keypair_529.jpg"></a><a href="http://www.solusan.com/wp-content/2011/02/ec2_keypair.jpg"><img class="aligncenter size-full wp-image-1403" title="ec2_keypair" src="http://www.solusan.com/wp-content/2011/02/ec2_keypair.jpg" alt="" width="500" height="189" /></a></div>
<pre><code>
vi ~/.ec2/id_rsa-pstam-keypair
#now paste the private key and save
sudo chmod 600 id_rsa-pstam-keypair
</code></pre>
<p>Now we can find which AMI we want to toss on our yet-to-be-created EC2 instance.</p>
<pre><code>
cd ~/.ec2
ec2-describe-images -a
</code></pre>
<p>Using the <em>-a</em> option will list all of the AMIs you have  access to, and there are a lot. Alternatively you can list just the  images Amazon has:</p>
<pre><code>
ec2-describe-images -o amazon
</code></pre>
<div><a title="Amazon EC2 AMIs" href="http://turbo.paulstamatiou.com/uploads/2008/04/ec2_images_1000.jpg"></a><a href="http://www.solusan.com/wp-content/2011/02/ec2_images.jpg"><img class="aligncenter size-full wp-image-1405" title="ec2_images" src="http://www.solusan.com/wp-content/2011/02/ec2_images.jpg" alt="" width="500" height="211" /></a></div>
<p>I found an AMI that I&#8217;ll try out.</p>
<blockquote><p>ami.yyang.info/gentoo-nginx-php-mysql-06feb2008.manifest.xml</p></blockquote>
<p>It&#8217;s a Gentoo Linux install with PHP, MySQL and nginx. When looking at AMIs, you need to find the AMI ID. In this case, it&#8217;s <em>ami-6138dd08</em>.</p>
<p><code> ec2-run-instances ami-6138dd08 -k pstam-keypair </code></p>
<p>The instance is now being loaded with the AMI I selected and booting  up. It should output some text with &#8220;RESERVATION&#8221; and &#8220;INSTANCE&#8221; rows.  On the instance row, it will say something like <em>pending pstam-keypair</em> until it has fully booted up. When an instance is ready to go, its URL  and internal address will be supplied with the ec2din command below.</p>
<p><code> ec2-describe-instances </code></p>
<div><a title="Amazon EC2 Describe Instances" href="http://turbo.paulstamatiou.com/uploads/2008/04/ec2_describe_instances_600.jpg"></a><a href="http://www.solusan.com/wp-content/2011/02/ec2_describe_instances.jpg"><img class="aligncenter size-full wp-image-1406" title="ec2_describe_instances" src="http://www.solusan.com/wp-content/2011/02/ec2_describe_instances.jpg" alt="" width="500" height="49" /></a></div>
<p>If you try to access the URL in a browser, nothing will happen just  yet as the firewall blocks all ports by default. You&#8217;ll have to open up  the ones you need. We&#8217;ll do port 80 for HTTP and 22 for SSH. If the AMI  you are running doesn&#8217;t have a web server installed, accessing the EC2  URL in a browser won&#8217;t bring up anything regardless.</p>
<pre><code>
ec2-authorize default -p 22
ec2-authorize default -p 80
</code></pre>
<p>If you want to undo any port authorizations you&#8217;ve made, you can use <em>ec2-revoke</em>.  Now if you access your EC2 URL in a browser you&#8217;ll get something like a  default Apache page, or in the case of the AMI I&#8217;m using, a phpinfo()  page.</p>
<div><a title="EC2 Instance loaded in Firefox" href="http://turbo.paulstamatiou.com/uploads/2008/04/ec2_phpinfo_ffox_850.jpg"></a><a href="http://www.solusan.com/wp-content/2011/02/ec2_phpinfo_ffox.jpg"><img class="aligncenter size-full wp-image-1407" title="ec2_phpinfo_ffox" src="http://www.solusan.com/wp-content/2011/02/ec2_phpinfo_ffox.jpg" alt="" width="500" height="161" /></a></div>
<p>The next step to actually using your new EC2 instance is SSHing into  it to get full root access. Run the line below and replace the EC2 URL  with the one provided to you by the <em>ec2-describe-images</em> command earlier.</p>
<pre><code>
ssh -i id_rsa-pstam-keypair root@ec2-XXX-XXX-XXX-XXX.z-2.compute-1.amazonaws.com
</code></pre>
<p>If you run into the problem I did, this won&#8217;t work and you&#8217;ll be  asked for an EC2 instance password that doesn&#8217;t exist. I found out this  was because I initially created the <em>id_rsa-pstam-keypair</em> file  as the root user but ran the ssh command as a regular user which was not  able to access that keypair. That was easily fixed with <em>sudo chown Paul id_rsa-pstam-keypair</em> but you won&#8217;t have this issue if you followed this guide.</p>
<p>Otherwise, you should be logged into your EC2 instance as root over  SSH. Now that we&#8217;re in, we can tinker with the system however we like  and even see what kind of hardware we&#8217;re running on, setup FTP and drop a  web app into <em>/var/www/localhost/htdocs</em> or whatever. Having full root access in any OS you wish is one of the boons of using Amazon EC2.</p>
<div><a title="SSHed into EC2 Instance - cpuinfo" href="http://turbo.paulstamatiou.com/uploads/2008/04/ec2_ssh_catproc_700.jpg"></a><a href="http://www.solusan.com/wp-content/2011/02/ec2_ssh_catproc.jpg"></a><a href="http://www.solusan.com/wp-content/2011/02/ec2_ssh_catproc.jpg"><img class="aligncenter size-full wp-image-1409" title="ec2_ssh_catproc" src="http://www.solusan.com/wp-content/2011/02/ec2_ssh_catproc.jpg" alt="" width="500" height="257" /></a></div>
<h4>Static IP Time</h4>
<p>If you plan on running your instance for good, you&#8217;ll want a static IP. Let&#8217;s get one for you.</p>
<p><code> ec2-allocate-address </code></p>
<div><a href="http://www.solusan.com/wp-content/2011/02/ec2_allocate_ip.jpg"><img class="aligncenter size-full wp-image-1410" title="ec2_allocate_ip" src="http://www.solusan.com/wp-content/2011/02/ec2_allocate_ip.jpg" alt="" width="500" height="93" /></a></div>
<p>Now we just need to tie that IP address to the instance ID of the  instance you wish to give a static IP. You can grab the instance ID (not  to be confused with the ami-* AMI ID) by running <em>ec2-describe-instances</em>.</p>
<p>In the line below, replace XXX.XXX.XXX.XXX with the IP address you  were given above and replace i-yourinstance with your actual instance  ID.</p>
<p><code> ec2-associate-address -i i-yourinstance XXX.XXX.XXX.XXX </code></p>
<div><a href="http://www.solusan.com/wp-content/2011/02/ec2_terminate_instance.jpg"><img class="aligncenter size-full wp-image-1411" title="ec2_terminate_instance" src="http://www.solusan.com/wp-content/2011/02/ec2_terminate_instance.jpg" alt="" width="500" height="104" /></a></div>
<p>Give it a few minutes and your instance will be accessible through  that new IP in addition to the longer EC2 URL we were previously using.  Please note that if you terminate the instance, the IP does not remain  tied to the instance, to the best of my knowledge. Terminating an  instance seems to be a nuclear option compared to simply rebooting an  instance via regular unix commands over SSH.</p>
<p>Now that the instance has an IP you can setup a domain name with it  if you want. The easiest way I&#8217;ve found of doing this is through a DNS  service like <a href="http://everydns.net/">EveryDNS</a>. Just provide  your domain name registrar with EveryDNS&#8217;s domain name servers, create  an EveryDNS account, add your domain and create an A record with your  newly associated EC2 instance IP address.</p>
<div><a title="EveryDNS - Setup Domain" href="http://turbo.paulstamatiou.com/uploads/2008/04/everydns_setup_domain_1200.jpg"></a><a href="http://www.solusan.com/wp-content/2011/02/everydns_setup_domain.jpg"><img class="aligncenter size-full wp-image-1412" title="everydns_setup_domain" src="http://www.solusan.com/wp-content/2011/02/everydns_setup_domain.jpg" alt="" width="500" height="255" /></a></div>
<p>The TTL on EveryDNS seems to be fixed at 3600 so it might take a  while for propagation, especially if you&#8217;re used to pushing down TTL to  300 when doing DNS work.</p>
<h4>Terminating Your EC2 Instance</h4>
<p>Killing your instance for good can be done, like every other action,  through an EC2 command line tool. This time, it&#8217;s the appropriately  named <em>ec2-terminate-instances</em> (ec2kill). Just provide it with the instance ID of your instance (get it from running ec2din).</p>
<p><code> ec2-terminate-instances i-yourinstance </code></p>
<div><img src="http://turbo.paulstamatiou.com/uploads/2008/04/ec2_terminate_instance.jpg" alt="Terminate EC2 Instance" /></div>
<p>It should return with a &#8220;shutting-down&#8221; status but you&#8217;ll definitely want to check back in a few minutes with <em>ec2-describe-instances</em> to make sure it shutdown successfully and comes up as &#8220;terminated&#8221;.  There are a few cases where instances will hang on shutdown and you will  continue to be charged for instance hours.</p>
<div><a title="EC2 Instances Terminated" href="http://turbo.paulstamatiou.com/uploads/2008/04/ec2_terminated_instances_600.jpg"><img src="http://turbo.paulstamatiou.com/uploads/2008/04/ec2_terminated_instances.jpg" alt="EC2 Instances Terminated" /></a></div>
<h4>The Next Step</h4>
<p>Now that you&#8217;ve successfully launched your first Amazon EC2 instance,  you&#8217;re ready to begin exploring the endless EC2 possibilities. I&#8217;m  still learning about taking the next step but overall, EC2 really isn&#8217;t  something to mess with unless you have quite a bit of sysadmin and  development experience. Actually using EC2 as an elastic compute cloud  usually involves setting up an instance as a load balancer and giving  that instance access to an array of active EC2 instances which it can  hand work to. Other hurdles include providing multiple instances access  to the same database, using Amazon S3 as a persistent filesystem and  employing highly redundant backup systems given the relatively volatile  nature of instances.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.solusan.com/how-to-getting-started-with-amazon-ec2.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Analizando logs</title>
		<link>http://www.solusan.com/analizando-logs.html</link>
		<comments>http://www.solusan.com/analizando-logs.html#comments</comments>
		<pubDate>Thu, 02 Jul 2009 09:35:17 +0000</pubDate>
		<dc:creator>Solusan</dc:creator>
				<category><![CDATA[CentoOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[/var/log/secure]]></category>

		<guid isPermaLink="false">http://www.solusan.com/?p=1193</guid>
		<description><![CDATA[Un pequeño apunte para sacar datos de /var/log/secure En este caso un listado de ataques a uno de los servidores. root@elserver [~]# cat /var/log/secure &#124; grep Failed &#124; cut -d: -f7 &#124; cut -d' ' -f1 &#124; sort&#124; uniq -c 8 148.228.20.240 5 190.196.23.163 8 200.164.76.166 8 200.234.201.121 12 202.103.25.132 6 61.37.158.250 11 77.51.250.130 3 [...]]]></description>
			<content:encoded><![CDATA[<p>Un pequeño apunte para sacar datos de /var/log/secure</p>
<p>En este caso un listado de ataques a uno de los servidores.</p>
<pre lang="bash">
root@elserver [~]#  cat /var/log/secure | grep Failed | cut -d: -f7 | cut -d' ' -f1 | sort| uniq -c
 8 148.228.20.240
 5 190.196.23.163
 8 200.164.76.166
 8 200.234.201.121
 12 202.103.25.132
 6 61.37.158.250
 11 77.51.250.130
 3 80.108.210.147

root@elserver [~]#  netstat -np | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | awk '{if ($1&gt;2){print $0}}'
 49
 16 127.0.0.1
 19 DGRAM
 70 STREAM</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.solusan.com/analizando-logs.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iptables TIP</title>
		<link>http://www.solusan.com/iptables-tip.html</link>
		<comments>http://www.solusan.com/iptables-tip.html#comments</comments>
		<pubDate>Fri, 25 Apr 2008 11:49:06 +0000</pubDate>
		<dc:creator>Solusan</dc:creator>
				<category><![CDATA[CentoOS]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[SuSE]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[iptables]]></category>

		<guid isPermaLink="false">http://www.solusan.com/?p=1008</guid>
		<description><![CDATA[Necesitamos que un equipo tenga acceso a toda la red corporativa y a si mismo, pero no al &#8216;resto del mundo&#8217;. #!/bin/bash iptables -F iptables -X iptables -Z # abrimos trafico a la red interna iptables -A INPUT -s 127.0.0.0/8 -j ACCEPT iptables -A OUTPUT -s 127.0.0.0/8 -j ACCEPT iptables -A INPUT -s 10.120.0.0/16 -j [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.solusan.com/wp-content/2008/04/iptablespz5.jpg"><img class="alignnone size-thumbnail wp-image-1009 alignright" style="float: right;" title="iptablespz5" src="http://www.solusan.com/wp-content/2008/04/iptablespz5-150x150.jpg" alt="" width="96" height="96" /></a>Necesitamos que un equipo tenga acceso a toda la red corporativa y a si mismo, pero no al &#8216;resto del mundo&#8217;.</p>
<blockquote><p><code>#!/bin/bash<br />
iptables -F<br />
iptables -X<br />
iptables -Z</code></p>
<p><code># abrimos trafico a la red interna</code></p>
<p><code>iptables -A INPUT -s 127.0.0.0/8 -j ACCEPT<br />
iptables -A OUTPUT -s 127.0.0.0/8 -j ACCEPT<br />
iptables -A INPUT -s 10.120.0.0/16 -j ACCEPT<br />
iptables -A INPUT -s 10.120.0.0/16 -j ACCEPT</code></p>
<p><code>iptables -A OUTPUT -d ! 10.120.0.0/16 -j DROP</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.solusan.com/iptables-tip.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Instalación de Nagios / Centreon</title>
		<link>http://www.solusan.com/instalacion-de-nagios-centreon.html</link>
		<comments>http://www.solusan.com/instalacion-de-nagios-centreon.html#comments</comments>
		<pubDate>Wed, 23 Apr 2008 11:04:43 +0000</pubDate>
		<dc:creator>Solusan</dc:creator>
				<category><![CDATA[CentoOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[centreon]]></category>
		<category><![CDATA[como]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[nagios]]></category>

		<guid isPermaLink="false">http://www.solusan.com/?p=997</guid>
		<description><![CDATA[Nagios, aveces peca de ser poco usable a la hora de tener la usabilidad que debería tener amén de que podría implementar tambien toda una serie funcionalidades. (Nagios) / (Nagios+Centreon) Quick Install de Centron Añadir repositorios: (http://www.solusan.com/actualizar-repositorios-centos.html) En esta parte del post explicaré como agregar repositorios de software que podemos necesitar para la instalación que [...]]]></description>
			<content:encoded><![CDATA[<p>Nagios, aveces peca de ser poco usable a la hora de tener la usabilidad que debería tener amén de que podría implementar tambien toda una serie funcionalidades.</p>
<p align="center"><a href="http://www.solusan.com/wp-content/2008/04/nagios.jpg"><img class="alignnone size-full wp-image-998" title="nagios" src="http://www.solusan.com/wp-content/2008/04/nagios.jpg" alt="" width="178" height="135" /></a> <a href="http://www.solusan.com/wp-content/2008/04/oreon1.png"><img class="alignnone size-full wp-image-999" title="oreon1" src="http://www.solusan.com/wp-content/2008/04/oreon1.png" alt="" width="200" height="136" /></a><br />
<em>(Nagios) / (Nagios+Centreon)</em></p>
<h3><strong>Quick Install de Centron<br />
</strong></h3>
<p>Añadir repositorios: (<a title="http://www.solusan.com/actualizar-repositorios-centos.html" href="http://www.solusan.com/actualizar-repositorios-centos.html" target="_blank">http://www.solusan.com/actualizar-repositorios-centos.html</a>)</p>
<p>En esta parte del post explicaré como agregar repositorios de software que podemos necesitar para la instalación que nos ocupa</p>
<p style="padding-left: 30px;"><strong>Sistema Operativo: </strong></p>
<ul style="padding-left: 30px;">
<li>Centos 5</li>
</ul>
<p style="padding-left: 30px;"><strong>Repositorios:</strong></p>
<ul style="padding-left: 30px;">
<li><strong>dag</strong>
<ul>
<li>Bajamos el <a title="dag" href="http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm" target="_blank">este</a> paquete</li>
</ul>
<ul>
<li>Instalamos con <span style="font-style: italic;">yum install </span><a class="urlextern" style="font-style: italic;" title="http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm" rel="nofollow" href="http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm">rpmforge-release-0.3.6-1.el5.rf.i386.rpm</a></li>
</ul>
<ul>
<li>Actualizamos <span style="font-style: italic;">yum update</span></li>
</ul>
</li>
</ul>
<ul style="padding-left: 30px;">
<li><span style="font-weight: bold;">karan</span>
<ul>
<li>Bajamos los siguientes archivos:</li>
<li><a class="urlextern" title="http://centos.karan.org/kbsingh-CentOS-Extras.repo" rel="nofollow" href="http://centos.karan.org/kbsingh-CentOS-Extras.repo">http://centos.karan.org/kbsingh-CentOS-Extras.repo</a></li>
<li><a class="urlextern" title="http://centos.karan.org/kbsingh-CentOS-Misc.repo" rel="nofollow" href="http://centos.karan.org/kbsingh-CentOS-Misc.repo">http://centos.karan.org/kbsingh-CentOS-Misc.repo</a></li>
</ul>
</li>
</ul>
<ul style="padding-left: 30px;">
<li>Los colocamos en <span style="font-style: italic;">/etc/yum.repos.d</span></li>
<li>Damos <span style="font-style: italic;">rpm &#8211;import http://centos.karan.org/RPM-GPG-KEY-karan.org.txt</span></li>
</ul>
<p style="padding-left: 30px;">Enlace de cosulta: <a title="http://wiki.centos.org/Repositories" href="http://wiki.centos.org/Repositories" target="_blank">http://wiki.centos.org/Repositories</a></p>
<p><strong>Instalamos:</strong></p>
<pre lang="bash"># yum install rrdtool rrdtool-perl net-snmp
# yum install php-mysql php-pear php-snmp php-gd libgd2 gd-devel libpng libpng-devel perl-config-IniFiles perl-Crypt-DES perl-Digest-HMAC perl-Digest-SHA1 perl-GD perl-IO-Socket-INET6 perl-Net-SNMP perl-rrdtool perl-Socket6
# yum install php-pear-DB php-pear-DB-DataObject php-pear-DB-DataObject-FormBuilder php-pear-MDB2 php-pear-Date php-pear-Numbers-Roman php-pear-Numbers-Words php-pear-HTML-Common php-pear-HTML-QuickForm php-pear-HTML-QuickForm-advmultiselect php-pear-HTML-Table php-pear-Archive-Tar php-pear-Auth-SASL php-pear-Console-Getopt php-pear-HTTP php-pear-Image-Canvas php-pear-Image-Color php-pear-Image-Graph php-pear-Image-GraphViz php-pear-Mail php-pear-Mail-Mime php-pear-Net-SMTP php-pear-Net-Socket php-pear-Net-Traceroute php-pear-Net-Ping php-pear-Validate php-pear-XML-RPC
# vi /etc/php.ini
memory_limit = 16M
# wget http://download.pear.php.net/package/HTML_QuickForm_advmultiselect-1.1.0.tgz
# tar zxvf HTML_QuickForm_advmultiselect-1.1.0.tgz
# cd HTML_QuickForm_advmultiselect-1.1.0
# cp advmultiselect.php /usr/share/pear/HTML/QuickForm</pre>
<p><span id="more-997"></span><br />
Enlaces simbólicos y permisos a crear.</p>
<pre lang="bash">
# mkdir /usr/local/nagios
# mkdir /usr/local/nagios/bin
# ln -s /etc/nagios /usr/local/nagios/etc
# ln -s /usr/lib/nagios/plugins /usr/local/nagios/libexec
# ln -s /usr/sbin/nagios /usr/local/nagios/bin/nagios
# chown -R apache:nagios /etc/nagios/
# chmod -R 775 /etc/nagios/
# chown -R apache:nagios /usr/lib/nagios/plugins
# chmod -R 775 /usr/lib/nagios/plugins</pre>
<p>Bajaremos Centreon de la página del fabricante:</p>
<p><a title="http://www.centreon.com/Download/Download.html" href="http://www.centreon.com/Download/Download.html" class="broken_link">http://www.centreon.com/Download/Download.html</a></p>
<blockquote><p><code># tar zxvf centreon-1.4.tar.gz<br />
# cd centreon-1.4</code></p></blockquote>
<p>Procedemos a la instalación:</p>
<pre lang="bash"># ./install.sh
Where is installed Nagios ?
/usr/local/nagios
Where are your nagios etc directory ?
/usr/local/nagios/etc
Where are your nagios plugins / libexec  directory ?
/usr/local/nagios/libexec
Where are your nagios bin  directory ?
/usr/local/nagios/bin
Where do I install Oreon ?
/usr/local/oreon
Where is sudo ?
/etc/sudoers
Where is installed RRD perl modules (RRDs.pm) ?</pre>
<p><em> Este paso tiene un poco de miga, haz una búsqueda y pica el direcrotio resultante</em><br />
<code># find / -name RRDs.pm</code></p>
<pre lang="bash">
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi
Where is rrdtool binary ?
/usr/bin/rrdtool
Where is mail binary ?
/bin/mail
Where is PEAR Path ?
/usr/share/pear</pre>
<p>Puede que te de problemas la instalación de las rrdtools.</p>
<p>Desde este enlace puedes bajarte el paquete que necesites, varias formas:</p>
<ul>
<li><a title="http://dag.wieers.com/rpm/packages/rrdtool/" href="http://dag.wieers.com/rpm/packages/rrdtool/" target="_blank">http://dag.wieers.com/rpm/packages/rrdtool/</a></li>
<li># wget <a href="http://dag.wieers.com/rpm/packages/perl-RRD-Simple/perl-RRD-Simple-1.44-1.el4.rf.noarch.rpm" target="_blank">http://dag.wieers.com/rpm/packages/perl-RRD-Simple/perl-RRD-Simple-1.44-1.el5.rf.noarch.rpm</a><code> | rpm -ivh perl-RRD-Simple-1.44-1.el5.rf.noarch.rpm</code></li>
<li><a title="http://rpmfind.net/linux/rpm2html/search.php?query=+rrdtool-perl&amp;submit=Search+." href="http://rpmfind.net/linux/rpm2html/search.php?query=+rrdtool-perl&amp;submit=Search+." target="_blank">http://rpmfind.net/linux/rpm2html/search.php?query=+rrdtool-perl&amp;submit=Search+.</a></li>
</ul>
<p>Una vez terminada la instalación en el navegador escribiremos esta URL al objeto de crear la instalación de Centreon.</p>
<p>http://nombredemaquina/centreon/ (ten <strong>muy</strong> encuenta la última barra de la url)</p>
<p style="text-align: center;"><a href="http://www.solusan.com/wp-content/2008/04/image-1.png"><img class="alignnone size-full wp-image-1001" title="image-1" src="http://www.solusan.com/wp-content/2008/04/image-1.png" alt="" width="500" height="347" /></a></p>
<p style="text-align: center;"><a href="http://www.solusan.com/wp-content/2008/04/image-2.png"><img class="alignnone size-full wp-image-1002" title="image-2" src="http://www.solusan.com/wp-content/2008/04/image-2.png" alt="" width="500" height="318" /></a></p>
<p style="text-align: center;"><a href="http://www.solusan.com/wp-content/2008/04/image-3.png"><img class="alignnone size-full wp-image-1003" title="image-3" src="http://www.solusan.com/wp-content/2008/04/image-3.png" alt="" width="500" height="376" /></a></p>
<p style="text-align: center;"><a href="http://www.solusan.com/wp-content/2008/04/image-41.png"><img class="alignnone size-full wp-image-1000" title="image-41" src="http://www.solusan.com/wp-content/2008/04/image-41.png" alt="" width="500" height="582" /></a></p>
<p style="text-align: center;"><a href="http://www.solusan.com/wp-content/2008/04/image-5.png"><img class="alignnone size-medium wp-image-1004" title="image-5" src="http://www.solusan.com/wp-content/2008/04/image-5-300x184.png" alt="" width="396" height="243" /></a></p>
<p style="text-align: center;"><a href="http://www.solusan.com/wp-content/2008/04/image-6.png"><img class="alignnone size-medium wp-image-1005" title="image-6" src="http://www.solusan.com/wp-content/2008/04/image-6-300x160.png" alt="" width="395" height="207" /></a></p>
<p style="text-align: center;"><a href="http://www.solusan.com/wp-content/2008/04/image-7.png"><img class="alignnone size-full wp-image-1006" title="image-7" src="http://www.solusan.com/wp-content/2008/04/image-7.png" alt="" width="500" height="260" /></a></p>
<p>Et Voilà.</p>
<p><strong>Importar una confirguración de Nagios a Centreon.<br />
</strong></p>
<p>Crea un archivo comprimido con la configuración.</p>
<blockquote><p># cd /etc/nagios<br />
# tar zcvf nagios-backup.tgz *</p></blockquote>
<p>Luego ve al menú de Centreon  / Nagios / Load e importamos el fichero *.tgz.</p>
<p>La úlimta etapa .Para esto deberás ir a  Configuration / Nagios / Generate (Generar) luego selecciona la opción y clica en Export.</p>
<p align="center"><a href="http://www.solusan.com/wp-content/2008/04/image-21.png"><img class="alignnone size-full wp-image-1007" title="image-21" src="http://www.solusan.com/wp-content/2008/04/image-21.png" alt="" width="500" height="261" /></a></p>
<p style="text-align: left;">Enlace de interés para configuración y explotación de Centreon:</p>
<p style="text-align: left;"><a title="http://guia-debian.es/index.php?title=Nagios/Centreon_-_Configuraci%C3%B3n_de_Centreon_Data_Storage#Configuraci.C3.B3n_de_Centreon_Data_Storage" href="http://guia-debian.es/index.php?title=Nagios/Centreon_-_Configuraci%C3%B3n_de_Centreon_Data_Storage#Configuraci.C3.B3n_de_Centreon_Data_Storage" target="_blank" class="broken_link">http://guia-debian.es/index.php?title=Nagios/Centreon</a></p>
<p align="left">
]]></content:encoded>
			<wfw:commentRss>http://www.solusan.com/instalacion-de-nagios-centreon.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Actualizar repositorios CentOS</title>
		<link>http://www.solusan.com/actualizar-repositorios-centos.html</link>
		<comments>http://www.solusan.com/actualizar-repositorios-centos.html#comments</comments>
		<pubDate>Tue, 15 Apr 2008 14:17:06 +0000</pubDate>
		<dc:creator>Solusan</dc:creator>
				<category><![CDATA[CentoOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Add new tActualizar repositorios CentOSag]]></category>

		<guid isPermaLink="false">http://www.solusan.com/?p=993</guid>
		<description><![CDATA[Tip de como actualizar los repositorios en CentOS en este caso la Release 5: Sistema Operativo: Centos 5 Repositorios: dag Bajamos el este paquete Instalamos con yum install rpmforge-release-0.3.6-1.el5.rf.i386.rpm Actualizamos yum update karan Bajamos los siguientes archivos: http://centos.karan.org/kbsingh-CentOS-Extras.repo http://centos.karan.org/kbsingh-CentOS-Misc.repo Los colocamos en /etc/yum.repos.d Damos rpm --import http://centos.karan.org/RPM-GPG-KEY-karan.org.txt Gracias @sharker]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.solusan.com/wp-content/2008/04/1184336604.png"><img class="alignright size-thumbnail wp-image-994" style="float: right;" title="1184336604" src="http://www.solusan.com/wp-content/2008/04/1184336604-150x150.png" alt="" width="150" height="150" /></a>Tip de como actualizar los repositorios en CentOS en este caso la Release 5:<br />
<strong>Sistema Operativo: </strong></p>
<ul>
<li>Centos 5</li>
</ul>
<p><strong>Repositorios:</strong></p>
<ul>
<li><strong>dag</strong></li>
</ul>
<div style="margin-left: 40px;">
<ul>
<li>Bajamos el <a title="dag" href="http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm" target="_blank">este</a> paquete</li>
<li>Instalamos con <span style="font-style: italic;">yum install </span><a class="urlextern" style="font-style: italic;" title="http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm" rel="nofollow" href="http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm">rpmforge-release-0.3.6-1.el5.rf.i386.rpm</a></li>
<li>Actualizamos <span style="font-style: italic;">yum update</span></li>
</ul>
</div>
<ul>
<li><span style="font-weight: bold;">karan</span></li>
</ul>
<ul>
<li>
<ul>
<li>Bajamos los siguientes archivos:</li>
</ul>
<ul>
<li><a class="urlextern" title="http://centos.karan.org/kbsingh-CentOS-Extras.repo" rel="nofollow" href="http://centos.karan.org/kbsingh-CentOS-Extras.repo">http://centos.karan.org/kbsingh-CentOS-Extras.repo</a></li>
<li><a class="urlextern" title="http://centos.karan.org/kbsingh-CentOS-Misc.repo" rel="nofollow" href="http://centos.karan.org/kbsingh-CentOS-Misc.repo">http://centos.karan.org/kbsingh-CentOS-Misc.repo</a></li>
</ul>
</li>
<li>Los colocamos en <span style="font-style: italic;">/etc/yum.repos.d</span></li>
<li>Damos <span style="font-style: italic;"><code>rpm --import http://centos.karan.org/RPM-GPG-KEY-karan.org.txt</code></span></li>
</ul>
<p>Gracias @<a title="http://twitter.com/Sharker" href="http://twitter.com/Sharker" target="_blank">sharker</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.solusan.com/actualizar-repositorios-centos.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

