Archived community.zenoss.org | full text search
Skip navigation
4631 Views 13 Replies Latest reply: Jul 25, 2012 2:21 PM by Emocke RSS
Emocke Rank: White Belt 50 posts since
Jun 9, 2010
Currently Being Moderated

Jul 19, 2012 11:15 AM

Using Multiple Community strings on one device

Hi

 

I am trying to load Intracom Licensed Band Radio equipment to my monitoring server.

The Intracom units consist of a Controller which contain the IP address for the device and use the standard "Public" community string.

The controller might contain up to 4 different modems in slot 1 to 4 which cannot be setup with an IP address.

The community string for the different slots(Modems) are setup as public.1 , public.2 , public.3 , public.4

Each modem might use the same OID but they use the different Community strings to display the information related to that specific Slot/modem

I have set up the differnet communities under SNMPCommunities, but it still does not pull the information for each community string

IT only uses the community string associated to zSNMPCommunity

 

How can i enable the other communities strings.

I need to use all the differnet community strings to enable me to pull the information i require.

 

Kind Regards

Erick

  • dpetzel Rank: Brown Belt 1,141 posts since
    Oct 17, 2010
    Currently Being Moderated
    1. Jul 19, 2012 9:47 PM (in response to Emocke)
    Re: Using Multiple Community strings on one device

    As I understand them, the multiple values should be read "Try these in order *until* you find one that works", rather than "Try them all" as it sounds like you want.

     

    This sounds like a wonky SNMP implementation, so you might need some tweaking as I don't think the standard SNMP modelers are going to do what you need.

     

    My guess is that the only way you'll get this working is to write a custom modeler, and or/or custom command data source so you can run a bash script to gather the data you need. Its really  shame you can't just access everything using a single SNMP community string, like most devices

  • alex0cy Rank: White Belt 58 posts since
    May 13, 2008
    Currently Being Moderated
    3. Jul 20, 2012 5:46 AM (in response to Emocke)
    Re: Using Multiple Community strings on one device

    As I understand each modem has it's own ip address? Why not to add modems to zenoss as seprate devices using specific communities?

  • Michael Ducharme Rank: White Belt 24 posts since
    Jul 20, 2010
    Currently Being Moderated
    5. Jul 20, 2012 12:54 PM (in response to Emocke)
    Re: Using Multiple Community strings on one device

    If you are just trying to do SNMP graphing of modem OIDs, you can use a simple command data source script to run an snmpget, append the .1 .2 .3 .4 to the community name string, and then you will have graphing working.

     

    The following would work as a simple command template for modem 1 (you can copy and paste this directly into the command template box when you add a new data source:

     

    /bin/echo "SNMP Status OK|modem1OidIWant=$(snmpget -${dev/zSnmpVer} -c ${dev/zSnmpCommunity}.1 -OUvq ${dev/manageIp} 1.3.6.1.4.1.10854.10.8.4)"

     

    Replace the oid number above with the oid you want to graph. The -c ${dev/zSnmpCommunity}.1  should call the command with -c public.1 which would work for modem 1

     

    Then you add a data point called "modem1OidIWant" and graph that.. you should get the value.

  • Michael Ducharme Rank: White Belt 24 posts since
    Jul 20, 2010
    Currently Being Moderated
    7. Jul 24, 2012 12:17 PM (in response to Emocke)
    Re: Using Multiple Community strings on one device

    Hi, you have to make a new data source of type "COMMAND", not type "SNMP". When you do so, there will not be an OID prompt, instead there will be a "command template" box. That is where you want to copy and paste the line.

  • Michael Ducharme Rank: White Belt 24 posts since
    Jul 20, 2010
    Currently Being Moderated
    9. Jul 25, 2012 11:23 AM (in response to Emocke)
    Re: Using Multiple Community strings on one device

    Hi, I'm sorry that my instructions were not more clear..

     

    After you add the data source you have to add one or more data points.. if you don't have the data point there is nothing to add to a graph.

     

    The data point gets added inside the data source.. with the command data source selected, use the menu above to choose "add data point" and add a new data point. Make sure it uses the same name as you specified in the command data source string (in my example this was 'modem1OidIWant').

  • Michael Ducharme Rank: White Belt 24 posts since
    Jul 20, 2010
    Currently Being Moderated
    11. Jul 25, 2012 1:04 PM (in response to Emocke)
    Re: Using Multiple Community strings on one device

    Hi, I see the issue.. the command template has in it "modem2OidIWant" but the data point does not have the letter "I" (uppercase i). If you don't want the 'I', remove it from the command template so that it starts with /bin/echo "SNMP Status OK|modem2OidWant=$( etc....

  • Michael Ducharme Rank: White Belt 24 posts since
    Jul 20, 2010

    Also, to clarify, the data source name can be whatever you want (although normally with this method you would make it the same just for consistency). The critical thing is that the variable name in the command template between the '|' and '=' has to match exactly the name of the data point - otherwise, it will not realize that the data returned by the command is to be associated with that data point.

     

    When I gave my example, I was not sure what you wanted to graph.. you would probably want to adjust the command template and the data point to have your explanatory name for it:

     

    oduRSSIModem1

     

    instead of the "modem1OidIWant" example I gave.

     

    You can use whatever name you want - as long as what is in between the | and = of the command template matches the data point name.

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points