Project

General

Profile

Install check db2 health » History » Version 7

chin-yeh, 09/08/2010 05:22 PM

1 7 chin-yeh
{{toc}}
2
3 2 chin-yeh
h1. Install check_db2_health
4 3 chin-yeh
5 5 chin-yeh
*Important note*: Install this addon on the Nagios machine.
6 1 chin-yeh
7 5 chin-yeh
Official website: http://labs.consol.de/nagios/check_db2_health/
8
9 4 chin-yeh
h2. Prerequisites
10
11
This addon requires the following Perl modules in order to work properly:
12
* @DBI@
13
* @DBD::DB2@
14
15
16 5 chin-yeh
h2. Installation Steps
17 1 chin-yeh
18 7 chin-yeh
h3. DB2 server (which to be monitored by Nagios)
19 6 chin-yeh
20
# login to the server
21 5 chin-yeh
## if @nagios@ user and @nagios@ group do not exist:
22
<pre>
23
# useradd nagios
24
# passwd nagios
25 1 chin-yeh
</pre>
26 5 chin-yeh
## if @nagios@ user and @nagios@ group exist, proceed to next step
27 6 chin-yeh
# login to the server with the @DB2 user@, e.g. db2inst1, and execute:
28 5 chin-yeh
<pre>
29
db2inst1$ db2 update dbm cfg using sysmon_group nagios
30 1 chin-yeh
db2inst1$ db2 grant select,update on table SYSTOOLS.STMG_DBSIZE_INFO to nagios
31
db2inst1$ db2stop; db2start
32 6 chin-yeh
</pre>
33
34
h3. Nagios server
35
36
# download the source file "check_db2_health":http://labs.consol.de/wp-content/uploads/2010/06/check_db2_health-1.0.1.tar.gz
37
# extract the downloaded file
38
<pre>
39
# tar -xvzf check_db2_health-1.0.1.tar.gz
40
</pre>
41
# @cd@ to the extracted directory
42
<pre>
43
# cd check_db2_health-1.0.1
44
</pre>
45
# @make@ and @install@ the package:
46
<pre>
47
# ./configure
48 5 chin-yeh
</pre>