Project

General

Profile

Documentation » History » Version 19

chin-yeh, 02/15/2012 09:54 AM

1 3 chin-yeh
{{toc}}
2 2 chin-yeh
3 12 chin-yeh
h1. User Manual
4 1 chin-yeh
5 18 chin-yeh
For *development* environment only.
6 1 chin-yeh
7 17 chin-yeh
This documentation consists of 3 parts:
8
* [[Documentation#Installation|Installation]] - _How to_ install @Nagios@
9
* [[Documentation#Configuration|Configuration]] - _How to_ configure @Nagios@
10
* [[Documentation#Administration|Administration]] - _How to_ administer @Nagios@
11
12 19 chin-yeh
h2. Test email account for notification
13
14
Nagios Admin User:
15
_Please *DO NOT* connect Google Talk using this account_
16
<pre>
17
Username: ecosway.nagios@gmail.com
18
Password: ecosway.nagiosgm
19
</pre>
20
21
Warning User:
22
<pre>
23
Username: ecosway.nagios.warning@gmail.com
24
Password: ecosway.nagios.warninggm
25
</pre>
26
27
Critical User:
28
<pre>
29
Username: ecosway.nagios.critical@gmail.com
30
Password: ecosway.nagios.criticalgm
31
</pre>
32
33
34
h2. Hierarchy of Nagios Configuration Files 
35
36
* [[Configuration Files - Development]]
37
38
h2. Notification Method
39
40
The @Nagios@ supports the following notification method:
41
* E-Mail
42
* SMS (_requires GSM modem_)
43
* Instant Message (_supports XMPP based only, e.g. Google Talk_)
44
45 1 chin-yeh
h2. Installation
46 3 chin-yeh
47 14 chin-yeh
This installation involves 3 parts which are:
48
* Nagios Core and Plugins - the core of the nagios and the plugins provided by Nagios
49
* Nagios Addons - the third party addons
50
* NRPE addon - to monitor local resources on remote machine
51
52
53 3 chin-yeh
h3. Prerequisites
54
55 1 chin-yeh
Requires:
56 14 chin-yeh
* must have *root* access for both local and remote machines
57 3 chin-yeh
* Apache HTTP installed and configured
58
* PHP module installed and configured
59
* GCC compiler
60
61
You can install the above missing components using *yum* or *up2date*.
62 1 chin-yeh
63 4 chin-yeh
h3. Install Nagios Core and Nagios Plugins
64
65
Refer to the *Nagios Quickstart Installation Guides* section of *Nagios Core* in the document#6 for the installation steps.
66
67 6 chin-yeh
h3. Install Addons
68
69
See [[Nagios - Addons]].
70
71 4 chin-yeh
h3. Install NRPE - optional
72
73
Install this add-on only if there is a need to execute *Nagios Plugins* on remote *nix machines.
74 5 chin-yeh
75 4 chin-yeh
Refer to the *NRPE* in the document#6 for the installation steps.
76
77
78 1 chin-yeh
h2. Configuration
79
80 7 chin-yeh
One should obtain the pre-configured nagios conf files from the repository.
81
82 8 chin-yeh
# obtain the latest release version and the file usually pack and compress as @prod.etc.tgz@
83
# login as @nagios@ user
84
# create a temp folder to store the file
85
<pre>
86
nagios$ mkdir temp_etc
87
</pre>
88
# @cd@ to the temp folder
89
<pre>
90
nagios$ cd temp_etc
91
</pre>
92 9 chin-yeh
# copy the latest release configuration file
93
<pre>
94
[nagios temp_etc]$ cp prod.etc.tgz .
95
</pre>
96 8 chin-yeh
# extract the file
97 1 chin-yeh
<pre>
98 9 chin-yeh
[nagios temp_etc]$ tar -xvzf prod.etc.tgz
99 8 chin-yeh
</pre>
100 10 chin-yeh
# backup the existing configuration folder
101 1 chin-yeh
<pre>
102 10 chin-yeh
[nagios temp_etc]$ cp -R /usr/local/nagios/etc /usr/local/nagios/etc.bak
103
</pre>
104
# copy the new configuration folder, *@etc@* to @/usr/local/nagios/libexec@
105
<pre>
106
[nagios temp_etc]$ cp -R etc /usr/local/nagios/libexec
107 8 chin-yeh
</pre>
108
109 1 chin-yeh
h2. Administration
110
111 11 chin-yeh
Describes how to administer @Nagios@ such as add monitoring host/services.
112
113
h3. Add Host
114
115
Define a physical server, workstation, device which resides on your network.
116
117
[[Add Host|Click here]] for the guide.
118
119 13 chin-yeh
h3. Assign Service to Host
120 11 chin-yeh
121
Define a service which runs on a host. A service could be HTTP, number of logged in user in a physical server and etc.
122
123 13 chin-yeh
[[Assign Service to Host|Click here]] for the guide.
124 11 chin-yeh
125
h3. Add Contact
126
127 16 chin-yeh
Define a contact who should be contacted in the event of a problem. The possible events included warning, critical, recovery, unknown and etc.
128 11 chin-yeh
129 1 chin-yeh
[[Add Contact|Click here]] for the guide.
130 16 chin-yeh
131
h3. Adjust Check Interval
132
133
Adjust the check interval for particular services.
134
135
[[Adjust Check Interval|Click here]] for the guide.