Open main menu

CDOT Wiki β

Changes

How to Setup and configure Nagios

153 bytes added, 21:03, 17 December 2010
no edit summary
<pre>
Note: Here is view of what your configuration files should look like, in order to have successfully installed and configured version of
Nagios. The following lines were either added or modified for the nagios.cfg file on the Nagios monitoring host.
</pre>
</pre>
<code>#Allowed_hosts=127.0.0.1</code> is typically altered on the Remote host ONLY changes in IP address that allows a host to access the nrpe daemon system depends on an entitiesentity/organizations network requirements.
<pre>
'''4.6 Edit the localhost.cfg file located in the /etc/nagios/objects directory'''
<pre>Note: The localhost .cfg file can be created from one of the templates.cfg files located in the /etc/nagios/objects
directory, here is a brief view of how your localhost.cfg file should appear</pre>
<code></Directory></code>
'''4.9 Note: This section highlights a brief snippet of two critical detailed steps REQUIRED for the installation and successful configuration of a Remote host (on an ARM machine) Cdot-gurguru-4-1 (Utilize the installation steps (5.0) that follow this section).'''
<pre>Using the 'yum utility' install the nrpe daemon/ nrpe addon & required plugins</pre>
<code>vi /etc/nagios/nrpe.cfg</code>
Note: Hong Kong has two NICs so the allowed_hosts entry would be entered twice with the two corressponding IPs for both NICs <code>allowed_hosts=<Both the External & Internal IP Address to that of for the monitoring hosts> </code>
comment out the line:
<code>vi /etc/nagios/nrpe.cfg</code>
Add an allowed_hosts IP Address to nrpe.cfg file eg. 142.204.133.123 (chile’s IP Address), but for future configurations HongKongHong Kong's IP Address will be used:
<code> Allowed_hosts=142.204.133.123 </code>
<pre>This section will discuss some additional initiatives that were implemented on the Nagios Remote host. Due to the inability to obtain
a plugin that is capable of monitoring mounted devices (on ARM machines) upon boot. A supplemental perl script was identified and utilizedutilize for this purpose. The check_mounted_disks script was conveniently added to /etc/init.d directory, and a few symlinks (soft links)were linked to a few appropriate runlevels on the ARM system. Once the system is rebooted the aforementioned script will execute automaticallyand perform a verification check of all devices that should be mounted on boot.</pre>
1. Symlinks were created using the command syntax.
1
edit