Plugin Question

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mtibor
Posts: 2
Joined: Wed Jul 18, 2012 5:31 pm

Plugin Question

Post 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
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Plugin Question

Post 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.
mtibor
Posts: 2
Joined: Wed Jul 18, 2012 5:31 pm

Re: Plugin Question

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Plugin Question

Post by scottwilkerson »

I believe you can specify environment variables through the command line in the new version..
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked