Monitor Cloud Managed Meraki Devices

Note, these scripts should not be used in favor on the functionality available in v2018 SP2 and up.

DOWNLOAD THE SCRIPTS HERE

So, you want to monitor your Cloud Managed Meraki devices in WhatsUp Gold? That is impossible!…without the use of my handy dandy scripts below. WhatsUp Gold out of the box cannot accomplish this due to the fact that all of the SNMP data for all devices populates from a single device (the cloud controller) and the fact that Meraki uses port 16100 for SNMP data. It is important to note that the Meraki cloud controller only populates certain data through SNMP. The most useful of which are probably the status of the Meraki device (basically, online or offline) as well as the interface usage statistics. Here is what you will need to get this going:

  • Your SNMP credential from your Meraki dashboard page
  • Your WhatsUp Gold database login information
  • The package of scripts I will provide below
  1. You need to prep your WhatsUp Gold environment just like you would for any other device. Add your Meraki credential, and make sure to note the credential name — you will need it later.
  2. You then should add the monitors to the library. Meraki Status is an active monitor. Go to your monitor library, create a new active script active monitor (vbscript) and paste in the code from the meraki_status.vbs. In the configuration section of the script, you must put the name of the WhatsUp Gold SNMP credential and it must exactly match the credential name you added in step 1.
  3. Meraki Utilization is a performance monitor. Create a new performance monitor active script (vbscript) and paste in the code from meraki_utilization.vbs. In the configuration section of the script, you must also put the name of the WhatsUp Gold SNMP credential and it must exactly match the credential name you added in step 1.
  4. Copy gather_meraki_devices.vbs to your WhatsUp Gold server. You will need to modify it in a couple of areas. In the configuration section, you need to put your SNMP credential name just like you did for the other scripts. You will also need to put the name of the monitors you created, these will need to match exactly the names you used in steps 2 and 3. You will need to specify a file name in order to save the list of devices gathered. For example C:\meraki_devices.csv. Finally, near the very bottom of the script, you will need to specify your WhatsUp Gold SQL database password. It is setup to use a SQL account, you could modify it to use a Windows account as well by changing the connection string properly. Save your changes.
  5. Open a 32-bit command prompt by using Start > Run > C:\Windows\syswow64\cmd.exe, or if your WhatsUp Gold server is on a 32-bit OS, just do Start > Run > cmd
  6. Use the command prompt window to browse to the directory you saved the gather_meraki_devices.vbs script in. Then run this command: cscript gather_meraki_devices.vbs. This will connect out to the cloud controller using your credential and gather information about *ALL* of the devices, regardless of it they are online or offline. This may take sometime to complete depending on the amount of devices you have, so just relax and let it do it’s thing. I’ve built-in some pretty good error checking due to an issue Meraki has with SNMP requests — if it takes too long to get a response, it will simply disconnect and reconnect to SNMP.
  7. Once gather_meraki_devices.vbs script runs, review your saved CSV file with the information from the devices. Ensure to remove any rows of devices you do not want to add to WhatsUp Gold, noting that offline devices will still be added and will also show as ‘Down’ when they are added.
  8. Run add_meraki_devices.vbs the same way (using cscript add_meraki_devices.vbs) This will add the devices to WhatsUp Gold and begin polling them [Note: in v2017 and up, you will need to run MigrationUtility.exe as well which is located in the WUG install directory]

12 Replies to “Monitor Cloud Managed Meraki Devices”

  1. getting this error when testing monitor, any idea

    Starting Meraki Status ‘Meraki Status’
    Polling device at address 192.168.130.254.
    Execution Mode: InPollerProcess
    Monitor Instance Created, Starting Initialization
    MonActScriptInterface : PerformCheckService : Starting Monitor Processing
    SNMP test successful!

    1.3.6.1.4.1.29671.1.1.4.1.3.0
    Failed to execute an instance of Active Script Monitor Id A58CD8B2-2E68-4978-A7BF-8150F3C8DC7E at 1/5/2018 2:30:55 PM, Output Script Execution Failure
    Script execution error on line 93, column 0. Error is Variable is undefined: ‘rc’

  2. now i seem to be getting this error
    Execution Mode: InPollerProcess
    Monitor Instance Created, Starting Initialization
    MonActScriptInterface : PerformCheckService : Starting Monitor Processing
    Failed to execute an instance of Active Script Monitor Id A58CD8B2-2E68-4978-A7BF-8150F3C8DC7E at 4/3/2018 1:36:11 PM, Output Script Execution Failure
    Error: No SNMP credentials specified.

    Meraki Utilization tests fine using same credential

    1. The utilization is actually a performance monitor, and it’s not 100% working last I checked. As for the other one, make sure the device you added actually has credentials specified.

  3. Hi,

    thanks with your script.

    I’m trying to using that to add Meraki Firewall to whatsup gold, when i run the script i’ve got this error:

    gather_meraki_devices_generic_v1.vbs(113, 5) Microsoft VBScript runtime error: Type mismatch: ‘[string: “ERROR: No Such objec”]’

    where can i look to solve this error?

    Thanks in advance

    1. This means it’s not responding to one of the SNMP variables being grabbed, which either means you’re using the wrong credentials or for some reason the Meraki SNMP portal isn’t responding with the expected data.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.