Page 1 of 1

Plugin Question

Posted: Wed Jul 18, 2012 6:10 pm
by mtibor
I apologize if this isn't the correct forum, but I'm having a problem setting up the check_db2_health plugin. My Nagios server is dedicated to Nagios, and I'm trying to get it to monitor DB2 databases on various AIX servers on our network.

Given that I'm running Nagios separately from the DB2 servers, I'll need to install a DB2 client instance on the Nagios box--is that correct?

Thanks,
Mike

Re: Plugin Question

Posted: Thu Jul 19, 2012 9:14 am
by mguthrie
That plugin is from Console Labs, here's their doc on it:
http://labs.consol.de/lang/en/nagios/check_db2_health/

I think for the DB plugins you only need to open a socket connection to that database, so you wouldn't need an agent. Just make sure that port is accessible from the Nagios server (check your firewall), and there's a user set up in DB2 for Nagios to access whatever information you want to see.

Re: Plugin Question

Posted: Thu Jul 19, 2012 12:31 pm
by mtibor
Well, that was my hope, but my problem seems to be that check_db2_health depends on DBD::DB2, which seems to require a DB2 instance. When building DBD::DB2 using cpan, it bombs out with the following error:

[...]
DB2_HOME environment variable must be set to installed location of DB2.
[...]

However, the changelog for DBD::DB2 1.84 makes reference to eliminating the need for a DB2 instance.

I'd love to hear from anyone who has successfully installed and configured check_db2_health, or if they're using something else to monitor DB2 databases.

Thanks,
Mike

Re: Plugin Question

Posted: Fri Jul 20, 2012 1:38 pm
by scottwilkerson
I believe you can specify environment variables through the command line in the new version..