<?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; nagios3</title>
	<atom:link href="http://blog.cloudmb.cz/tag/nagios3/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>
	</channel>
</rss>
