lausser / check_oracle_health

A plugin (monitoring-plugin, not nagios-plugin, see also http://is.gd/PP1330) which checks various parameters of Oracle database servers. (We also offer trainings: http://www.consol.de/open-source-monitoring/schulungen/workshops/#datenbank-monitoring)
http://labs.consol.de/nagios/check_oracle_health
GNU General Public License v2.0
34 stars 29 forks source link

connection using HOST, PORT and SID command line options #37

Open btrnka63 opened 3 years ago

btrnka63 commented 3 years ago

Hello,

I'd like to ask about possibility to build-up the connection string out of provided HOST, PORT and SID command line options instead (or better: in addition to) of specifying the connection string using the --connect option. I mean, e.g. when specified: ./check_oracle_health --username 'nagios' --password 'oradbmon' --host localhost --port 1521 --SID ORA --mode tnsping

The --connect would be build-up like '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST='.$params{host}.')(PORT='.$params{port}.')))(CONNECT_DATA=(SID='.$params{SID}.')))' instead of warning to provide database name.

Thanks.