<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://meet.konsthol.eu/w/index.php?action=history&amp;feed=atom&amp;title=Support%3ANagios</id>
	<title>Support:Nagios - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://meet.konsthol.eu/w/index.php?action=history&amp;feed=atom&amp;title=Support%3ANagios"/>
	<link rel="alternate" type="text/html" href="https://meet.konsthol.eu/w/index.php?title=Support:Nagios&amp;action=history"/>
	<updated>2026-05-17T02:44:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://meet.konsthol.eu/w/index.php?title=Support:Nagios&amp;diff=129186&amp;oldid=prev</id>
		<title>imported&gt;Kymara: Created page with &quot;Nagios3 monitoring server running on &lt;servername&gt;.  ==Nagios Interface==  Runs on an apache2 server.  * http://.../nagios3  *Plugins in use: check_nrpe ([http://nagios.sourceforg...&quot;</title>
		<link rel="alternate" type="text/html" href="https://meet.konsthol.eu/w/index.php?title=Support:Nagios&amp;diff=129186&amp;oldid=prev"/>
		<updated>2011-06-07T08:07:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Nagios3 monitoring server running on &amp;lt;servername&amp;gt;.  ==Nagios Interface==  Runs on an apache2 server.  * http://.../nagios3  *Plugins in use: check_nrpe ([http://nagios.sourceforg...&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:07, 7 June 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>imported&gt;Kymara</name></author>
	</entry>
	<entry>
		<id>https://meet.konsthol.eu/w/index.php?title=Support:Nagios&amp;diff=105369&amp;oldid=prev</id>
		<title>imported&gt;Kymara: Created page with &quot;Nagios3 monitoring server running on &lt;servername&gt;.  ==Nagios Interface==  Runs on an apache2 server.  * http://.../nagios3  *Plugins in use: check_nrpe ([http://nagios.sourceforg...&quot;</title>
		<link rel="alternate" type="text/html" href="https://meet.konsthol.eu/w/index.php?title=Support:Nagios&amp;diff=105369&amp;oldid=prev"/>
		<updated>2011-06-07T08:07:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Nagios3 monitoring server running on &amp;lt;servername&amp;gt;.  ==Nagios Interface==  Runs on an apache2 server.  * http://.../nagios3  *Plugins in use: check_nrpe ([http://nagios.sourceforg...&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:07, 7 June 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>imported&gt;Kymara</name></author>
	</entry>
	<entry>
		<id>https://meet.konsthol.eu/w/index.php?title=Support:Nagios&amp;diff=89064&amp;oldid=prev</id>
		<title>imported&gt;Kymara: Created page with &quot;Nagios3 monitoring server running on &lt;servername&gt;.  ==Nagios Interface==  Runs on an apache2 server.  * http://.../nagios3  *Plugins in use: check_nrpe ([http://nagios.sourceforg...&quot;</title>
		<link rel="alternate" type="text/html" href="https://meet.konsthol.eu/w/index.php?title=Support:Nagios&amp;diff=89064&amp;oldid=prev"/>
		<updated>2011-06-07T08:07:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Nagios3 monitoring server running on &amp;lt;servername&amp;gt;.  ==Nagios Interface==  Runs on an apache2 server.  * http://.../nagios3  *Plugins in use: check_nrpe ([http://nagios.sourceforg...&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:07, 7 June 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>imported&gt;Kymara</name></author>
	</entry>
	<entry>
		<id>https://meet.konsthol.eu/w/index.php?title=Support:Nagios&amp;diff=69767&amp;oldid=prev</id>
		<title>imported&gt;Kymara: Created page with &quot;Nagios3 monitoring server running on &lt;servername&gt;.  ==Nagios Interface==  Runs on an apache2 server.  * http://.../nagios3  *Plugins in use: check_nrpe ([http://nagios.sourceforg...&quot;</title>
		<link rel="alternate" type="text/html" href="https://meet.konsthol.eu/w/index.php?title=Support:Nagios&amp;diff=69767&amp;oldid=prev"/>
		<updated>2011-06-07T08:07:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Nagios3 monitoring server running on &amp;lt;servername&amp;gt;.  ==Nagios Interface==  Runs on an apache2 server.  * http://.../nagios3  *Plugins in use: check_nrpe ([http://nagios.sourceforg...&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:07, 7 June 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>imported&gt;Kymara</name></author>
	</entry>
	<entry>
		<id>https://meet.konsthol.eu/w/index.php?title=Support:Nagios&amp;diff=46745&amp;oldid=prev</id>
		<title>imported&gt;Kymara: Created page with &quot;Nagios3 monitoring server running on &lt;servername&gt;.  ==Nagios Interface==  Runs on an apache2 server.  * http://.../nagios3  *Plugins in use: check_nrpe ([http://nagios.sourceforg...&quot;</title>
		<link rel="alternate" type="text/html" href="https://meet.konsthol.eu/w/index.php?title=Support:Nagios&amp;diff=46745&amp;oldid=prev"/>
		<updated>2011-06-07T08:07:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Nagios3 monitoring server running on &amp;lt;servername&amp;gt;.  ==Nagios Interface==  Runs on an apache2 server.  * http://.../nagios3  *Plugins in use: check_nrpe ([http://nagios.sourceforg...&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:07, 7 June 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>imported&gt;Kymara</name></author>
	</entry>
	<entry>
		<id>https://meet.konsthol.eu/w/index.php?title=Support:Nagios&amp;diff=28575&amp;oldid=prev</id>
		<title>imported&gt;Kymara: Created page with &quot;Nagios3 monitoring server running on &lt;servername&gt;.  ==Nagios Interface==  Runs on an apache2 server.  * http://.../nagios3  *Plugins in use: check_nrpe ([http://nagios.sourceforg...&quot;</title>
		<link rel="alternate" type="text/html" href="https://meet.konsthol.eu/w/index.php?title=Support:Nagios&amp;diff=28575&amp;oldid=prev"/>
		<updated>2011-06-07T08:07:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Nagios3 monitoring server running on &amp;lt;servername&amp;gt;.  ==Nagios Interface==  Runs on an apache2 server.  * http://.../nagios3  *Plugins in use: check_nrpe ([http://nagios.sourceforg...&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:07, 7 June 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>imported&gt;Kymara</name></author>
	</entry>
	<entry>
		<id>https://meet.konsthol.eu/w/index.php?title=Support:Nagios&amp;diff=10569&amp;oldid=prev</id>
		<title>imported&gt;Kymara: Created page with &quot;Nagios3 monitoring server running on &lt;servername&gt;.  ==Nagios Interface==  Runs on an apache2 server.  * http://.../nagios3  *Plugins in use: check_nrpe ([http://nagios.sourceforg...&quot;</title>
		<link rel="alternate" type="text/html" href="https://meet.konsthol.eu/w/index.php?title=Support:Nagios&amp;diff=10569&amp;oldid=prev"/>
		<updated>2011-06-07T08:07:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Nagios3 monitoring server running on &amp;lt;servername&amp;gt;.  ==Nagios Interface==  Runs on an apache2 server.  * http://.../nagios3  *Plugins in use: check_nrpe ([http://nagios.sourceforg...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Nagios3 monitoring server running on &amp;lt;servername&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Nagios Interface==&lt;br /&gt;
