Page 1 of 2

Monitor Amazon EC2 linux

Posted: Mon Jan 14, 2019 5:41 am
by ivp2015
Hi Team,

We are getting error while configure Nagios monitoring on our amazon linux machine. Below is the details which was we are followed.

1- cd /tmp
2- wget https://assets.nagios.com/downloads/nag ... ent.tar.gz
3- tar xzf linux-nrpe-agent.tar.gz
4- cd linux-nrpe-agent
5- ./fullinstall

Error- Amazon is not currently supported. Please use either Red Hat, CentOS, Oracle Linux, CloudLinux, SUSE Enterprise, OpenSUSE, Ubuntu, or Debian.

OS Details-
Amazon Linux release 2 (Karoo)

Please find out the attachment for more details.

Thanks.

Re: Monitor Amazon EC2 linux

Posted: Mon Jan 14, 2019 11:38 am
by scottwilkerson
You are correct the current Linux Agent installer doesn't support Amazon linux.

You should be able to follow the CentOS guide for a manual install here
https://support.nagios.com/kb/article.php?id=515

Re: Monitor Amazon EC2 linux

Posted: Tue Jan 15, 2019 6:23 am
by ivp2015
Thanks Issue resolve now.
Could you send me the link for monitor cpu, memory. Also I have configured check_disk to monitor disks.But the issue is we are able to monitor only / not /use/local/share/mnt please find out attachment.

Re: Monitor Amazon EC2 linux

Posted: Tue Jan 15, 2019 12:19 pm
by scottwilkerson
is /use/local/share/mnt a mount point?

can you share the output of

Code: Select all

df -h
mount

Re: Monitor Amazon EC2 linux

Posted: Thu Jan 17, 2019 11:28 am
by ivp2015
Yes. This is mount point. Please find out the attachment.

Re: Monitor Amazon EC2 linux

Posted: Thu Jan 17, 2019 4:45 pm
by scottwilkerson
Hmm, does the nagios user have access to that mount point?

Code: Select all

ls -dl /use/local/share/mnt
su nagios -c 'df -h'

Re: Monitor Amazon EC2 linux

Posted: Fri Jan 18, 2019 6:48 am
by ivp2015
Yes Nagios user have access.

Re: Monitor Amazon EC2 linux

Posted: Fri Jan 18, 2019 10:13 am
by scottwilkerson
Actually the command you posted is a check_disk command on the local Nagios XI server, it isn't connecting via NRPE to the remote server

Re: Monitor Amazon EC2 linux

Posted: Mon Jan 21, 2019 8:01 am
by ivp2015
Oky. How i can resolve this, also please help in CPU and Memory monitoring.

Re: Monitor Amazon EC2 linux

Posted: Mon Jan 21, 2019 2:10 pm
by scottwilkerson
Page 3 here covers how to add command directives to your nrpe.cfg
https://assets.nagios.com/downloads/nag ... g_NRPE.pdf

Something like this

Code: Select all

command[check_disk_share_mnt]=/usr/local/nagios/libexec/check_disk -c 85 -p /use/local/share/mnt
then you can use the NRPE wizard to check for check_disk_share_mnt