Error while using NRPE
Error while using NRPE
Hi Team,
I'm trying to monitoring a RHEL server using nagios. I have already installed the NRPE agent on the target machine. When I try to monitor the parameters using nagios i see a message saying "Couldn't complete SSL handshake". Please suggest
I'm trying to monitoring a RHEL server using nagios. I have already installed the NRPE agent on the target machine. When I try to monitor the parameters using nagios i see a message saying "Couldn't complete SSL handshake". Please suggest
Re: Error while using NRPE
There are a few different causes of this, though the most likely one is that the Nagios server's ip address is not defined in the remote host's nrpe.cfg file. Edit the nrpe.cfg file on the remote host and look for the line: allowed_hosts=127.0.0.1 You will need to add the ip address of your Nagios server to this line (it is comma-separated).
Change:
To:
If you use xinetd for controlling the NRPE daemon (most people do), then you need to add the Nagios server's ip address to the xinetd nrpe configuration file: /etc/xinetd.d/nrpe. In this file you will find the line: only_from = 127.0.0.1 This list is space-delimited.
The other common cause is that NRPE was not compiled with ssl enabled. To recompile NRPE with ssl support, browse to your NRPE source directory (usually in /tmp/nrpe-2.14 if you followed the compiling NRPE from source document) and compile with the switch:
Change:
To:
If you use xinetd:
If you use an init-script method (this is the default way, but your distribution may vary):
Code: Select all
vi /usr/local/nagios/etc/nrpe.cfgCode: Select all
allowed_hosts=127.0.0.1Code: Select all
allowed_hosts=127.0.0.1,<nagios server ip>Code: Select all
vi /etc/xinetd.d/nrpeCode: Select all
./configure --enable-ssl
cd /tmp/nrpe-2.14
./configure --enable-ssl
make all
make installCode: Select all
only_from = 127.0.0.1Code: Select all
only_from = 127.0.0.1 <Nagios server ip>Code: Select all
service xinetd restartCode: Select all
/etc/init.d/nrpe restartBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Error while using NRPE
I have added the nagios server ip address in the nrpe.cfg and i already see the Ip address of the nagios server on the xinetd.d/nrpe. However I cant run the commands 'service xinetd restart' or '/etc/init.d/nrpe restart'. I get a messaging ' -bash: Service: command not found'
Re: Error while using NRPE
How was nrpe installed? From source, repo, or from the XI agent download?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Error while using NRPE
I have downloaded it from link on the nagios xi
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Error while using NRPE
Are you re-installing NRPE now?.. Your new thread suggests so.
Re: Error while using NRPE
Well, I have tried installing the same package on another server and that failed. they are 2 different issues. This Issue is something i faced ona server where the NRPE package has been installed successfully.
Re: Error while using NRPE
Can you try re-installing the linux agent following the steps, outlined in this document?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Error while using NRPE
this exactly how we have installed this agent, but i dont midn re-installing it...!!!
Do you suggest we uninstall the current NRPE package before re-installing it or just install it over the current installation.
Do you suggest we uninstall the current NRPE package before re-installing it or just install it over the current installation.
Re: Error while using NRPE
You can just install over.
Be sure to check out our Knowledgebase for helpful articles and solutions!