Error in AWS EC2 Uubuntu Monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ivp2015
Posts: 142
Joined: Fri Feb 20, 2015 12:32 am

Re: Error in AWS EC2 Uubuntu Monitoring

Post by ivp2015 »

Please out the reaming screen shot.!
You do not have the required permissions to view the files attached to this post.
ivp2015
Posts: 142
Joined: Fri Feb 20, 2015 12:32 am

Re: Error in AWS EC2 Uubuntu Monitoring

Post by ivp2015 »

Reaming Screen Shot

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

Re: Error in AWS EC2 Uubuntu Monitoring

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ivp2015
Posts: 142
Joined: Fri Feb 20, 2015 12:32 am

Re: Error in AWS EC2 Uubuntu Monitoring

Post by ivp2015 »

Hi Team,

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

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ivp2015
Posts: 142
Joined: Fri Feb 20, 2015 12:32 am

Re: Error in AWS EC2 Uubuntu Monitoring

Post by ivp2015 »

Yes it's open from our network, also i am able to telnet,

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

Post 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



Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ivp2015
Posts: 142
Joined: Fri Feb 20, 2015 12:32 am

Re: Error in AWS EC2 Uubuntu Monitoring

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

Post by scottwilkerson »

for clarity, did you restart the xinetd service after making the changes?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ivp2015
Posts: 142
Joined: Fri Feb 20, 2015 12:32 am

Re: Error in AWS EC2 Uubuntu Monitoring

Post by ivp2015 »

Yes we have done the restart the nrpe xinetd services,

Thanks
Locked