https://github.com/rpfilomeno/voip-mon-aws-cloudwatch
VOIP Statistics to AWS CloudWatch is a monitoring script for Kamailio and Asterisk for AWS CloudWatch written in PHP. This works similarly to AWS CloudWatch Monitoring Script (Linux).
https://github.com/rpfilomeno/voip-mon-aws-cloudwatch
asterisk aws cloudwatch kamailio monitoring pbx statistics voip
Last synced: 2 months ago
JSON representation
VOIP Statistics to AWS CloudWatch is a monitoring script for Kamailio and Asterisk for AWS CloudWatch written in PHP. This works similarly to AWS CloudWatch Monitoring Script (Linux).
- Host: GitHub
- URL: https://github.com/rpfilomeno/voip-mon-aws-cloudwatch
- Owner: rpfilomeno
- Created: 2016-05-05T13:00:38.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-12-03T06:09:58.000Z (6 months ago)
- Last Synced: 2025-03-25T17:21:37.561Z (3 months ago)
- Topics: asterisk, aws, cloudwatch, kamailio, monitoring, pbx, statistics, voip
- Language: PHP
- Homepage:
- Size: 32.2 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
VOIP Statistics to AWS CloudWatch
=================================VOIP Statistics to AWS CloudWatch is a monitoring script for Kamailio and Asterisk
for AWS CloudWatch written in PHP. This works similarly to [AWS CloudWatch Monitoring Script](http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/mon-scripts.html) (Linux).
Requirements
------------* PHP 5.5 and above
* Composer
* Asterisk
* KamailioInstallation
------------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](http://docs.aws.amazon.com/aws-sdk-php/v3/guide/guide/credentials.html#credential-profiles)
Usage
-----### Monitoring Kamailio
1. Test the script for monitoring Kamailio with
```./mon-put-instance-data.php stats --t kamailio```2. Install to Crontab with ```crontab -e```
*/5 * * * * php /home/ec2-user/voip-mon-aws-cloudwatch/mon-put-instance-data.php stats --s kamailio### Monitoring Asterisk
1. Test the script for monitoring Kamailio with
```./mon-put-instance-data.php stats --t asterisk```2. Install to Crontab with ```crontab -e```
*/5 * * * * php /home/ec2-user/voip-mon-aws-cloudwatch/mon-put-instance-data.php stats --s asterisk