A plugin (monitoring-plugin, not nagios-plugin, see also http://is.gd/PP1330) which checks various parameters of DB2 database servers. This plugin is also part of OMD, go to https://labs.consol.de/repo/, install OMD and there you have check_db2_health.
When using HADR, the scripts should be configured against both databases, but only one of them should reply. In the current state of this script, it is not suitable for a production environment with HA configuration. Only one database node could be configured in NAgios, and no takeover can be done silently.
Error: CRITICAL - cannot connect to XXXXXX. [IBM][CLI Driver] SQL1776N The command cannot be issued on an HADR database. Reason code = "1". Command returned exit status 2
When using HADR, the scripts should be configured against both databases, but only one of them should reply. In the current state of this script, it is not suitable for a production environment with HA configuration. Only one database node could be configured in NAgios, and no takeover can be done silently.