Error in AWS EC2 Uubuntu Monitoring
Re: Error in AWS EC2 Uubuntu Monitoring
Please out the reaming screen shot.!
You do not have the required permissions to view the files attached to this post.
Re: Error in AWS EC2 Uubuntu Monitoring
Reaming Screen Shot
We can add 3 pics on single post so i have add 3 post
We can add 3 pics on single post so i have add 3 post
You do not have the required permissions to view the files attached to this post.
Re: Error in AWS EC2 Uubuntu Monitoring
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.
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Error in AWS EC2 Uubuntu Monitoring
Hi Team,
I have done reinstallation of nrpe agent but issue still persists I have followed instructions from given documentation,
Thanks
I have done reinstallation of nrpe agent but issue still persists I have followed instructions from given documentation,
Thanks
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Error in AWS EC2 Uubuntu Monitoring
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.
This certainly will also be required as the security group act as another off-server firewall.
Re: Error in AWS EC2 Uubuntu Monitoring
Yes it's open from our network, also i am able to telnet,
Port 5666
Thanks
Port 5666
Thanks
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Error in AWS EC2 Uubuntu Monitoring
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:
to this
Code: Select all
only_from = 127.0.0.1, 115.114.12.4, 182.74.168.35Code: Select all
only_from = 127.0.0.1 115.114.12.4 182.74.168.35ivp2015 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
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
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
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Error in AWS EC2 Uubuntu Monitoring
for clarity, did you restart the xinetd service after making the changes?
Re: Error in AWS EC2 Uubuntu Monitoring
Yes we have done the restart the nrpe xinetd services,
Thanks
Thanks