Project

General

Profile

Install check db2 health » History » Version 5

chin-yeh, 09/08/2010 05:11 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
# login to the database server (which to be monitored by @Nagios@)
17
## if @nagios@ user and @nagios@ group do not exist:
18
<pre>
19
# useradd nagios
20
# passwd nagios
21
</pre>
22
## if @nagios@ user and @nagios@ group exist, proceed to next step
23
# login to the database server (which to be monitored by @Nagios@) with the @DB2 user@, e.g. db2inst1, and execute:
24
<pre>
25
db2inst1$ db2 update dbm cfg using sysmon_group nagios
26
db2inst1$ db2 grant select,update on table SYSTOOLS.STMG_DBSIZE_INFO to nagios
27
db2inst1$ db2stop; db2start
28
</pre>