DESCRIPTION:

Sometimes people are not able to have the same SNMP credentials on all their devices. This DataSource allows you to centrally specify up to 10 different credentials for both SNMP v2 and v3. The DataSource reads these credentials and sets them on each device (via the API). It takes about 10 minutes for the one-time setup. It tries the credentials in numeric order so you can specify which credentials it should use first. If your credentials are already set and working it will skip most of the script and exit to be efficient. If the SNMP test fails, then it tries each of your credentials and the first one that works (in numeric order) will be used to set properties on that device/resource. If none of your credentials work, it will show you that and alert by default but you can disable that of course.

DEMO VIDEO:

INSTRUCTIONS:

  • Create a dynamic group (aka ‘Auto assigned group) called “z_Credentials” in the root/base of your Resource tree. You can choose a different group name but you must change the script to match it. Set the query for this dynamic group as follows:

!isWindows() && system.virtualization !~ “VMware” && !z_Credentials

This will filter out most of the devices that don’t use SNMP.

  • If you haven’t already, create an API only user. This needs a role that, at minimum, has ‘Manage’ permissions on all Resources (so it can set/update the properties). Get the API ID and API key and set properties on this group.
  • In this z_Credentials group, add all your credentials (as properties). It’s important to use the naming convention (as shown in screenshot below)
  • Download this DataSource and add it to your LogicMonitor portal (Settings > DataSources > Add > From file )
  • Note: By design, the DataSource doesn’t show unless all your credentials failed. If you want to see even the successful ones, then you can set a property on the resource or group called ‘show_credential_success’. (screenshot)

DISCLAIMER: Official tech support not available from LogicMonitor but I will try to help as my time allows.

Example of Credentials

It looks like this when credentials are changed/set

 

It looks like this when credentials already work

 

It looks like this when all your credentials failed