Monitor Amazon EC2 linux
Monitor Amazon EC2 linux
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.
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.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Monitor Amazon EC2 linux
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
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
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.
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.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Monitor Amazon EC2 linux
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.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Monitor Amazon EC2 linux
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
Yes Nagios user have access.
You do not have the required permissions to view the files attached to this post.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Monitor Amazon EC2 linux
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
Oky. How i can resolve this, also please help in CPU and Memory monitoring.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Monitor Amazon EC2 linux
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
then you can use the NRPE wizard to check for check_disk_share_mnt
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