Ad Widget

Collapse

Snmp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nobody
    Junior Member
    • Jul 2013
    • 17

    #1

    Snmp

    Hello,

    I'm utilizing a template for our switches to monitor a range of -t-h-i-n-g-s- (Switch Properties, Interfaces, Environmental Temperatures, etc). Thankfully the template has most of the SNMP items already created, the only problem is that they use standardized OID's which Cisco switches do not support as they have their own OID's for just about everything. I'm also using SNMPTRAPS which zabbix doesn't natively support?

    Is there anyway to 're-use' the current SNMP items such as 'sys.uptime' or 'ifOperStatus24', etc?

    I would like to submit data to them using zabbix_sender, but it keeps failing when I attempt to submit data to a particular host in zabbix: ie:

    zabbix_sender -z ip.add.of.server -s "Core Switch" -k "ifOperStatus24" -o '1'
    The item states that it expects a decimal for a storage value, I presume 1 is on and 0 is off; logically.

    Core Switch is indeed a host within Zabbix Frontend UI, with ifOperStatus24 as an item, for which I would like to submit data to.

    Thank you,
    Nobody.
    Last edited by nobody; 18-07-2013, 18:04.
  • nobody
    Junior Member
    • Jul 2013
    • 17

    #2
    Bumpity Bump Bump

    Comment

    • nilie
      Junior Member
      • May 2013
      • 16

      #3
      I don't quite understand what you are trying to obtain and this could be a reason why nobody has answered you question so far.
      Are you trying to monitor switches from another manufacturer using template for Cisco switches or are you trying to monitor a server using a template built for switches ? Where are you issuing your zabbix_sender command, on the target host you are trying to monitor (I assume it can't be a switch) or on a different one ?
      As for Cisco SNMP OIDs this is nothing unusual, they have standard MIB OIDs (system, interface etc.) and vendor specific OIDs for their hardware, routing, switching etc. and they are not the only one doing that. Juniper does it, Dell, HP, Microsoft and others are doing it. Obviously there is no point in standardizing vendor specific OID, you can't expect a Windows server to have the same functions as a Cisco switch except for system identification and network interfaces which are standard MIB.

      Comment

      • nobody
        Junior Member
        • Jul 2013
        • 17

        #4
        Hi Nilie,

        Let me see if I can answer those for you. I think my blabbering in the above post lead you astray.

        I'm monitoring Cisco switches for when they submit SNMP Trap information, I have snmptrapd collecting the necessary traps and passing it off to a script that I wrote. The script is running off of a unix host that is used for Trap Collection.

        This script in turn processes the data accordingly and attempts to submit the data to mapped out 'item keys' for zabbix; or via OID submission if there is no mapped out OID->Name.

        eg: ".iso.3.6.1.2.1.1.3" "sys.uptime"

        Since the item keys that I want to use are preconfigured for SNMP (not snmp traps), it [zabbix_sender] doesn't allow me to submit data to these items. Not quite sure why I cannot manually submit data to these items. Maybe there is a Syntax that I am unaware of, and that's why Zabbix_Sender keeps Failing. "Successful 0 Failed 1 Sent 1"... etc.

        Most of the Switch OID's that are configured in this Switch Template are from the IETF MIBS, of which I cannot change them via Zabbix User Interface. I might be able to change them through mysql, but I don't want to try that just yet (If I cannot submit data to them, it would be a waste of time to manually change them all). Thus these entries are useless for my purpose as we do not have any 'standardized switches' that report using the open standardized OID's; one exception is sys.uptime.

        Is there a specific syntax that I need to follow before submitting data to these items? I have been trying:

        zabbix_sender -z ip.of.serv.er -s "Some Switch" -k "sys.uptime" -o "360000"
        or:
        zabbix_sender -z ip.of.serv.er -s "Some Switch" -k "ifDescr48" -o "802.1q Trunk To Orchestra Sniffer"

        Maybe the Zabbix process expects the information to be formatted in such a way that is undocumented on the wiki; I am unsure at this point.

        Thanks Nilie, Any other questions I'll be happy to answer.

        Nobody

        Comment

        • nilie
          Junior Member
          • May 2013
          • 16

          #5
          Now I understand perfectly what you are trying to achieve and I think I got the answer for you. From the zabbix_sender manpage :

          zabbix_sender is a command line utility for sending data to a remote Zabbix server. On the Zabbix server an item of type Zabbix trapper should be created with corresponding key.
          Your snmp items in the template you are trying to use are of a different type, they are "SNMP vx agent" where x is snmp version 1,2 or 3 so they don't match with what is required by zabbix_sender.

          Anyone with a deeper knowledge of Zabbix, please correct me if I am wrong.

          Comment

          • nobody
            Junior Member
            • Jul 2013
            • 17

            #6
            Originally posted by nilie
            Now I understand perfectly what you are trying to achieve and I think I got the answer for you. From the zabbix_sender manpage :



            Your snmp items in the template you are trying to use are of a different type, they are "SNMP vx agent" where x is snmp version 1,2 or 3 so they don't match with what is required by zabbix_sender.

            Anyone with a deeper knowledge of Zabbix, please correct me if I am wrong.
            You were right on the money! Thanks Nilie for sticking with me on this one.
            All I have to do now is change the types via the template and then I'll be able to submit data to it. (Which I have done and tested.)

            For those of you who have larger than 255 bytes worth of text, use the type: "Text" rather than type: "Character".

            Comment

            Working...