Page 1 of 2

Missing commands after plugin installation

Posted: Fri Dec 04, 2015 8:26 am
by giant69
I download and installed Oracle instant client packages and the oracleinstall.sh from your download site - like described in the Installation HowTo for Oracle Client & Plugins.

After the sucessfully installation (I saw no error and got the environemnt variables at the end of installation), I want to configure the Plugin Commands, but their were no checl_xi_oracle* in the commands section.

What do I need to do or where can I found further details, of what is going wrong during the installation regardless the output of the oracleinstall.sh shell script?

Re: Missing commands after plugin installation

Posted: Fri Dec 04, 2015 10:50 am
by hsmith
giant69 wrote:but their were no checl_xi_oracle* in the commands section.
Where are you looking for this?

Re: Missing commands after plugin installation

Posted: Mon Dec 07, 2015 6:59 am
by giant69
Under Configure->Core Config Manager-> left side (Commands/Commands)

Re: Missing commands after plugin installation

Posted: Mon Dec 07, 2015 2:52 pm
by tmcdonald
Can you provide a direct link to the guide you followed?

Re: Missing commands after plugin installation

Posted: Tue Dec 08, 2015 1:33 am
by giant69

Re: Missing commands after plugin installation

Posted: Tue Dec 08, 2015 3:14 pm
by tmcdonald
I just checked my system and I definitely have those commands. What XI version are you on?

Re: Missing commands after plugin installation

Posted: Tue Dec 08, 2015 3:48 pm
by giant69
It's the 5.20 offline version I've downloaded and installed - with 48 days left. I got the feeling, we don't need such a long time to decide.... :(

Re: Missing commands after plugin installation

Posted: Tue Dec 08, 2015 4:19 pm
by rkennedy
Can you run the following command and post the output?

Code: Select all

grep oracle /usr/local/nagios/etc/commands.cfg

Re: Missing commands after plugin installation

Posted: Wed Dec 09, 2015 2:04 am
by giant69
I haved checked this already, we will only find my manually added commands, with which I try to test the plugin. (bad english - sorry).

[root@lab01 ~]# grep oracle /usr/local/nagios/etc/commands.cfg
command_name check_oracle
command_line /usr/bin/perl $USER1$/check_oracle_health.pl –connect=//$HOSTADDRESS$:$ARG1$/$ARG2$ –username=$ARG3$ –password=$ARG4$ –warning=$ARG5$ –critical=$ARG6$ –mode $ARG7$ –environment ORACLE_HOME=’/usr/lib/oracle/12.1/client64′ –environment PATH=/usr/lib/oracle/12.1/client64/bin –environment LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib
command_name check_oracle_tnsping
command_line /usr/bin/env LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib ORACLE_HOME=/usr/lib/oracle/12.1/client64 /usr/local/nagios/libexec/check_oracle_health --connect '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=$ARG1$)(PORT=$ARG2$))(CONNECT_DATA=(SID=$ARG3$)))' --username monitor --password egal --mode tnsping
[root@lab01 ~]#

Btw.: When I manually add a command Definition, saving it and successfully "Apply Configuration" afterwards, reopening the Command Definition shows an empty combobox of "Available Plugins". The selected plugin "check_oracle_health" is not preselected. I don't know wether or not, it is somehow important. I've checked several predefined command definition with the same picture.

Re: Missing commands after plugin installation

Posted: Wed Dec 09, 2015 1:37 pm
by tmcdonald
How much have you done to the system? It sounds like some commands might have been deleted. You can revert back to the defaults that would be in a new install with the following commands:

Code: Select all

cd /usr/local/nagiosxi/scripts
./restore_defaults.sh
but of course this will remove anything you had added to the system and may not be preferable.