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