Project

General

Profile

Install check db2 health » History » Revision 5

Revision 4 (chin-yeh, 09/08/2010 04:57 PM) → Revision 5/7 (chin-yeh, 09/08/2010 05:11 PM)

h1. Install check_db2_health 

 *Important note*: Install this addon on the Nagios machine. 

 Official website: http://labs.consol.de/nagios/check_db2_health/ http://labs.consol.de/lang/en/nagios/check_db2_health/ 

 h2. Prerequisites 

 This addon requires the following Perl modules in order to work properly: 
 * @DBI@ 
 * @DBD::DB2@ 


 h2. Installation Steps 

 # login to the database server (which to be monitored by @Nagios@) 
 ## if @nagios@ user and @nagios@ group do not exist: 
 <pre> 
 # useradd nagios 
 # passwd nagios 
 </pre> 
 ## if @nagios@ user and @nagios@ group exist, proceed to next step 
 # login to the database server (which to be monitored by @Nagios@) with the @DB2 user@, e.g. db2inst1, and execute: 
 <pre> 
 db2inst1$ db2 update dbm cfg using sysmon_group nagios 
 db2inst1$ db2 grant select,update on table SYSTOOLS.STMG_DBSIZE_INFO to nagios 
 db2inst1$ db2stop; db2start 
 </pre>