Missing commands after plugin installation
Missing commands after plugin installation
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?
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.
Re: Missing commands after plugin installation
Where are you looking for this?giant69 wrote:but their were no checl_xi_oracle* in the commands section.
Former Nagios Employee.
me.
me.
Re: Missing commands after plugin installation
Under Configure->Core Config Manager-> left side (Commands/Commands)
Is the day not your friend, it will be your teacher.
Re: Missing commands after plugin installation
Can you provide a direct link to the guide you followed?
Former Nagios employee
Re: Missing commands after plugin installation
Is the day not your friend, it will be your teacher.
Re: Missing commands after plugin installation
I just checked my system and I definitely have those commands. What XI version are you on?
Former Nagios employee
Re: Missing commands after plugin installation
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.
Re: Missing commands after plugin installation
Can you run the following command and post the output?
Code: Select all
grep oracle /usr/local/nagios/etc/commands.cfg
Former Nagios Employee
Re: Missing commands after plugin installation
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.
[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.
Re: Missing commands after plugin installation
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:
but of course this will remove anything you had added to the system and may not be preferable.
Code: Select all
cd /usr/local/nagiosxi/scripts
./restore_defaults.shFormer Nagios employee