Monitor Amazon EC2 linux

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

Monitor Amazon EC2 linux

Post 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.
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: Monitor Amazon EC2 linux

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
ivp2015
Posts: 142
Joined: Fri Feb 20, 2015 12:32 am

Re: Monitor Amazon EC2 linux

Post 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.
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: Monitor Amazon EC2 linux

Post by scottwilkerson »

is /use/local/share/mnt a mount point?

can you share the output of

Code: Select all

df -h
mount
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
ivp2015
Posts: 142
Joined: Fri Feb 20, 2015 12:32 am

Re: Monitor Amazon EC2 linux

Post by ivp2015 »

Yes. This is mount point. Please find out the attachment.
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: Monitor Amazon EC2 linux

Post 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'
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
ivp2015
Posts: 142
Joined: Fri Feb 20, 2015 12:32 am

Re: Monitor Amazon EC2 linux

Post by ivp2015 »

Yes Nagios user have access.
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: Monitor Amazon EC2 linux

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
ivp2015
Posts: 142
Joined: Fri Feb 20, 2015 12:32 am

Re: Monitor Amazon EC2 linux

Post by ivp2015 »

Oky. How i can resolve this, also please help in CPU and Memory monitoring.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitor Amazon EC2 linux

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked