Welcome to the Pandora FMS Module Library

 
This is a library with modules, documentation and tools for Pandora FMS users, both public Open Source and Enterprise. Please use your support credentials (same as used to enter support/ticketing system) in the menu to your right. You will be granted access to a resourceful module library, such as Oracle, VMware, JBoss and others, ready to be used in production enviroments, with official professional support from Artica. If you do not own an enterprise account, you still can browse and download lots of modules, you can even register a free account and contribute with your own modules/tools for other public users.

Home > Network Monitoring

Freeswitch

Author: slerena Create in: 12/10/2012 Update in: 01/01/1970
Rating:
Module type : Local module


Several modules for freeswitch: Count of gateway, Count of Channels, Count of calls, Count of registrations.

Module data

# Count of registrations
module_begin
module_name FSRegnsCount
module_type generic_data
module_exec /usr/local/freeswitch/bin/fs_cli -x "show registrations count" | awk '{if (match($0,"total")) { printf("%d",$1);}}'
module_description FreeSWITCH registrations
module_end

# Count of calls
module_begin
module_name FSCallsCount
module_type generic_data
module_exec /usr/local/freeswitch/bin/fs_cli -x "show calls count" | awk '{if (match($0,"total")) { printf("%d",$1);}}'
module_description FreeSWITCH calls
module_end

# Count of Channels
module_begin
module_name FSChansCount
module_type generic_data
module_exec /usr/local/freeswitch/bin/fs_cli -x "show channels count" | awk '{if (match($0,"total")) { printf("%d",$1);}}'
module_description FreeSWITCH channels
module_end

# Count of gateways:
module_begin
module_name FSGatesCount
module_type generic_data
module_exec /usr/local/freeswitch/bin/fs_cli -x "sofia status gateways" | awk '{if (match($0,"gateways:")) { printf("%d",$1);}}'
module_description FreeSWITCH gateways
module_end