<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tetrain.com/index.php?action=history&amp;feed=atom&amp;title=Main_Page%2FNagios_add_Indirect_Host_and_Service_Checks</id>
	<title>Main Page/Nagios add Indirect Host and Service Checks - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tetrain.com/index.php?action=history&amp;feed=atom&amp;title=Main_Page%2FNagios_add_Indirect_Host_and_Service_Checks"/>
	<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Main_Page/Nagios_add_Indirect_Host_and_Service_Checks&amp;action=history"/>
	<updated>2026-07-25T11:32:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Main_Page/Nagios_add_Indirect_Host_and_Service_Checks&amp;diff=1481&amp;oldid=prev</id>
		<title>Hemant: /* On Nagios Server : */</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Main_Page/Nagios_add_Indirect_Host_and_Service_Checks&amp;diff=1481&amp;oldid=prev"/>
		<updated>2013-10-30T19:58:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;On Nagios Server :&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:58, 30 October 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l159&quot;&gt;Line 159:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 159:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Reload nagios &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;configuration&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Reload nagios&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	/etc/init.d/nagios reload&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	/etc/init.d/nagios reload&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Hemant</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Main_Page/Nagios_add_Indirect_Host_and_Service_Checks&amp;diff=1480&amp;oldid=prev</id>
		<title>Hemant: /* on directly accessible  ( primary ) server : */</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Main_Page/Nagios_add_Indirect_Host_and_Service_Checks&amp;diff=1480&amp;oldid=prev"/>
		<updated>2013-10-30T19:00:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;on directly accessible  ( primary ) server :&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:00, 30 October 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l57&quot;&gt;Line 57:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 57:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;command[check_zimbra_lmtp]=/usr/local/nagios/libexec/check_smtp -H localhost -p 7025 -e &amp;#039;220 zimbraserver.2coms.com Zimbra LMTP server ready&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;command[check_zimbra_lmtp]=/usr/local/nagios/libexec/check_smtp -H localhost -p 7025 -e &amp;#039;220 zimbraserver.2coms.com Zimbra LMTP server ready&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# following commands are for backup server 192.168.1.5&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&lt;/ins&gt;# following commands are for backup server 192.168.1.5&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;command[check_users2]=/usr/local/nagios/libexec/check_nrpe -H 192.168.1.5 -c check_users&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;command[check_users2]=/usr/local/nagios/libexec/check_nrpe -H 192.168.1.5 -c check_users&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l80&quot;&gt;Line 80:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 80:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;command[check_zimbra_lmtp2]=/usr/local/nagios/libexec/check_nrpe -H 192.168.1.5 -c check_zimbra_lmtp&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;command[check_zimbra_lmtp2]=/usr/local/nagios/libexec/check_nrpe -H 192.168.1.5 -c check_zimbra_lmtp&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== on Secondary ( Backup ) server : ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== on Secondary ( Backup ) server : ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Hemant</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Main_Page/Nagios_add_Indirect_Host_and_Service_Checks&amp;diff=1477&amp;oldid=prev</id>
		<title>Hemant at 17:47, 30 October 2013</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Main_Page/Nagios_add_Indirect_Host_and_Service_Checks&amp;diff=1477&amp;oldid=prev"/>
		<updated>2013-10-30T17:47:46Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:47, 30 October 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[File:/root/Desktop/indirectsvccheck_converted.jpg]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Headline text ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Headline text ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;NAGIOS INDIRECT MAPPING OF HOSTS&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;NAGIOS INDIRECT MAPPING OF HOSTS&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Hemant</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Main_Page/Nagios_add_Indirect_Host_and_Service_Checks&amp;diff=1476&amp;oldid=prev</id>
		<title>Hemant: Created page with &quot; == Headline text == &#039;&#039;&#039;NAGIOS INDIRECT MAPPING OF HOSTS&#039;&#039;&#039;   For Environments that have multiple servers and only one server or firewall is accessible directly i.e one server...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Main_Page/Nagios_add_Indirect_Host_and_Service_Checks&amp;diff=1476&amp;oldid=prev"/>
		<updated>2013-10-30T17:39:52Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; == Headline text == &amp;#039;&amp;#039;&amp;#039;NAGIOS INDIRECT MAPPING OF HOSTS&amp;#039;&amp;#039;&amp;#039;   For Environments that have multiple servers and only one server or firewall is accessible directly i.e one server...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
