Wireless Access

last person joined: 5 hours ago 

Access network design for branch, remote, outdoor and campus locations with Aruba access points, and mobility controllers.
Expand all | Collapse all

Instant OID's

Jump to Best Answer
  • 1.  Instant OID's

    Posted Nov 13, 2013 06:48 AM



    Any idea what is the OID for getting info how many IAP there is in a cluster?






  • 2.  RE: Instant OID's

    Posted Nov 13, 2013 08:25 AM

    Try this one:



  • 3.  RE: Instant OID's

    Posted Nov 14, 2013 02:21 AM

    Situation is that I'm using Nagios but I dont know really understand OID's or SNMP so much.


    I can get info like:

    check_command               check_snmp!-C password -o .

    I get system uptime

    check_command               check_snmp!-C password -o .
    I get ArubaOS version


    But when I try

    check_command               check_snmp!-C password -o


    I get error iso. = No Such Object available on this agent at this OID

    Any help?


    Thanks. J





  • 4.  RE: Instant OID's
    Best Answer

    Posted Nov 14, 2013 07:55 AM

    Here is the solution, you need to use SNMP WALK to get AP info of your IAP cluster to work, and for that you need a perl script.

    To get this to work you need to have a basic knowledge about configuring Nagios.

    So what I did is I ripped a script called check_cisco_ap.sh found from http://exchange.nagios.org/directory/Plugins/Hardware/Network-Gear/Cisco/Check-Cisco-AP-Number/details


    (Thanks to Marco Gottardello for the script)


    And did few changes to the script


    usage="Usage: check_cisco_ap -H <hostname> -C <community> -N


    usage="Usage: check_aruba_ap -H <hostname> -C <community> -N




    num_of_ap=`/usr/bin/snmpwalk -v 2c -c $community $hostname | wc -l`


    num_of_ap=`/usr/bin/snmpwalk -v 2c -c $community $hostname iso. | wc -l`


    Save the file and rename it to "check_aruba_ap.pl"

    Upload to the server where you have Nagios installed to the folder called libexec (my path is /usr/local/nagios/libexec)


    Edit your command.cfg file and add a line


    ##### CHECK ARUBA AP COUNT #####

    # 'check_aruba_ap' command definition
      define command{
      command_name    check_aruba_ap.pl
      command_line    $USER1$/check_aruba_ap -H $HOSTADDRESS$ $ARG1$       


    add a line to services.cfg


    define service {
        hostgroup_name        Instant Virtual Cluster AP amount 2pcs
        service_description        SNMP Virtual Cluster AP amount 2pcs
        check_command               check_aruba_ap! -C password -N 2
        use                    generic-service
        notification_interval    0 ; set > 0 if you want to be renotified


    And do as many as you need, in this case we are expecting to have 2 AP's on a cluster. Just replace the -N 2 to some other number (-N exoect) -C is the community string.

    Then create a file called for example "my_aruba.cfg"

    And add the basic Nagios stuff into it:


    ############ ARUBA ##############

    define  host {

    use                                            generic-host
    host_name                               My Company Controller
    alias                                         My Company Controller

    check_command                      check-host-alive
    hostgroups                                   Instant Virtual Cluster AP amount 2pcs
    notifications_enabled           1       ; Host notifications are enabled
    event_handler_enabled           1       ; Host event handler is enabled
    flap_detection_enabled          1       ; Flap detection is enabled
    failure_prediction_enabled      1       ; Failure prediction is enabled
    process_perf_data               1       ; Process performance data
    retain_status_information       1       ; Retain status information across program restarts
    retain_nonstatus_information    1       ; Retain non-status information across program restarts
    max_check_attempts              10
    notification_interval           1
    notification_period             24x7
    notification_options            d,u,r,f,s
    contact_groups                  admins

    And also edit hostgroup.cfg and add


    define hostgroup {
        hostgroup_name        Instant Virtual Cluster AP amount 2pcs
        alias                            Instant Virtual Cluster AP amount 2pcs


    Restart Nagios (service nagios restart) And you're done!




    Joakim R.