Linux Server Plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sarpione
Posts: 49
Joined: Fri Oct 14, 2016 10:02 am

Linux Server Plugin

Post 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
You do not have the required permissions to view the files attached to this post.
bolson

Re: Linux Server Plugin

Post 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.
sarpione
Posts: 49
Joined: Fri Oct 14, 2016 10:02 am

Re: Linux Server Plugin

Post 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.
You do not have the required permissions to view the files attached to this post.
bolson

Re: Linux Server Plugin

Post by bolson »

Run the following command and post result:

Code: Select all

ls -l /etc/xinetd.d
bolson

Re: Linux Server Plugin

Post by bolson »

Hello sarpione,

Are you installing the nrpe agent on your NagiosXI server or on the host you wish to monitor?
sarpione
Posts: 49
Joined: Fri Oct 14, 2016 10:02 am

Re: Linux Server Plugin

Post 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?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Linux Server Plugin

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
sarpione
Posts: 49
Joined: Fri Oct 14, 2016 10:02 am

Waiting for configuration verification....

Post 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?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Linux Server Plugin

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
sarpione
Posts: 49
Joined: Fri Oct 14, 2016 10:02 am

Re: Linux Server Plugin

Post 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?
Locked