I have intentions to buy Nagios xi, but first, i want be sure about the monitoring of Oracle.
I have try the check_oracle_health plugin and in the command line works perfectly, but when i try on the web interface of nagios xi, return the ERROR:
CRITICAL - cannot connect to db01. ERROR OCIEnvNlsCreate. Check ORACLE_HOME env var, NLS settings, permissions, etc.
I have set the ORACLE_HOME, TNS_ADMIN, LD_LIBRARY_PATH, permissions on the oracle folders, plugins folders, etc.
In command line works very fine.
[root@glwNagiosxi-trial ~]# /usr/local/nagios/libexec/check_oracle_health -c db01 -u system -p pass -m tnsping
OK - connection established to db01.
Somebody can help me?
PS: Sorry about my english, i'm just learning.
Nagios xi + check_oracle_health
-
- Posts: 972
- Joined: Mon Feb 15, 2010 2:23 pm
Re: Nagios xi + check_oracle_health
Can you use parameters instead of environment variables?
If not the easy solution is to write a wrapper script that takes parameters and shunts them of to environment variables prior to exec the plugin.
We already pass sensitive information using parameters, thus it would do little to try and avoid that here.
If not the easy solution is to write a wrapper script that takes parameters and shunts them of to environment variables prior to exec the plugin.
We already pass sensitive information using parameters, thus it would do little to try and avoid that here.