&lt;br /&gt;
Runs on an apache2 server.&lt;br /&gt;
&lt;br /&gt;
* http://.../nagios3&lt;br /&gt;
&lt;br /&gt;
*Plugins in use: check_nrpe ([http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf Linux], [http://nsclient.org/nscp/wiki/doc/installation Windows]), [http://exchange.nagios.org/directory/Plugins/Databases/Others/check_sql/details check_sql], [http://code.google.com/p/check-mysql-all/wiki/check_mysql_all check_mysql_all], [http://labs.consol.de/lang/en/nagios/check_mysql_health/ check_mysql_health], [http://www.sysadminsjourney.com/content/2009/06/04/new-and-improved-checkmempl-nagios-plugin check_mem]&lt;br /&gt;
&lt;br /&gt;
==Documentation==&lt;br /&gt;
&lt;br /&gt;
*http://www.nagios.org/documentation&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;apt-get install nagios3&amp;lt;/pre&amp;gt;&lt;br /&gt;
Installs nagios3 and required packages (Apache2, postfix, mailx)&lt;br /&gt;
&lt;br /&gt;
Nagios installation at /etc/nagios3/&lt;br /&gt;
&amp;lt;br&amp;gt;Nagios plugins at /usr/lib/nagios/plugins/ (/etc/nagios-plugins/config/ for configuration files)&lt;br /&gt;
&lt;br /&gt;
Nagios configuration file is at /etc/nagios3/nagios.cfg&lt;br /&gt;
&lt;br /&gt;
==Adding a host==&lt;br /&gt;
&lt;br /&gt;
Created /etc/nagios3/objects/ directory to hold configuration files for the different servers.&lt;br /&gt;
&lt;br /&gt;
If the new host type isn&amp;#039;t included in an existing template (windows, linux), edit the templates.cfg and add the new template.&lt;br /&gt;
The templates are configured exactly the same at the moment, but it is worth adding a new template in case we need to configure the different host types.&lt;br /&gt;
*example template file&lt;br /&gt;
&amp;lt;pre&amp;gt;define host{&lt;br /&gt;
	name	windows-server ; name of this template&lt;br /&gt;
	use	generic-host;	inherit default values&lt;br /&gt;
	check_period	24x7&lt;br /&gt;
	check_interval	5&lt;br /&gt;
	retry_interval 	1&lt;br /&gt;
	max_check_attempts	10&lt;br /&gt;
	check_command	check-host-alive&lt;br /&gt;
	notification_period	24x7&lt;br /&gt;
	notification_interval	30&lt;br /&gt;
	notification_options	d,r&lt;br /&gt;
	contact_groups	admins&lt;br /&gt;
	register	0 ;	DON&amp;#039;T REGISTER THIS, IT&amp;#039;S A TEMPLATE&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
define host{&lt;br /&gt;
	name	linux-server&lt;br /&gt;
	use	generic-host&lt;br /&gt;
	check_period 	24x7&lt;br /&gt;
	check_interval 5&lt;br /&gt;
	retry_interval	1&lt;br /&gt;
	max_check_attempts	10&lt;br /&gt;
	check_command	check-host-alive&lt;br /&gt;
	notification_period	24x7&lt;br /&gt;
	notification_interval	30&lt;br /&gt;
	notification_options	d,r&lt;br /&gt;
	contact_groups	admins&lt;br /&gt;
	register	0;&lt;br /&gt;
}	&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The hosts are defined in either the linux or windows .cfg files corresponding to their host type. To add a new host, edit one of these .cfg files or create a new file for a new host type. Remember to edit the nagios.cfg to use any new .cfg files (add line cfg_file=/etc/nagios3/objects/&amp;lt;filename&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
*example host definition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
define host{&lt;br /&gt;
        use    linux-server    #inherit the settings from the template defined in templates.cfg&lt;br /&gt;
        host_name    XXX    #name that the host will be referred to as&lt;br /&gt;
        alias    XXX     #alias name for descriptive purposes&lt;br /&gt;
        address    xxx.xx.xx.xx    #address of host&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Recommended that you then add this host to a hostgroup. These are defined at /etc/nagios3/objects/hostgroups.cfg. Hostgroups allow services to be issued to multiple hosts with only one definition.&lt;br /&gt;
&lt;br /&gt;
*example hostgroup definition&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
define hostgroup{&lt;br /&gt;
        hostgroup_name    debian-servers&lt;br /&gt;
                alias    Debian GNU/Linux Servers&lt;br /&gt;
                members    localhost,..........&lt;br /&gt;
        } &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A host can be added to more than one hostgroup.&lt;br /&gt;
&lt;br /&gt;
==Adding a service==&lt;br /&gt;
&lt;br /&gt;
Services perform the checks on the hosts. Some services are defined in the windows and linux .cfg files (checks on the general well being of the host e.g. disk space checks, processes running) where as some are defined in their own files (e.g. the sql service definitions are in sql.cfg).&lt;br /&gt;
&lt;br /&gt;
*example service definition&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
define service{&lt;br /&gt;
        use    generic-service    #inherit settings from the generic-service template&lt;br /&gt;
        host_name    XXX    #host to run the service on, to run the service on a hostgroup use hostgroup_name &amp;lt;hostgroup name&amp;gt;&lt;br /&gt;
        service_description     Current Load    #name that will show up on the nagios interface&lt;br /&gt;
        check_command    check_nrpe_1arg!connect    #command to be run by the service, defined in commands.cfg. &amp;lt;command name&amp;gt;!&amp;lt;argument1&amp;gt;!&amp;lt;argument2&amp;gt;!... This example uses the command to run the check_nrpe plugin with one argument,&lt;br /&gt;
                                                                                                                                                           the connect check.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Adding commands==&lt;br /&gt;
&lt;br /&gt;
The commands to be run by the services can be found at /etc/nagios3/objects/commands.cfg. Some commands for plugins (e.g. the check_nrpe plugin used above) are defined at /etc/nagios-plugins/config/.&lt;br /&gt;
&lt;br /&gt;
*example command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
define command{&lt;br /&gt;
        command_name     check_mysql_all     #name that the command will be referred to as&lt;br /&gt;
        command_line     /usr/lib/nagios/plugins/check_mysql_all -K $ARG1$ -H $HOSTNAME$ --port 3306 -u &amp;lt;username&amp;gt; -p &amp;lt;password&amp;gt;    #the command to be run when the command name is used. The $ARG1$ in this example will be replaced by &lt;br /&gt;
                                                                                                                                     the first argument provided in the service calling the command. $ARG2$ would be the second and so forth.&lt;br /&gt;
        }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To use a new plugin for Nagios, the command_line path must lead to the plugin. Refer to the plug-in&amp;#039;s documentation for what checks can be run and edit the command line to match.&lt;/div&gt;</summary>
		<author><name>imported&gt;Kymara</name></author>
	</entry>
</feed>