mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Add ability to get Freeswitch application data via snmp On your Freeswitch server install the script from https://github.com/librenms/librenms-agent/blob/master/agent-local/freeswitch into /etc/snmp, make it executable and adjust it to your installation. Configure your snmpd to use the sript as an extension. For example on Debian add the following line to your /etc/snmp/snmpd.conf: extend freeswitch /etc/snmp/freeswitch Activate the Freeswitch application for your server on your LibreNMS server. it should now start to receive data from your Freeswitch server via snmp. * Graph "Calls" and "Channels" of Freeswitch agent The Freeswitch agent sends Calls and Channels count and they weren't graphed up to now. This is especially useful in settings where the Freeswitch server does not act as a Gateway and thus the agent does not sent Incoming and Outgoing Call numbers. * Cleanup commented code and add myself to authors
15 lines
393 B
PHP
15 lines
393 B
PHP
<?php
|
|
|
|
require 'includes/graphs/common.inc.php';
|
|
|
|
$scale_min = 0;
|
|
$ds = 'calls';
|
|
$colour_area = '9DDA52';
|
|
$colour_line = '2EAC6D';
|
|
$colour_area_max = 'FFEE99';
|
|
$graph_max = 10000;
|
|
$unit_text = 'Calls';
|
|
$rrd_filename = rrd_name($device['hostname'], array('app', 'freeswitch', 'stats', $app['app_id']));
|
|
|
|
require 'includes/graphs/generic_simplex.inc.php';
|