Page 3 of 9
Re: Error in AWS EC2 Uubuntu Monitoring
Posted: Tue Mar 21, 2017 8:33 am
by ivp2015
Please out the reaming screen shot.!
Re: Error in AWS EC2 Uubuntu Monitoring
Posted: Tue Mar 21, 2017 8:35 am
by ivp2015
Reaming Screen Shot
We can add 3 pics on single post so i have add 3 post
Re: Error in AWS EC2 Uubuntu Monitoring
Posted: Tue Mar 21, 2017 3:53 pm
by tgriep
When you use the Linux Server Wizard, it assumes that the Linux NRPE agent that is provided by a link on the Wizard's page is installed in the remote server.
The Nagios provided agent is setup to install the NRPE agent on the remote system and configures it to use arguments but most 3rd party installers do not use arguments and that causes the errors you are receiving.
The simplest way it to use the NRPE Agent provided in the link below and install that on the remote system.
https://assets.nagios.com/downloads/nag ... ent.tar.gz
Here are the instructions for installing the agent.
https://assets.nagios.com/downloads/nag ... _Agent.pdf
Then, that will setup the remote agent to match the Linux Wizards Settings and the checks should work for you when you run the wizard.
Re: Error in AWS EC2 Uubuntu Monitoring
Posted: Thu Mar 23, 2017 9:18 am
by ivp2015
Hi Team,
I have done reinstallation of nrpe agent but issue still persists I have followed instructions from given documentation,
Thanks
Re: Error in AWS EC2 Uubuntu Monitoring
Posted: Thu Mar 23, 2017 1:10 pm
by scottwilkerson
You have mentioned in the OP that port 5666 was listening, but being this is in AWS, can you confirm that it is open in the EC2 security group your Ubuntu server is running?
This certainly will also be required as the security group act as another off-server firewall.
Re: Error in AWS EC2 Uubuntu Monitoring
Posted: Fri Mar 24, 2017 3:00 am
by ivp2015
Yes it's open from our network, also i am able to telnet,
Port 5666
Thanks
Re: Error in AWS EC2 Uubuntu Monitoring
Posted: Fri Mar 24, 2017 11:57 am
by scottwilkerson
I just looked over your /etc/xinetd.d/nrpe config previously posted and realized your only_from line has comma's in it, which is not correct, change this:
Code: Select all
only_from = 127.0.0.1, 115.114.12.4, 182.74.168.35
to this
Code: Select all
only_from = 127.0.0.1 115.114.12.4 182.74.168.35
ivp2015 wrote:Hi Team,
I have followed the instruction to install NRPE agent from Nagios document,
When we going to add new host in Nagios document and setup show in our portal,
And the ubuntu machine is on cloud also we have monitor other windows host they are working fine but on ubuntu we got error,
Please find bellow the out of given commands
_____________________________________________________________________
Code: Select all
cat /etc/xinetd.d/nrpe
root@ip-172-31-28-18:~# cat /etc/xinetd.d/nrpe
# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
flags = REUSE
socket_type = stream
port = 5666
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
log_on_failure += USERID
disable = no
only_from = 127.0.0.1, 115.114.12.4, 182.74.168.35
Re: Error in AWS EC2 Uubuntu Monitoring
Posted: Mon Mar 27, 2017 6:26 am
by ivp2015
Hi Team,
I have done changes to
root@ip-172-31-28-18:~# cat /etc/xinetd.d/nrpe
# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
flags = REUSE
socket_type = stream
port = 5666
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
log_on_failure += USERID
disable = no
only_from = 127.0.0.1 115.114.12.4 182.74.168.35
}
and its still not working
Re: Error in AWS EC2 Uubuntu Monitoring
Posted: Mon Mar 27, 2017 10:00 am
by scottwilkerson
for clarity, did you restart the xinetd service after making the changes?
Re: Error in AWS EC2 Uubuntu Monitoring
Posted: Tue Mar 28, 2017 6:07 am
by ivp2015
Yes we have done the restart the nrpe xinetd services,
Thanks