== Headline text ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NAGIOS INDIRECT MAPPING OF HOSTS&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For Environments that have multiple servers and only one server or firewall is accessible directly i.e one server is accessible and all others may be accessed through it internally . Nagios mapping may be done via Indirect Host and Service Checks using nrpe.&lt;br /&gt;
&lt;br /&gt;
Indirect checks are useful for: &lt;br /&gt;
Monitoring &amp;quot;local&amp;quot; resources (such as disk usage, processer load, etc.) on remote hosts&lt;br /&gt;
 &lt;br /&gt;
Monitoring services and hosts behind firewalls &lt;br /&gt;
&lt;br /&gt;
Obtaining more realistic results from checks of time-sensitive services between remote hosts (i.e. ping response times between two remote hosts)&lt;br /&gt;
 &lt;br /&gt;
Indirect service check Senario :&lt;br /&gt;
&lt;br /&gt;
As in 2coms there is a backup server associated with the main server indirectly accessible via the mailserver &lt;br /&gt;
&lt;br /&gt;
Access IP : zimbraserver.2coms.com/115.248.160.99&lt;br /&gt;
&lt;br /&gt;
Mailserver Internal Ip : 192.168.1.3 ( primary server)&lt;br /&gt;
&lt;br /&gt;
Backup server Ip :`192.168.1.5 (secondary server)&lt;br /&gt;
&lt;br /&gt;
== Procedure Taken : ==&lt;br /&gt;
&lt;br /&gt;
== on directly accessible  ( primary ) server : ==&lt;br /&gt;
&lt;br /&gt;
1. Access mail-server ( server already mapped as directly accesible )&lt;br /&gt;
&lt;br /&gt;
2. Install check_nrpe plugin if not present &lt;br /&gt;
&lt;br /&gt;
# yum install nagios-plugins-nrpe&lt;br /&gt;
&lt;br /&gt;
3. now add entry in nrpe.cfg for each service you want to check on the secondary/passive server as shown below :&lt;br /&gt;
&lt;br /&gt;
COMMANDS FOR MAIN SERVER&lt;br /&gt;
&lt;br /&gt;
command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10&lt;br /&gt;
&lt;br /&gt;
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20&lt;br /&gt;
&lt;br /&gt;
command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 7% -c 5% -p /dev/sda3&lt;br /&gt;
&lt;br /&gt;
command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z&lt;br /&gt;
&lt;br /&gt;
command[check_cpu]=/usr/local/nagios/libexec/check_cpu.sh -w 60 -c 70&lt;br /&gt;
&lt;br /&gt;
command[check_mem]=/usr/local/nagios/libexec/check_mem_avail -w 130 -c 150&lt;br /&gt;
&lt;br /&gt;
command[check_clam]=/usr/local/nagios/libexec/check_clamd -H localhost&lt;br /&gt;
&lt;br /&gt;
command[check_queue]=/usr/local/nagios/libexec/check_postfix_queue -w 300 -c 500&lt;br /&gt;
&lt;br /&gt;
command[check_zimbra_clam_ud]=sudo -u zimbra /usr/local/nagios/libexec/check_clamav -w 2 -c 5&lt;br /&gt;
&lt;br /&gt;
command[check_zimbra_lmtp]=/usr/local/nagios/libexec/check_smtp -H localhost -p 7025 -e &amp;#039;220 zimbraserver.2coms.com Zimbra LMTP server ready&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# following commands are for backup server 192.168.1.5&lt;br /&gt;
&lt;br /&gt;
command[check_users2]=/usr/local/nagios/libexec/check_nrpe -H 192.168.1.5 -c check_users&lt;br /&gt;
&lt;br /&gt;
command[check_load2]=/usr/local/nagios/libexec/check_nrpe -H 192.168.1.5 -c check_load&lt;br /&gt;
&lt;br /&gt;
command[check_hda12]=/usr/local/nagios/libexec/check_nrpe -H 192.168.1.5 -c check_hda1&lt;br /&gt;
&lt;br /&gt;
command[check_hda22]=/usr/local/nagios/libexec/check_nrpe -H 192.168.1.5 -c check_hda2&lt;br /&gt;
&lt;br /&gt;
command[check_hda32]=/usr/local/nagios/libexec/check_nrpe -H 192.168.1.5 -c check_hda3&lt;br /&gt;
&lt;br /&gt;
command[check_zombie_procs2]=/usr/local/nagios/libexec/check_nrpe -H 192.168.1.5 -c check_zombie_procs&lt;br /&gt;
&lt;br /&gt;
command[check_cpu2]=/usr/local/nagios/libexec/check_nrpe -H 192.168.1.5 -c check_cpu&lt;br /&gt;
&lt;br /&gt;
command[check_mem2]=/usr/local/nagios/libexec/check_nrpe -H 192.168.1.5 -c check_mem&lt;br /&gt;
&lt;br /&gt;
command[check_clam2]=/usr/local/nagios/libexec/check_nrpe -H 192.168.1.5 -c check_clam&lt;br /&gt;
&lt;br /&gt;
command[check_queue2]=/usr/local/nagios/libexec/check_nrpe -H 192.168.1.5 -c check_queue&lt;br /&gt;
&lt;br /&gt;
command[check_zimbra_lmtp2]=/usr/local/nagios/libexec/check_nrpe -H 192.168.1.5 -c check_zimbra_lmtp&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== on Secondary ( Backup ) server : ==&lt;br /&gt;
&lt;br /&gt;
Install nrpe and nagios plugins :&lt;br /&gt;
&lt;br /&gt;
	 # yum install nrpe nagios-plugins-all&lt;br /&gt;
&lt;br /&gt;
edit nrpe.cfg as follows :&lt;br /&gt;
&lt;br /&gt;
allowed_hosts=127.0.0.1,192.168.1.3&lt;br /&gt;
&lt;br /&gt;
And also add plugin definition as :&lt;br /&gt;
&lt;br /&gt;
command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10&lt;br /&gt;
&lt;br /&gt;
command[check_load]=/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c 30,25,20&lt;br /&gt;
&lt;br /&gt;
command[check_hda1]=/usr/lib64/nagios/plugins/check_disk -w 7% -c 5% -p /dev/hda3&lt;br /&gt;
&lt;br /&gt;
command[check_hda2]=/usr/lib64/nagios/plugins/check_disk -w 7% -c 5% -p /dev/hda1&lt;br /&gt;
&lt;br /&gt;
command[check_hda3]=/usr/lib64/nagios/plugins/check_disk -w 10% -c 5% -p /dev/sda1&lt;br /&gt;
&lt;br /&gt;
command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs -w 5 -c 10 -s Z&lt;br /&gt;
&lt;br /&gt;
command[check_cpu]=/usr/lib64/nagios/plugins/check_cpu.sh -w 60 -c 70&lt;br /&gt;
&lt;br /&gt;
command[check_mem]=/usr/lib64/nagios/plugins/check_mem_avail -w 130 -c 150&lt;br /&gt;
&lt;br /&gt;
command[check_clam]=/usr/lib64/nagios/plugins/check_clamd -H localhost&lt;br /&gt;
&lt;br /&gt;
command[check_queue]=/usr/lib64/nagios/plugins/check_postfix_queue -w 300 -c 500&lt;br /&gt;
&lt;br /&gt;
Restart nrpe on this server &lt;br /&gt;
&lt;br /&gt;
Restart nrpe on Primary server &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== On Nagios Server : ==&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Add Host entry in /usr/local/nagios/etc/objects/linux-box.cfg with Access Ip :&lt;br /&gt;
&lt;br /&gt;
Entries for Primary Server : &lt;br /&gt;
&lt;br /&gt;
define host{&lt;br /&gt;
             use        linux-server&lt;br /&gt;
             host_name  zimbraserver.2coms.com&lt;br /&gt;
             alias      zimbraserver.2coms.com&lt;br /&gt;
             address    182.71.172.155&lt;br /&gt;
             hostgroups  Tetra Clients  ; Host groups&lt;br /&gt;
           }&lt;br /&gt;
&lt;br /&gt;
Entries for Secondary Server :&lt;br /&gt;
&lt;br /&gt;
define host{&lt;br /&gt;
             use        linux-server&lt;br /&gt;
             host_name  backupserver.2coms.com&lt;br /&gt;
             alias      backupserver.2coms.com&lt;br /&gt;
             address    182.71.172.155&lt;br /&gt;
             hostgroups  Tetra Clients  ; Host groups&lt;br /&gt;
           }&lt;br /&gt;
&lt;br /&gt;
Note :  address field is same for both host &lt;br /&gt;
&lt;br /&gt;
add service definition in /usr/local/nagios/etc/service/backupserver.2coms.com.cfg  for all services already defined in nrpe.cfg on primary host  &lt;br /&gt;
&lt;br /&gt;
eg :&lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                backupserver.2coms.com&lt;br /&gt;
               service_description      Current Users&lt;br /&gt;
               check_command            check_nrpe!check_users2&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
check nagios configuration &lt;br /&gt;
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg&lt;br /&gt;
&lt;br /&gt;
Reload nagios configuration&lt;br /&gt;
	/etc/init.d/nagios reload&lt;/div&gt;</summary>
		<author><name>Hemant</name></author>
	</entry>
</feed>