monitoring-bundle
SNMP Monitoring for One Server, (*1)
Install
Add to composer:, (*2)
"pmdevelopment/monitoring-bundle": "dev-master"
Add to kernel:, (*3)
new PM\Bundle\MonitoringBundle\PMMonitoringBundle(),
Add to config.yml:, (*4)
pm_monitoring:
cleanup: 1 month
snmp:
host: %snmp_host%
community: %snmp_community%
objects:
load: .1.3.6.1.4.1.2021.10.1.3.1
cpu_user: .1.3.6.1.4.1.2021.11.9.0
cpu_system: .1.3.6.1.4.1.2021.11.10.0
ram_total: .1.3.6.1.4.1.2021.4.5.0
ram_used: .1.3.6.1.4.1.2021.4.6.0
Use other objects you wan't to monitor., (*5)
Add to parameters.yml:, (*6)
snmp_host: YOURHOST
snmp_community: YOURCOMMUNITY
Add to routing.yml:, (*7)
pm_monitoring:
resource: "@PMMonitoringBundle/Controller/"
type: annotation
prefix: /monitoring
Register Cronjob:, (*8)
* * * * * /usr/bin/php /var/www/app/console pm:monitoring:cronjob > /dev/null
Don't forget Doctrine update!, (*9)
Usage Example
You need jQuery for this one., (*10)
<br />
<br />