Ad Widget

Collapse

How To Add xerox.mib as a template.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • george04
    Junior Member
    • Jul 2011
    • 9

    #1

    How To Add xerox.mib as a template.

    Hi there hope someone could help or give an idea for my problem.

    Im trying to add Xerox MIBs to zabbix as a template, i know in zabbix we could only import XML.
    going throught network i found 2 posible ways.
    1.- with a script made in perl, and with the snmpwalk command, the problem i dont know how to implement it o run it, an so do it .
    2.- The other way is or its what i understude, is to put into snmp.conf and add this: mibdirs +.snmp/mibs
    mibs +ALL
    where in snmp/mibs is where i supose to have all my xxx.mibs files.
    i allready try this option and restar my services, but i really dont how it supose to work, how can i get to know if itś all right, or if im missing one step.

    "hope you can help im really totaly new on this."
    Last edited by george04; 28-07-2011, 01:49.
  • george04
    Junior Member
    • Jul 2011
    • 9

    #2
    Could someone at least tell there's no solution on this.
    lol im really getting tired, have read alot and can find anything that could really help me i perphaps i just cant understand..
    please god help..
    gotta do this by this week.

    Comment

    • untergeek
      Senior Member
      Zabbix Certified Specialist
      • Jun 2009
      • 512

      #3
      Are you putting the MIBs into the system default location (e.g. /usr/share/snmp/mibs) or into ~/.snmp/mibs?

      I never have a problem when I add the MIBs to the system default location and then restart Zabbix. Zabbix always seems to pick them up.

      Comment

      • george04
        Junior Member
        • Jul 2011
        • 9

        #4
        Hi there Untergeek thanks for aswering, look no im not putting mi "93pidtc.mib" in the system default location /usr/share/snmp/mibs, by the way i have this route /usr/share/snmp/ and in that directory i got to directory more witch are mib2c.data and snmpconf-data dont if its the same thing.

        Where im putting my mibs are in /etc/snmp/snmp.conf in there im adding this:
        mibs :
        mibdirs /etc/snmp/XCMI_SMIv2
        mibs ALL
        where in /etc/snmp/XCMI_SMIv2/ are all my Xerox file.mib witch i download from tha main xerox web.
        and after that i restart my service zabbix_agent and zabbix_server. and i dont know how to see if its going good, when i see mi zabbix_server.log a found this.
        25233:20110729:101954.892 Expression [{12640}>150000] cannot be evaluated: Evaluation failed for function: {Xerox 5655:ipReasmReqds.delta(0)}
        25232:20110729:101956.106 Expression [{12461}>100] cannot be evaluated: Evaluation failed for function: {Xerox 5655:icmpOutEchos.delta(0)}
        25232:20110729:101956.108 Expression [{12521}>150000] cannot be evaluated: Evaluation failed for function: {Xerox 5655:ifInOctets1.delta(0)}
        25232:20110729:101956.109 Expression [{12641}>0] cannot be evaluated: Evaluation failed for function: {Xerox 5655:ipReasmTimeout.delta(0)}
        25237:20110729:101957.697 Expression [{12462}>0] cannot be evaluated: Evaluation failed for function: {Xerox 5655:icmpOutErrors.delta(0)}
        25237:20110729:101957.698 Expression [{12463}>150000] cannot be evaluated: Evaluation failed for function: {Xerox 5655:icmpOutMsgs.delta(0)}
        25237:20110729:101957.700 Expression [{12583}>150000] cannot be evaluated: Evaluation failed for function: {Xerox 5655:ifOutOctets2.delta(0)}
        25237:20110729:101957.702 Expression [{12642}>0] cannot be evaluated: Evaluation failed for function: {Xerox 5655:ipRoutingDiscards.delta(0)}
        25233:20110729:102000.162 Expression [{12464}>0] cannot be evaluated: Evaluation failed for function: {Xerox 5655:icmpOutParmProbs.delta(0)}
        25233:20110729:102000.165 Expression [{12465}>1000] cannot be evaluated: Evaluation failed for function: {Xerox 5655:icmpOutRedirects.delta(0)}
        25232:20110729:102001.164 Expression [{12466}>0] cannot be evaluated: Evaluation failed for function: {Xerox 5655:icmpOutSrcQuenchs.delta(0)}
        25231:20110729:102002.689 Expression [{12467}>1000] cannot be evaluated: Evaluation failed for function: {Xerox 5655:icmpOutTimeExcds.delta(0)}
        25233:20110729:102005.500 Expression [{12468}>100] cannot be evaluated: Evaluation failed for function: {Xerox 5655:icmpOutTimestampReps.delta(0)}
        25233:20110729:102005.501 Expression [{12469}>100] cannot be evaluated: Evaluation failed for function: {Xerox 5655:icmpOutTimestamps.delta(0)}
        25231:20110729:102007.753 Expression [{12532}>150000] cannot be evaluated: Evaluation failed for function: {Xerox 5655:ifInOctets2.delta(0)}
        25237:20110729:102012.764 Expression [{12237}>100] cannot be evaluated: Evaluation failed for function: {Xerox 7346:icmpInAddrMaskReps.delta(0)}
        25233:20110729:102015.657 Expression [{12238}>100] cannot be evaluated: Evaluation failed for function: {Xerox 7346:icmpInAddrMasks.delta(0)}
        25233:20110729:102015.658 Expression [{12239}>0] cannot be evaluated: Evaluation failed for function: {Xerox 7346:icmpInDestUnreachs.delta(0)}
        25233:20110729:102015.660 Expression [{12240}>100] cannot be evaluated: Evaluation failed for function: {Xerox 7346:icmpInEchoReps.delta(0)}
        25233:20110729:102015.661 Expression [{12418}>150000] cannot be evaluated: Evaluation failed for function: {Xerox 7346:ipFragCreates.delta(0)}
        25233:20110729:102015.663 Expression [{12419}>0] cannot be evaluated: Evaluation failed for function: {Xerox 7346:ipFragFails.delta(0)}
        25233:20110729:102015.664 Expression [{12420}>150000] cannot be evaluated: Evaluation failed for function: {Xerox 7346:ipFragOKs.delta(0)}
        25232:20110729:102016.348 Expression [{12241}>100] cannot be evaluated: Evaluation failed for function: {Xerox 7346:icmpInEchos.delta(0)}
        Where do you think im making the mistake o having the problem.

        Comment

        • untergeek
          Senior Member
          Zabbix Certified Specialist
          • Jun 2009
          • 512

          #5
          If you get the OID for one of your SNMP items, does that work?

          That way you can verify if it's an SNMP connection problem or a MIB resolution problem.

          Comment

          • george04
            Junior Member
            • Jul 2011
            • 9

            #6
            You mean do something with, snmpwalk, or witch command can help me do this?

            Comment

            • untergeek
              Senior Member
              Zabbix Certified Specialist
              • Jun 2009
              • 512

              #7
              No, I mean make a zabbix item but instead of using the MIB value as the item to retrieve you put in the full OID, e.g. .1.2.3.4....

              Comment

              • george04
                Junior Member
                • Jul 2011
                • 9

                #8
                Sorry for my question probably its to easy for you, but i just have one week on this.
                You mean Making an ITEM on the zabbix UI, putting all the data necesary including the OID and se is it works, i guess i gotta be one of the OID i put in my snmp.conf

                im really ... meesup with sorry, its just im really new.

                Comment

                • zalex_ua
                  Senior Member
                  Zabbix Certified Trainer
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • Oct 2009
                  • 1286

                  #9
                  Originally posted by george04
                  You mean do something with, snmpwalk, or witch command can help me do this?
                  http://www.net-snmp.org/wiki/index.p...d_loading_MIBS

                  Comment

                  • untergeek
                    Senior Member
                    Zabbix Certified Specialist
                    • Jun 2009
                    • 512

                    #10
                    If you can do a single snmpget of a single OID and get that value to work reliably, then you should seek to duplicate that in Zabbix. That's what I mean about putting in an OID (number-based) for an item in the zabbix UI.

                    Think of it in troubleshooting terms. If I can't get a text-based MIB to work in Zabbix, can I get it to work via snmpget? What about doing an OID? Test all of your steps to see where the disconnect comes. I am guessing that Zabbix isn't recognizing the MIBs that you deployed. It could be that you'd have to install them in ~/.snmp/mibs for the zabbix user if you can't put them in the system default location. I do not think that Zabbix respects the defaults in /etc/snmp as it is only the libraries for net-snmp which are used to compile zabbix. The libraries, however, know where the defaults were set up to be and will look there first. That is why I suggested first to install the MIBS to the system location: I know that it works.

                    Comment

                    • george04
                      Junior Member
                      • Jul 2011
                      • 9

                      #11
                      Originally posted by untergeek
                      If you can do a single snmpget of a single OID and get that value to work reliably, then you should seek to duplicate that in Zabbix. That's what I mean about putting in an OID (number-based) for an item in the zabbix UI.

                      Think of it in troubleshooting terms. If I can't get a text-based MIB to work in Zabbix, can I get it to work via snmpget? What about doing an OID? Test all of your steps to see where the disconnect comes. I am guessing that Zabbix isn't recognizing the MIBs that you deployed. It could be that you'd have to install them in ~/.snmp/mibs for the zabbix user if you can't put them in the system default location. I do not think that Zabbix respects the defaults in /etc/snmp as it is only the libraries for net-snmp which are used to compile zabbix. The libraries, however, know where the defaults were set up to be and will look there first. That is why I suggested first to install the MIBS to the system location: I know that it works.
                      Thanks untergeek your right i install my mibs in /etc/snmp/ but i try to find my ~/.snmp/mibs but just cant find it, im using ubuntu server?

                      Comment

                      • untergeek
                        Senior Member
                        Zabbix Certified Specialist
                        • Jun 2009
                        • 512

                        #12
                        In all honesty, you'll have to do some trial and error or find out where ubuntu puts the mibs in their compiled version of netsnmp. This is why the simplest solution is to put them in the system location (and no, I won't stop recommending it).

                        You could put them there temporarily and then test just to see if it works, then remove them again and test other locations. Again, if you have a zabbix user, e.g. /home/zabbix, put them in /home/zabbix/.snmp/mibs to see if that works.

                        Remember that the server needs to be restarted after adding MIBs. It won't auto-detect them while the server is running. It scans at startup.

                        Comment

                        Working...