How to monitor EC2 Instance Using Nagios | Arkit
Monitor EC2 Instance Using Nagios Tool Step by Step Guide. Nagios features are enhanced to monitor EC2 instances and S3 Bucket usage from Nagios Core and NagiosXi.
In order to monitor Ec2 instances we have to use, Boto is the Amazon Web Services (AWS) SDK for Python, which allows Python developers to write software that makes use of Amazon services like S3 and EC2. Boto provides an easy to use, object-oriented API as well as low-level direct service access.
Monitor EC2 Instance Using Nagios
To see this options in NagiosXi version should xi-5.5.x
aws ec2 and s3 nagios
Before configuring the Amazon EC2 instance monitor install required dependency packages
# yum install python-pip python-setuptools # pip install boto3
pip will install below packages
Installing collected packages: urllib3, jmespath, python-dateutil, simplejson, docutils, ordereddict, botocore, futures, s3transfer, boto3
Login to AWS Console and create new user with programmatic access
Services –> IAM –> Add User

AWS Add user
Click Next: Permissions
Attach the existing policy if you have otherwise create new policy with read-only access to AWS EC2 and S3
Next: Tags
Provide appropriate tag information and click Next:Review
Create User
Download Access Key ID and Secret Access Key to authenticate against AWS console using API/SDK
Nagios Console Configuration
Now Login to NagiosXI web and navigate to Configure –> Configuration Wizards
Select Amazon EC2

Amazon Ec2 monitor nagios
copy and paste Access Key ID and Secret Access Key. Click Get Available Instances
Select the instances you wanted to monitor

Amazon Ec2 Step2 NagiosXi
Next and Finish
Note: Nagios to Amazon EC2 and vice versa network route should be in reachable state and ports need to enable in Security groups
Below are the default checks
- CPU Credit-Balance / Credit-Usage / Utilization
- Disk Read-Bytes / Read-Ops / Write
- Network Packets In / Out
- Status of Instance
That’s it about monitor EC2 instance using Nagios Tool Step by Step Guide.
Related Articles
Thanks for your wonderful Support and Encouragement