Random Project

Great set of tools! but it can be improved

I found it very useful, but found some errors:
in check_hadr_status, line n. 290 is wrong: COMMAND_HADR=”db2pd -db wfscpd -hadr” should be:
COMMAND_HADR=”db2pd -db ${DATABASE_NAME} -hadr”.
On all plugins, you don’t return the name of the database, but if you want to run many checks at the same time with check_by_ssh plugin, you will absolutley need to know which control gives which result.
To do so, i modified line 360 adding ${DATABASE_NAME} before ${OUTPUT}, but i think you can find a better solution to that.