Eu posso acessar meu banco de dados via sqlplus com a conta OPS $, mas não consigo trabalhar com os nagios check_oracle_health. Estou testando a partir da linha de comando.
nagios@servername:/usr/local/nagios/libexec$ sqlplus /@TESTDB
SQL*Plus: Release 12.1.0.1.0 Production on Fri Jan 30 12:15:59 2015
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
SQL> select user from dual;
USER
------------------------------
OPS$NAGIOS
O login no uso de um nome de usuário e senha funciona, mas não é permitido na política da empresa para a qual trabalho.
nagios@servername:/usr/local/nagios/libexec$ ./check_oracle_health --connect=read/pw@TESTDB--mode=connection-time
OK - 0.22 seconds to connect as READ| connection_time=0.2174;1;5
nagios@omonopsview:/usr/local/nagios/libexec$ ./check_oracle_health --connect=/@TESTDB --mode=connection-time
CRITICAL - cannot connect to /***@TESTDB. ORA-12545: Connect failed because target host or object does not exist (DBD ERROR: OCIServerAttach)
nagios@servername:/usr/local/nagios/libexec$ ./check_oracle_health --connect=TESTDB --mode=sql --name="select user from dual;"
CRITICAL - cannot connect to TESTDB. ORA-12545: Connect failed because target host or object does not exist (DBD ERROR: OCIServerAttach)
nagios@servername:/usr/local/nagios/libexec$ ./check_oracle_health --connect=OPS\$nagios@TESTDB --mode=connection-time
CRITICAL - cannot connect to OPS$nagios@TESTDB. ORA-12545: Connect failed because target host or object does not exist (DBD ERROR: OCIServerAttach)
Alguém tem uma ideia do que estou fazendo errado?