Monitoring Kamailio and Asterisk with AWS CloudWatch


Today I'm announcing the release to my new project VOIP Statistics to AWS CloudWatch (voip-mon-aws-cloudwatch), it is a monitoring script for Kamailio and Asterisk for AWS CloudWatch written in PHP.
This works similarly to AWS CloudWatch Monitoring Script (Linux).
Requirements
- PHP 5.5 and above
- Composer
- Asterisk
- Kamailio
Installation
1. Git clone to any Linux instance with Kamailio or Asterisk installed,
for example to ~/home/ec2-user/ using
git clone https://github.com/rpfilomeno/voip-mon-aws-cloudwatch.git
2. Go to the project's root directory by
cd ./voip-mon-aws-cloudwatch/
3. Make the mon-put-instance-data.php executable
sudo chmod +x mon-put-instance-data.php
4. Install Composer
curl -sS https://getcomposer.org/installer | php
5. Install the dependencies by
php composer.phar update
6. Create your AWS credentials file
Monitoring Kamailio
1. Test the script for monitoring Kamailio with
2. Install to Crontab with
Monitoring Asterisk
1. Test the script for monitoring Kamailio with
2. Install to Crontab with