Monitor Amazon EC2 linux

This board serves as an open discussion and support collaboration point for Nagios XI. NOTE: Nagios XI customers should use the Customer Support forum to obtain expedited support.

Monitor Amazon EC2 linux

Postby ivp2015 » Mon Jan 14, 2019 5:41 am

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.
Attachments
Nagios Error.JPG
ivp2015
 
Posts: 122
Joined: Fri Feb 20, 2015 12:32 am

Re: Monitor Amazon EC2 linux

Postby scottwilkerson » Mon Jan 14, 2019 11:38 am

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 13812
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Monitor Amazon EC2 linux

Postby ivp2015 » Tue Jan 15, 2019 6:23 am

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.
Attachments
2.JPG
3.JPG
ivp2015
 
Posts: 122
Joined: Fri Feb 20, 2015 12:32 am

Re: Monitor Amazon EC2 linux

Postby scottwilkerson » Tue Jan 15, 2019 12:19 pm

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

can you share the output of
Code: Select all
df -h
mount
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 13812
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Monitor Amazon EC2 linux

Postby ivp2015 » Thu Jan 17, 2019 11:28 am

Yes. This is mount point. Please find out the attachment.
Attachments
4.JPG
ivp2015
 
Posts: 122
Joined: Fri Feb 20, 2015 12:32 am

Re: Monitor Amazon EC2 linux

Postby scottwilkerson » Thu Jan 17, 2019 4:45 pm

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'
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 13812
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Monitor Amazon EC2 linux

Postby ivp2015 » Fri Jan 18, 2019 6:48 am

Yes Nagios user have access.
Attachments
5.JPG
ivp2015
 
Posts: 122
Joined: Fri Feb 20, 2015 12:32 am

Re: Monitor Amazon EC2 linux

Postby scottwilkerson » Fri Jan 18, 2019 10:13 am

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 13812
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Monitor Amazon EC2 linux

Postby ivp2015 » Mon Jan 21, 2019 8:01 am

Oky. How i can resolve this, also please help in CPU and Memory monitoring.
ivp2015
 
Posts: 122
Joined: Fri Feb 20, 2015 12:32 am

Re: Monitor Amazon EC2 linux

Postby scottwilkerson » Mon Jan 21, 2019 2:10 pm

Page 3 here covers how to add command directives to your nrpe.cfg
https://assets.nagios.com/downloads/nagiosxi/docs/Monitoring_Hosts_Using_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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 13812
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Next

Return to Nagios XI

Who is online

Users browsing this forum: Google [Bot] and 10 guests