Ad Widget

Collapse

Axl (Cisco Cucm), Soap, Xml and this post

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zabbixflic
    Member
    • Jan 2012
    • 39

    #1

    Axl (Cisco Cucm), Soap, Xml and this post

    Hi eXperts,

    I met and installed this marvelous sw, Zabbix, that is, for me,
    a steap ahead.

    Now, in order to expand its possibilities on my work, I need to implement
    monitoring on some Cucm (Cisco Callmanager) parameters
    via AXL, cause they are not available via snmp query.

    I saw this post :



    and tried to contact user (via forum, email and pm) but no luck

    Can you help me ?

    Do you know some script to test axl or soap via xml ?

    Does someone have successfully query Cucm by those way ?

    Many many thanks in advance to all

    Bye

    Federico
  • danrog
    Senior Member
    • Sep 2009
    • 164

    #2
    To everyone that has been looking for this, sorry I haven't gotten back to any of you. I've been busy with other projects and haven't been able to do what I want with my CUCM scripts. They are very much a quick hack I threw together for our environment and should be rewritten so they are generic and can work for any environment. If anyone feels up to the task feel free to update them and re-post. I should also note, I only use this with CUCM6.1/7. I currently do not have a CUCM8 environment. So, if you get SOAP errors, its most likely because they changed the SOAP interface on version 8.

    The attached scripts are written in PHP, and requires HTTPS access to ALL of your CUCM boxes (pubs and subs). They run from cron every minute.

    Here is my cron setup:

    #Internal CCM Stats
    ## GW Call Stats /root/scripts/ccm.php "<DEVICE TYPE>" <GW PREFIX> <COUNTER>
    ## In this example,
    ## Device Type: MGCP devices
    ## Our Device Prefix: rt (all our devices have a naming convention, and all our routers hostnames start with "rt")
    ## Counter: CallsActive
    * * * * * root /usr/bin/php /root/scripts/ccm.php "MGCP PRI Device" rt CallsActive >/dev/null

    ## SIP Stats /root/scripts/ccmsip.php <SIP TRUNK PREFIX>
    ## In this example,
    ## All our SIP gateways use a standard naming convention BOSGSX1-XX and the script uses this to create a REGEX used in PHP
    * * * * * root /usr/bin/php /root/scripts/ccmsip.php BOSGSX >/dev/null

    ## This script collects a standard set of base CUCM stats :
    ## OutOfResources|MTPResourceActive|TranscoderResourc eActive|RegisteredHardwarePhones|CallsActive
    * * * * * root /usr/bin/php /root/scripts/ccmbase.php >/dev/null

    ## This script collects the status for each gateway attached to a sub
    ## You can add an argument in the script so you can just pass the sub/pub via the cli
    * * * * * root /usr/bin/php /root/scripts/ccmgateways.php >/dev/null

    The next step is the template. It will most likely need to be updated with your PRI interface names as see by CUCM.

    For instance, if you have a gateway S0/SU1/DS1-0@router, then your KEY would have to look like S0_SU1_DS1_0 (basically '/' and '-' rewritten with '_'). I forget why I had to do this, but I know I had to for some reason (I wrote these over a year ago in about a day)

    As you see from this, its VERY much written with only my environment in mind and will most likely require quiet a bit of updating for someone else's environment. If its a basic setup (one pub and one sub) you should be able to adapt these very quickly.

    --Dan
    Attached Files

    Comment

    • zabbixflic
      Member
      • Jan 2012
      • 39

      #3
      Many thanks Dan.

      I will check out and if in troubles I will post here again.

      I know you, me and all other people are very busy due to work family and so
      on.... so thank you.

      Federico

      Comment

      Working...