Flussonic Media Server documentation

SNMP

Flussonic Media Server has a basic implementation of the SNMP protocol. To use it, add the following lines in the Flussonic configuration file:
snmp 4000;
edit_auth admin password;

This will enable a listener for SNMP on port 4000.

To fetch stats via SNMP, execute the following commands:

apt-get -y install snmp snmp-mibs-downloader

cd /opt/flussonic

snmpwalk -c ADMIN -v 2c -M +apps/snmp2/mibs/ -m +FLUSSONIC-MIB 127.0.0.1:4000 .

Here we specify key -c ADMIN that means "community" in terms of SNMP. SNMP community is equal to the Flussonic administrator's login.

Example

If everything is configuraed correctly, the response will look like the following:

# snmpwalk -c flussonic -v 2c -M +apps/snmp2/mibs/ -m +FLUSSONIC-MIB 127.0.0.1:4000 .
Created directory: /var/lib/snmp/mib_indexes
SNMPv2-MIB::sysDescr.0 = STRING: Flussonic 19.05
SNMPv2-MIB::sysObjectID.0 = OID: FLUSSONIC-MIB::flussonicModule
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (81590) 0:13:35.90
SNMPv2-MIB::sysContact.0 = STRING: info@erlyvideo.org
SNMPv2-MIB::sysName.0 = STRING: Flussonic
SNMPv2-MIB::sysLocation.0 = STRING: Erlang
SNMPv2-MIB::sysServices.0 = INTEGER: 72
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::snmpInPkts.0 = Counter32: 1186
SNMPv2-MIB::snmpInBadVersions.0 = Counter32: 0
SNMPv2-MIB::snmpInBadCommunityNames.0 = Counter32: 6
SNMPv2-MIB::snmpInBadCommunityUses.0 = Counter32: 0
SNMPv2-MIB::snmpInASNParseErrs.0 = Counter32: 0
SNMPv2-MIB::snmpEnableAuthenTraps.0 = INTEGER: enabled(1)
SNMPv2-MIB::snmpSilentDrops.0 = Counter32: 0
SNMPv2-MIB::snmpProxyDrops.0 = Counter32: 0
FLUSSONIC-MIB::streamsNum.0 = Gauge32: 2
FLUSSONIC-MIB::sIndex.1 = INTEGER: 1
FLUSSONIC-MIB::sIndex.2 = INTEGER: 2
FLUSSONIC-MIB::sName.1 = STRING: mc1
FLUSSONIC-MIB::sName.2 = STRING: tra
FLUSSONIC-MIB::sClientCount.1 = Gauge32: 1
FLUSSONIC-MIB::sClientCount.2 = Gauge32: 0
FLUSSONIC-MIB::sRetryCount.1 = Gauge32: 0
FLUSSONIC-MIB::sRetryCount.2 = Gauge32: 0
FLUSSONIC-MIB::sLifeTime.1 = Counter64: 809863
FLUSSONIC-MIB::sLifeTime.2 = Counter64: 804257
FLUSSONIC-MIB::sBitrate.1 = Counter64: 8657
FLUSSONIC-MIB::sBitrate.2 = Counter64: 4178
FLUSSONIC-MIB::sBytesIn.1 = Counter64: 900131893
FLUSSONIC-MIB::sBytesIn.2 = Counter64: 453771011
FLUSSONIC-MIB::sBytesOut.1 = Counter64: 0
FLUSSONIC-MIB::sBytesOut.2 = Counter64: 0
FLUSSONIC-MIB::sStatus.1 = INTEGER: active(1)
FLUSSONIC-MIB::sStatus.2 = INTEGER: active(1)
FLUSSONIC-MIB::totalClients.0 = Gauge32: 1
FLUSSONIC-MIB::schedulerLoad.0 = Gauge32: 0
SNMPv2-MIB::snmpSetSerialNo.0 = INTEGER: 362871239
SNMP-FRAMEWORK-MIB::snmpEngineID.0 = STRING: "flussonicID"
SNMP-FRAMEWORK-MIB::snmpEngineBoots.0 = INTEGER: 1
SNMP-FRAMEWORK-MIB::snmpEngineTime.0 = INTEGER: 816 seconds
SNMP-FRAMEWORK-MIB::snmpEngineMaxMessageSize.0 = INTEGER: 484
SNMP-MPD-MIB::snmpUnknownSecurityModels.0 = Counter32: 0
SNMP-MPD-MIB::snmpInvalidMsgs.0 = Counter32: 0
SNMP-MPD-MIB::snmpUnknownPDUHandlers.0 = Counter32: 0
SNMP-MPD-MIB::snmpUnknownPDUHandlers.0 = No more variables left in this MIB View (It is past the end of the MIB tree)

FLUSSONIC-MIB::sStatus answers with integers that mean the following:

  • active = 1
  • notInService = 2
  • notReady = 3