Page 1 of 2

Linux Server Plugin

Posted: Mon Jul 24, 2017 3:58 pm
by sarpione
Hi, i have installed nagios xi and I want to check a Linux Server (Oracle)
For that I will use the plugin "Linux Server"
I follow the steps of the guide https://assets.nagios.com/downloads/nag ... _Agent.pdf
Downloaded the agent in the oracle server, and run ./fullinstall after a few minutes the script give me an error message (attached install.log).
And the nagios checks give me that error "(Return code of 255 is out of bounds)"
Can u help me pls?
From already thank you very much

Re: Linux Server Plugin

Posted: Mon Jul 24, 2017 4:52 pm
by bolson
Hello Sarpione. In viewing your install log a couple of things come to mind. It doesn't look as though you have the xinetd service installed on this host. Xinetd is a wrapper service that NRPE runs in. Also, it looks as though either Nagios Core or XI or NRPE had been previously installed. Is that the case? As a start, run yum -y install xinetd and rerun the make all command.

Re: Linux Server Plugin

Posted: Thu Jul 27, 2017 10:40 am
by sarpione
Installed xinetd on the oracle linux server and run the fullinstall again, but it failed again.
I do not know how to install the NRPE in nagios xi, may be that the problem

Im attached the new log.

Re: Linux Server Plugin

Posted: Thu Jul 27, 2017 11:02 am
by bolson
Run the following command and post result:

Code: Select all

ls -l /etc/xinetd.d

Re: Linux Server Plugin

Posted: Thu Jul 27, 2017 11:05 am
by bolson
Hello sarpione,

Are you installing the nrpe agent on your NagiosXI server or on the host you wish to monitor?

Re: Linux Server Plugin

Posted: Fri Jul 28, 2017 3:25 pm
by sarpione
The agent install it on the linux server oracle i want to check.
Do I have to do something on the nagios server?

Re: Linux Server Plugin

Posted: Fri Jul 28, 2017 4:23 pm
by tgriep
I took a look at the install.log file and the Oracle Linux server is missing the openssl-devel package so the NRPE agent will not compile and install without that package.
Login as root to the Oracle Linux server and run the following to install that package.
yum install openssl-devel -y

After it installs, rerun the fullinstall for the NRPE agent and it should work for you.

Waiting for configuration verification....

Posted: Mon Aug 14, 2017 8:59 am
by sarpione
I did what you said and finally I appeared the option at the end of the script to enter the ip of the Nagios.
The problem is that now when wanting to configure from the nagios with the wizard "Linux Server" stays in the state "Waiting for configuration verification ...."
I already tried it from several browsers, restart the nagios server, upgrade to the latest version.
Any ideas?

Re: Linux Server Plugin

Posted: Mon Aug 14, 2017 11:08 am
by tgriep
Take a look at this KB article that has possible solutions for the issue you are having on the Nagios XI server when running the Wizards.
https://support.nagios.com/kb/article/n ... letes.html

Re: Linux Server Plugin

Posted: Tue Aug 15, 2017 2:07 pm
by sarpione
I followed the document and still have the problem.

changed the values :
max_execution_time = 60
max_input_time = 60
memory_limit = 256

and execute :

Execute the following commands (use your XI version download link in the wget command):

cd /tmp
wget https://assets.nagios.com/downloads/nag ... 2.9.tar.gz


Once downloaded you'll need to use the name of the downloaded file in the next command, in this example xi-5.2.9.tar.gz is the name being used:

tar xzf xi-5.2.9.tar.gz nagiosxi/nagiosxi/nagiosxi.sudoers --strip-components 2

This will have extracted a file called nagiosxi.sudoers and this file contains all the correct entries.

Run all these commands to fix your /etc/sudoers file to make sure it has all the correct entries:

grep -v NAGIOSXI /etc/sudoers > /etc/sudoers.new
mv -f /etc/sudoers.new /etc/sudoers
rm -rf /etc/sudoers.d/nagiosxi
sed -i 's/^Defaults requiretty/#Defaults requiretty/g' /etc/sudoers
cat /tmp/nagiosxi.sudoers >> /etc/sudoers
chmod 440 /etc/sudoers

Run this one last command to ensure the old lock file is removed:

rm -f /usr/local/nagiosxi/scripts/reconfigure_nagios.lock

mmm any idea?