FreeSWITCH integration?

Joel Dodson <[email protected]>
Newsgroups gmane.network.opennms.install
Message-ID <CANFOZ6zsatVWur16=poPxb5JvxGaQ5L6yooWB9acdgLjCu5a5Q@mail.gmail.com>
Hi all,

I'm very new to OpenNMS and SNMP in general.  I've been digging through the
docs and wiki but I seem to be stuck.

We currently have OpenNMS (1.10.8) installed and successfully monitoring
several hosts getting basic system information (e.g., disk usage, CPU,
memory, network IO).   It's working great and has even alerted us to some
high CPU usage.

We also have FreeSWITCH installed on one of those servers we're already
successfully monitoring for system type SNMP variables.  We've built and
are running mod_snmp in FreeSWITCH and doing an snmpwalk I can actually get
the information back regarding calls and session with to/from numbers...
That implies to me we have FreeSWITCH SNMP configured and running
correctly.

However, we're not seeing any of the FreeSWITCH related data showing up at
our OpenNMS system.

We've added the following line near the end of datacollection-config.xml:

    <include-collection dataCollectionGroup="FreeSWITCH"/>

And in the datacollection directory, there's a file name freeswitch.xml
with the following contents:

<?xml version="1.0"?>
<datacollection-group name="FreeSWITCH">

    <resourceType name="fsChanType" label="FreeSWITCH Channel Type"
                 resourceLabel="${fsChanTypeName}">
       <persistenceSelectorStrategy
class="org.opennms.netmgt.collectd.PersistAllSelectorStrategy"/>
      <storageStrategy
class="org.opennms.netmgt.dao.support.SiblingColumnStorageStrategy">
        <parameter key="sibling-column-name" value="fsChanTypeName" />
                <parameter key="replace-all" value="s/\s+//" />
      </storageStrategy>
    </resourceType>

      <!-- Derived from FREESWITCH-MIB (for which smilint prints warnings
and errors) -->
      <group name="core" ifType="all">
        <mibObj oid=".1.3.6.1.4.1.27880.1.1.1" instance="0"
alias="fsVersion"           type="string" />
        <mibObj oid=".1.3.6.1.4.1.27880.1.1.2" instance="0"
alias="fsCoreUuid"                  type="string" />
        <mibObj oid=".1.3.6.1.4.1.27880.1.2.1" instance="0"
alias="fsUptime"            type="Timeticks" />
        <mibObj oid=".1.3.6.1.4.1.27880.1.2.2" instance="0"
alias="fsTotalSessions"             type="Counter32" />
        <mibObj oid=".1.3.6.1.4.1.27880.1.2.3" instance="0"
alias="fsActiveSessions"            type="Gauge32" />
        <mibObj oid=".1.3.6.1.4.1.27880.1.2.4" instance="0"
alias="fsMaxSessions"               type="Gauge32" />
        <mibObj oid=".1.3.6.1.4.1.27880.1.2.5" instance="0"
alias="fsActiveCalls"               type="Gauge32" />
        <mibObj oid=".1.3.6.1.4.1.27880.1.2.6" instance="0"
alias="fsSessionsPerSecond"         type="Gauge32" />
        <mibObj oid=".1.3.6.1.4.1.27880.1.2.7" instance="0"
alias="fsMaxSessionsPerSecond"      type="Gauge32" />

      </group>

      <systemDef name="FreeSWITCH Core">
        <sysoidMask>.1.3.6.1.4.1.27880.1</sysoidMask>
        <collect>
          <includeGroup>core</includeGroup>
        </collect>
      </systemDef>

</datacollection-group>

The OIDs are from the opennms/contrib/mibparser/dist/parseMib.sh with the
FREESWITCH-MIB.  The resourceType I copied from an asterisk file.  That
wasn't there initially so I tried adding it but it didn't seem to help.

I'm pretty sure the snmp-config.xml is correct because we're already
getting information from that host.  Also, I see a lot of .jrb files in
opennms/rrd/snmp/9 (the node Id of our FreeSWITCH host).  I don't see
anything for any of the fs* variables though.

I've cranked up capsd and collectd logging in log4j.properties and am not
seeing any errors when trying to contact that host.  Here's one of the
lines the trouble shooting docs say to look for:

2013-04-01 07:07:52,040 INFO  [Main] CollectdPackage: interfaceInPackage:
Interface xxx.xxx.xxx.xxx passed filter and specific/range for package
example1?: true

With all the changes I've been making I have been restarting opennms with:

sudo service opennms restart

I'm assuming that'll pick up any new configuration changes (it picked up
the logging changes I made).

I hope you'll see I really did try to do my homework before coming to the
list with this.  I'd be thrilled if someone out there has successfully
consumed FreeSWITCH SNMP information and could give me some pointers.

thanks,
Joel

------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d

_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-install mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-install
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.