<?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>CloudMB &#187; Linux</title>
	<atom:link href="http://blog.cloudmb.cz/category/it/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.cloudmb.cz</link>
	<description>online notes</description>
	<lastBuildDate>Tue, 10 Dec 2019 13:38:03 +0000</lastBuildDate>
	<language>cs-CZ</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.33</generator>
	<item>
		<title>Nagios3 &#8211; multiple servers at one WAN IP address</title>
		<link>http://blog.cloudmb.cz/2013/12/nagios3-multiple-servers-at-one-wan-ip-address/</link>
		<comments>http://blog.cloudmb.cz/2013/12/nagios3-multiple-servers-at-one-wan-ip-address/#comments</comments>
		<pubDate>Thu, 19 Dec 2013 12:12:16 +0000</pubDate>
		<dc:creator><![CDATA[hatex]]></dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[multiple server]]></category>
		<category><![CDATA[nagios3]]></category>

		<guid isPermaLink="false">http://www.odnuly.cz/?p=542</guid>
		<description><![CDATA[]]></description>
				<content:encoded><![CDATA[<p>You need to create a new check_nt since the default port 12489 is used. Command which is found in “commands.cfg” (towards the bottom). In my case /etc/nagios-plugins/config/nt.cfg.</p>
<p><span id="more-542"></span></p>
<p>Add this:</p>
<blockquote><p># &#8218;check_nt2&#8242; command definition<br />
define command{<br />
command_name check_nt2<br />
command_line /usr/lib/nagios/plugins/check_nt -H &#8218;$HOSTADDRESS$&#8216; -p 12490 -v &#8218;$ARG1$&#8216;<br />
}</p>
<p># &#8218;check_nt3&#8242; command definition<br />
define command{<br />
command_name check_nt3<br />
command_line /usr/lib/nagios/plugins/check_nt -H &#8218;$HOSTADDRESS$&#8216; -p 12491 -v &#8218;$ARG1$&#8216;<br />
}</p>
<p>&nbsp;</p></blockquote>
<p>Try it by:</p>
<blockquote><p>cd /usr/lib/nagios/plugins</p>
<p>./check_nt -H xxx.xxx.xxx.xxx -p 12490 -v CPULOAD -w 80 -c 90 -l 5,80,90,10,80,90</p>
<p>RESULT:</p>
<p>CPU Load 1% (5 min average) 0% (10 min average) |   &#8218;5 min avg Load&#8217;=1%;80;90;0;100 &#8217;10 min avg Load&#8217;=0%;80;90;0;100</p></blockquote>
<p>After the test, add to server template:</p>
<blockquote><p>define service{<br />
use generic-service<br />
host_name TEST<br />
service_description Uptime<br />
check_command check_nt2!&#8217;UPTIME&#8216;<br />
}</p>
<p>define service{<br />
use generic-service<br />
host_name TEST<br />
service_description CPU Load<br />
check_command check_nt2!&#8217;CPULOAD -l 5,100,100&#8242;<br />
}</p></blockquote>
<p>On client site set firewall 12490 to IP server.</p>
<p><map name='google_ad_map_542_a2db11ed00ddbb5d'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/542?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_542_a2db11ed00ddbb5d' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=542&amp;url= http%3A%2F%2Fblog.cloudmb.cz%2F2013%2F12%2Fnagios3-multiple-servers-at-one-wan-ip-address%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://blog.cloudmb.cz/2013/12/nagios3-multiple-servers-at-one-wan-ip-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://blog.cloudmb.cz/2012/02/synchronizace-mailu-na-jiny-server/</link>
		<comments>http://blog.cloudmb.cz/2012/02/synchronizace-mailu-na-jiny-server/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 10:50:41 +0000</pubDate>
		<dc:creator><![CDATA[hatex]]></dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.odnuly.cz/?p=411</guid>
		<description><![CDATA[]]></description>
				<content:encoded><![CDATA[<p>Jednoduchá synchronizace mailového ú?tu p?es IMAP (hodí se v p?ípad? migrace na jiný server). Instalace z DEB repozitory <strong>imapsync</strong>.</p>
<p>Doporu?ené nastavení:</p>
<p>imapsync &#8211;host1 ip &#8211;user1 xx@xxx.com &#8211;passfile1 /home/file &#8211;host2 ip &#8211;user2 xx@xxx.com &#8211;passfile2 /home/file</p>
<p>Nebo:</p>
<pre>imapsync \
 --host1 imap.truc.org --user1 foo --password1 secret1 \
 --host2 imap.trac.org --user2 bar --password2 secret2</pre>
<p><map name='google_ad_map_411_a2db11ed00ddbb5d'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/411?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_411_a2db11ed00ddbb5d' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=411&amp;url= http%3A%2F%2Fblog.cloudmb.cz%2F2012%2F02%2Fsynchronizace-mailu-na-jiny-server%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://blog.cloudmb.cz/2012/02/synchronizace-mailu-na-jiny-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>500 Illegal PORT</title>
		<link>http://blog.cloudmb.cz/2010/09/500-illegal-port/</link>
		<comments>http://blog.cloudmb.cz/2010/09/500-illegal-port/#comments</comments>
		<pubDate>Sun, 12 Sep 2010 09:15:16 +0000</pubDate>
		<dc:creator><![CDATA[hatex]]></dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.odnuly.cz/?p=183</guid>
		<description><![CDATA[PORT 500 ILLEGAL]]></description>
				<content:encoded><![CDATA[<p>?ešení problému s p?ipojováním klient? k ProFTPd serveru.</p>
<p>Za strany klienta se p?ipojení chovalo takto:</p>
<blockquote><p>257 &#8222;/&#8220; is the current directory<br />
Složka<br />
TYPE A<br />
200 Type set to A<br />
PORT 192,168,1,100,196,12<br />
500 Illegal PORT command<br />
PASV<br />
227 Entering Passive Mode (192,168,1,200,192,0).<br />
PORT 192,168,1,100,196,16<br />
500 Illegal PORT command</p></blockquote>
<p>?ešení celého problému spo?ívá ve správném nastavení NATu a maškarády.</p>
<p>Popíšu zde zp?sob jak to má být správn? nastaveno v p?ípad? následujího modelu:</p>
<blockquote><p>INET &#8211; &gt; Mikrotik with NAT -&gt; ProFTPd server</p></blockquote>
<p>Díky správné konfiguraci je naprosto bezchybný provoz. Na routeru je samoz?ejm? pot?eba nastavit NAT (v p?ípad?, že ho využíváte). Pro aktivní režim forward port? 20-21 a pro pasivní režim vy?lenit porty nap?.: 49152 49155.</p>
<p>Na mikrotiku vypadá konfigurace takto:</p>

<a href='http://blog.cloudmb.cz/2010/09/500-illegal-port/act/'><img width="150" height="14" src="http://blog.cloudmb.cz/wp-content/uploads/2010/09/act-150x14.png" class="attachment-thumbnail" alt="act" /></a>
<a href='http://blog.cloudmb.cz/2010/09/500-illegal-port/pas/'><img width="150" height="22" src="http://blog.cloudmb.cz/wp-content/uploads/2010/09/pas-150x22.png" class="attachment-thumbnail" alt="pas" /></a>

<p>Nyní náhled konfigurace ProFTPd serveru:</p>
<blockquote><p># Port 21 is the standard FTP port.<br />
Port 21</p>
<p># In some cases you have to specify passive ports range to by-pass<br />
# firewall limitations. Ephemeral ports can be used for that, but<br />
# feel free to use a more narrow range.<br />
PassivePorts                  49152 49155</p>
<p># If your host was NATted, this option is useful in order to<br />
# allow passive tranfers to work. You have to use your public<br />
# address and opening the passive ports used on your firewall as well.<br />
MasqueradeAddress               213.168.178.10</p></blockquote>
<p><map name='google_ad_map_183_a2db11ed00ddbb5d'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/183?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_183_a2db11ed00ddbb5d' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=183&amp;url= http%3A%2F%2Fblog.cloudmb.cz%2F2010%2F09%2F500-illegal-port%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://blog.cloudmb.cz/2010/09/500-illegal-port/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
