Missing commands after plugin installation

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
giant69
Posts: 17
Joined: Thu Nov 19, 2015 8:33 am
Location: Zuerich, Switzerland
Contact:

Missing commands after plugin installation

Post 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?
Is the day not your friend, it will be your teacher.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Missing commands after plugin installation

Post by hsmith »

giant69 wrote:but their were no checl_xi_oracle* in the commands section.
Where are you looking for this?
Former Nagios Employee.
me.
giant69
Posts: 17
Joined: Thu Nov 19, 2015 8:33 am
Location: Zuerich, Switzerland
Contact:

Re: Missing commands after plugin installation

Post by giant69 »

Under Configure->Core Config Manager-> left side (Commands/Commands)
Is the day not your friend, it will be your teacher.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Missing commands after plugin installation

Post by tmcdonald »

Can you provide a direct link to the guide you followed?
Former Nagios employee
giant69
Posts: 17
Joined: Thu Nov 19, 2015 8:33 am
Location: Zuerich, Switzerland
Contact:

Re: Missing commands after plugin installation

Post by giant69 »

Is the day not your friend, it will be your teacher.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Missing commands after plugin installation

Post by tmcdonald »

I just checked my system and I definitely have those commands. What XI version are you on?
Former Nagios employee
giant69
Posts: 17
Joined: Thu Nov 19, 2015 8:33 am
Location: Zuerich, Switzerland
Contact:

Re: Missing commands after plugin installation

Post 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.... :(
Is the day not your friend, it will be your teacher.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Missing commands after plugin installation

Post by rkennedy »

Can you run the following command and post the output?

Code: Select all

grep oracle /usr/local/nagios/etc/commands.cfg
Former Nagios Employee
giant69
Posts: 17
Joined: Thu Nov 19, 2015 8:33 am
Location: Zuerich, Switzerland
Contact:

Re: Missing commands after plugin installation

Post 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.
Is the day not your friend, it will be your teacher.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Missing commands after plugin installation

Post 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.
Former Nagios employee
Locked