check_oracle_health icon indicating copy to clipboard operation
check_oracle_health copied to clipboard

connection using HOST, PORT and SID command line options

Open btrnka63 opened this issue 3 years ago • 0 comments

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.

btrnka63 avatar Apr 17 '21 20:04 btrnka63