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
Linux Server Plugin
Linux Server Plugin
You do not have the required permissions to view the files attached to this post.
-
bolson
Re: Linux Server Plugin
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
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.
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
Run the following command and post result:
Code: Select all
ls -l /etc/xinetd.d-
bolson
Re: Linux Server Plugin
Hello sarpione,
Are you installing the nrpe agent on your NagiosXI server or on the host you wish to monitor?
Are you installing the nrpe agent on your NagiosXI server or on the host you wish to monitor?
Re: Linux Server Plugin
The agent install it on the linux server oracle i want to check.
Do I have to do something on the nagios server?
Do I have to do something on the nagios server?
Re: Linux Server Plugin
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.
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!
Waiting for configuration verification....
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?
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
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
https://support.nagios.com/kb/article/n ... letes.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Linux Server Plugin
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?
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?