Nagios xi + check_oracle_health

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
gnutzmann
Posts: 1
Joined: Tue May 25, 2010 6:55 am

Nagios xi + check_oracle_health

Post by gnutzmann »

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.
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Nagios xi + check_oracle_health

Post by mmestnik »

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.