Oracle service check status
Posted: Wed Jun 16, 2021 8:46 am
Hi
I have a lot of Oracle databases monitored with NagiosXI (check_oracle_health) and I found that when one "Service check" fails to connect to database for any reason, the plugin send a CRITICAL ALARM with the error returned, similar this:
[nagios@prnagxi01 ~]$ /usr/local/nagios/libexec/check_oracle_health --connect 'ALIAS_NAME' --username 'c##nagios' --password 'XYZ' --mode tablespace-usage
CRITICAL - cannot connect to ALIAS_NAME. ORA-12154: TNS:could not resolve the connect identifier specified (DBD ERROR: OCIServerAttach)
Is it possible to change this behaviour sending in this scenario an "UNKNOWN" alarm ? this seem more accurate, because when the plugin doesn't connect to Database, the specific metric value is unknown.
The CRITICAL message during the connection, should remain only for method "Connection-time" or "TNSPING".
Is this possible ?
Best Regards
Antonello
I have a lot of Oracle databases monitored with NagiosXI (check_oracle_health) and I found that when one "Service check" fails to connect to database for any reason, the plugin send a CRITICAL ALARM with the error returned, similar this:
[nagios@prnagxi01 ~]$ /usr/local/nagios/libexec/check_oracle_health --connect 'ALIAS_NAME' --username 'c##nagios' --password 'XYZ' --mode tablespace-usage
CRITICAL - cannot connect to ALIAS_NAME. ORA-12154: TNS:could not resolve the connect identifier specified (DBD ERROR: OCIServerAttach)
Is it possible to change this behaviour sending in this scenario an "UNKNOWN" alarm ? this seem more accurate, because when the plugin doesn't connect to Database, the specific metric value is unknown.
The CRITICAL message during the connection, should remain only for method "Connection-time" or "TNSPING".
Is this possible ?
Best Regards
Antonello