Ad Widget

Collapse

[SNMP][Problem with Xerox MFP][How to manage a SNMP tree]

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Theolude
    Junior Member
    • Apr 2011
    • 13

    #1

    [SNMP][Problem with Xerox MFP][How to manage a SNMP tree]

    Good Afternoon,

    I want to survey Xerox printer from Zabbix, especially i want to get the error message of the printer when occurs (for example paper jam, etc.).
    From Xerox support i've got the MIBs and the efficient OID.

    (MIBs https://www.activexperts.com/admin/m...le=printer-mib
    && http://origin-download.support.xerox.com/pub/drivers/MIBs/ && OID : .1.3.6.1.2.1.43.18.1.1.8)

    I've load MIBs on Zabbix server and reloaded the SNMP daemon.

    When from Zabbix server i try a snmpwalk, i get a new OID :
    .1.3.6.1.2.1.43.18.1.1.8.1.425 and a value associate to this OID.

    If i try a snmpget, i get an error :
    Error in packet
    Reason: (noSuchName) There is no such variable name in this MIB.
    Failed object: .1.3.6.1.2.1.43.18.1.1.8

    From the support i know that from this OID 1.3.6.1.2.1.43.18.1.1.8, i get a value to get another OID value with the final value i'm looking for.
    Each value is associate to a specific error message.

    How can i manage this situation with Zabbix?

    Best regards, Théo
    Last edited by Theolude; 30-05-2018, 12:00.
  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    If OID does not exist on SNMP agent side it is not zabbix issue .. really.
    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
    https://kloczek.wordpress.com/
    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
    My zabbix templates https://github.com/kloczek/zabbix-templates

    Comment

    • Theolude
      Junior Member
      • Apr 2011
      • 13

      #3
      Originally posted by kloczek
      If OID does not exist on SNMP agent side it is not zabbix issue .. really.
      Hi Kloczek,

      It's not exactly that ... the OID exist as a leaf of the master OID.
      I know the master OID, but the leaf is unknown until an error occur. I can get it with a snmpwalk from the server, but sure a snmpget from the master OID return nothing.

      I would like to know if Zabbix can manage this situation. It means, getting a tree of a snmpwalk from a know OID roots (it's possible to get more than one leaf in case of multiple errors).

      Thanks, Théo

      Comment

      • aigars.kadikis
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Mar 2018
        • 208

        #4
        Originally posted by Theolude

        Hi Kloczek,

        It's not exactly that ... the OID exist as a leaf of the master OID.
        I know the master OID, but the leaf is unknown until an error occur. I can get it with a snmpwalk from the server, but sure a snmpget from the master OID return nothing.

        I would like to know if Zabbix can manage this situation. It means, getting a tree of a snmpwalk from a know OID roots (it's possible to get more than one leaf in case of multiple errors).

        Thanks, Théo
        Maybe MIB translations fails. Is this command working without errors?:
        Code:
        snmpwalk -v2c -cpublic 192.168.88.1 -On .1.3.6.1.2.1.43.18.1.1.8  | cut -d ' ' -f 1 | xargs snmpget -v2c -cpublic 192.168.88.1 -On
        Does all leafs under .1.3.6.1.2.1.43.18.1.1.8 happens to be encoded in Hex-STRING?

        Comment

        • Theolude
          Junior Member
          • Apr 2011
          • 13

          #5
          Originally posted by aigars.kadikis

          Maybe MIB translations fails. Is this command working without errors?:
          Code:
          snmpwalk -v2c -cpublic 192.168.88.1 -On .1.3.6.1.2.1.43.18.1.1.8 | cut -d ' ' -f 1 | xargs snmpget -v2c -cpublic 192.168.88.1 -On
          Does all leafs under .1.3.6.1.2.1.43.18.1.1.8 happens to be encoded in Hex-STRING?
          No, this is the Xerox support which explain me that.
          I try your code, if i've ANY error on printer 192.168.10.22, i got it :
          Code:
          .1.3.6.1.2.1.43.18.1.1.8 = No Such Instance currently exists at this OID
          If i've an error, i got it (with your little code):
          Code:
          6D: Unknown Object Identifier (Sub-id not found: (top) -> 6D)
          6C: Unknown Object Identifier (Sub-id not found: (top) -> 6C)
          6E: Unknown Object Identifier (Sub-id not found: (top) -> 6E)
          6C: Unknown Object Identifier (Sub-id not found: (top) -> 6C)
          If i do a snmpwalk only, i've :
          Code:
          .1.3.6.1.2.1.43.18.1.1.8.1.549 = Hex-STRING: 30 30 35 2D 31 32 31 20 49 6E 63 69 64 65 6E 74
          20 70 61 70 69 65 72 20 64 61 6E 73 20 6C 65 20
          63 68 61 72 67 65 75 72 20 64 65 20 64 6F 63 75
          6D 65 6E 74 73 2E 20 44 C3 A9 67 61 67 65 72 20
          6C 65 20 63 69 72 63 75 69 74 20 70 61 70 69 65
          72 2E 20 4C 61 20 6E 75 6D C3 A9 72 69 73 61 74
          69 6F 6E 20 65 73 74 20 64 C3 A9 73 61 63 74 69
          76 C3 A9 65 C2 A0 3B 20 74 6F 75 74 65 73 20 6C
          65 73 20 61 70 70 6C 69 63 61 74 69 6F 6E 73 20
          6E 27 75 74 69 6C 69 73 61 6E 74 20 70 61 73 20
          6C 65 20 73 63 61 6E 6E 65 72 20 73 6F 6E 74 20
          64 69 73 70 6F 6E 69 62 6C 65 73 2E
          WHich is the correct error code in Hex (and what i want), translation in ASCII is :
          CT005-121 Incident papier dans le chargeur de documents. Dégager le circuit papier. La numérisation est désactivée ; toutes les applications n'utilisant pas le scanner sont disponibles.



          Comment

          • aigars.kadikis
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • Mar 2018
            • 208

            #6
            What snmpget version you are using:
            Code:
            snmpget -V
            What distribution lies under the hood?

            It seems like the problem may be related to multiline Hex-STRING. Does your device has any single line Hex-STRING OID? Can it be queried by snmpget?

            Comment

            • Theolude
              Junior Member
              • Apr 2011
              • 13

              #7
              Code:
              snmpget -V
              NET-SNMP version: 5.7.3

              What distribution lies under the Hood?
              Debian GNU/Linux 9.4 (stretch)

              It seems like the problem may be related to multiline Hex-STRING. Does your device has any single line Hex-STRING OID? Can it be queried by snmpget?
              In fact it's a multiline value Hex string.

              Yes the Xerox printer can be queried by SNMPGET (read my comments in my last post).

              The problem is NOT to get the value (it's a next problem), for moment my question is :
              How to manage an unknown OID, which appears ONLY when an error occurs on the Xerox device, and we know only the ROOD OID.
              This ROOT OID has any LEAF, NEVER, EXCEPT in case of problem on the device. But we don't know the OID of this leaf before the problem occurs.

              How to manage that ?

              Comment

              • aigars.kadikis
                Senior Member
                Zabbix Certified SpecialistZabbix Certified Professional
                • Mar 2018
                • 208

                #8
                You need to discover the indexes. Let me design one example. For example, if my snmpwalk output is
                Code:
                # snmpwalk -v2c -cpublic 192.168.88.1 -On 1.3.6.1.2.1.17.4.3.1.1
                .1.3.6.1.2.1.17.4.3.1.1.112.90.182.181.190.45 = STRING: 70:5a:b6:b5:be:2d
                .1.3.6.1.2.1.17.4.3.1.1.184.39.235.203.74.178 = STRING: b8:27:eb:cb:4a:b2
                .1.3.6.1.2.1.17.4.3.1.1.228.141.140.131.49.147 = STRING: e4:8d:8c:83:31:93
                The base is .1.3.6.1.2.1.17.4.3.1.1
                and leaf indexes are
                112.90.182.181.190.45
                184.39.235.203.74.178
                228.141.140.131.49.147

                In Zabbix we need to create an index discover:
                Click image for larger version

Name:	1-discover-rule-index.png
Views:	1905
Size:	77.4 KB
ID:	359375
                In your particular example, while detecting printer error messages, you probably need very short update interval.
                'Keep lost resources period' = 0 will automatically delete discovered items (messages) in Zabbix when the problem in the printer is solved, and there are no leafs available under base OID.

                Create item prototype:
                Click image for larger version

Name:	2-item-prototype.png
Views:	1877
Size:	138.5 KB
ID:	359373

                Pure values are extracted:
                Click image for larger version

Name:	3-extract-result.png
Views:	1841
Size:	70.6 KB
ID:	359374

                ​​​​​​​Regards,

                Comment

                • Theolude
                  Junior Member
                  • Apr 2011
                  • 13

                  #9
                  Owww
                  Too much powerful

                  I'm not really trained with discovery tools in ZABBIX, in this case it seems very powerful. I try to build something functional and let you know.

                  Thanks a lot for your help.

                  Comment

                  • Theolude
                    Junior Member
                    • Apr 2011
                    • 13

                    #10
                    Uhm... i've some disturbing problem

                    I've set my discovery rule and my item, following your instructions... but i've this error :
                    Invalid SNMP OID: pairs of macro and OID are expected
                    I've check my root OID, all is clean

                    Click image for larger version

Name:	CopyScreen1.png
Views:	1825
Size:	139.9 KB
ID:	359380


                    Perhaps this is my trigger which creates the problem ?

                    Click image for larger version

Name:	CopyScreen2.png
Views:	1868
Size:	157.2 KB
ID:	359381

                    Comment

                    • aigars.kadikis
                      Senior Member
                      Zabbix Certified SpecialistZabbix Certified Professional
                      • Mar 2018
                      • 208

                      #11
                      Originally posted by Theolude
                      Uhm... i've some disturbing problem

                      I've set my discovery rule and my item, following your instructions... but i've this error :


                      I've check my root OID, all is clean

                      Click image for larger version

Name:	CopyScreen1.png
Views:	1825
Size:	139.9 KB
ID:	359380


                      Perhaps this is my trigger which creates the problem ?

                      Click image for larger version

Name:	CopyScreen2.png
Views:	1868
Size:	157.2 KB
ID:	359381
                      Please also share the screen with discovery rule.

                      Comment

                      • Theolude
                        Junior Member
                        • Apr 2011
                        • 13

                        #12
                        See below the requested copy screen :

                        Click image for larger version

Name:	CopyScreen3.png
Views:	1845
Size:	180.0 KB
ID:	359452

                        Comment

                        • aigars.kadikis
                          Senior Member
                          Zabbix Certified SpecialistZabbix Certified Professional
                          • Mar 2018
                          • 208

                          #13
                          You need to name OID SNMP base like it was in my screenshot. It does not matter what you choose in this field. I would go with:
                          Code:
                          discovery[{#ERRMSG},1.3.6.1.2.1.43.18.1.1.8]

                          Comment

                          • Theolude
                            Junior Member
                            • Apr 2011
                            • 13

                            #14
                            I'm just reading the documentation https://www.zabbix.com/documentation...y_of_snmp_oids to understand better what i do. I've well and better understand the "macro link" in the discovery rule.

                            And now it's work.

                            Thanks for your help
                            Last edited by Theolude; 30-05-2018, 12:02.

                            Comment

                            • Theolude
                              Junior Member
                              • Apr 2011
                              • 13

                              #15
                              ... uhm ...

                              Last problem. I get Hexa value, i would translate automatically this value in ASCII ...
                              I've read that about



                              with status NOT SOLVED ...

                              How to manage it?

                              Comment

                              Working...