Ad Widget

Collapse

Can't read the value from an OID

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Blastjosh
    Junior Member
    • Jul 2023
    • 3

    #1

    Can't read the value from an OID

    I'm writing a discovery rule for a radio device that we use in our company. We're trying a couple different softwares: MRTG, Cacti, and Zabbix. I've found that when I try to put an OID into the SNMP OID display it requires a pair of macro and OID to work. I can't find a macro that's just, show the value, so I'm haveing some trouble moving forward here. If it matters, I'm trying to get the tx power, though I'd prefer if there was just a macro that said "just use what the OID gives you directly.".

    Any help would be much appricated.
  • ISiroshtan
    Senior Member
    • Nov 2019
    • 324

    #2
    Hi there.

    It wood be good if you'd show SNMP OID tree and/or point to SNMP MIB in use, explained what you trying to extract and screenshots of how you set it up and Zabbix and what is not working + Zabbix version you using.

    That said, you define discovery macro with any name you want, they dont have any special meaning or preset functions (except {#SNMPINDEX}). The {#MY.AWESOME.MACRO} will contain the value that it gets from OID you sepcify.

    I've not touch SNMP discoveries since Zabbix 4, it used old style discovery which now is called legacy. I have more practical knowledge with this discovery but it can be slightly hard to wrap your head around it when using it first time and are new to SNMP in general.
    In Zabbix 6.4 they added a newer approach to it. Reading the documentation it seems to be easier to comprehend, but I personally have no real practical knowledge of using it so might be not as proficient in advising about it.

    Either way, check both links I shared above, check what approach you trying to use and see if it has answer to your question. If you still need help - please post new message with submiting points mentioned at start of my reply.

    Comment

    • Blastjosh
      Junior Member
      • Jul 2023
      • 3

      #3
      Hello!

      Thank you for the speedy response, I'm going to attach some pictures. However, to explain, I'm trying to get the TX power from a cambium device using the OID of .1.3.6.1.4.1.17713.21.1.2.5.0, when I use a MIB browser outside of Zabbix to get the number associated with it gives a response of 27 which is expected. However, when I get the same OID from the same Device the test is giving me a value of 0. If you have any more requests I'm happy to help.

      From directly as an item on a device
      Click image for larger version

Name:	image.png
Views:	1035
Size:	42.4 KB
ID:	467020Click image for larger version

Name:	image.png
Views:	984
Size:	86.6 KB
ID:	467021

      From a discovery rule on a template

      Click image for larger version

Name:	image.png
Views:	986
Size:	63.2 KB
ID:	467022Click image for larger version

Name:	image.png
Views:	967
Size:	37.6 KB
ID:	467023

      From my MIB Browser

      Click image for larger version

Name:	Capture.png
Views:	971
Size:	46.6 KB
ID:	467024
      ​​​​

      Comment

      • ISiroshtan
        Senior Member
        • Nov 2019
        • 324

        #4
        First of all - forget about discovery. That feature needed if you have multiple entities in your box and you dont want manually define them all and isntead want to automatically iterate through them. As an example: having multiple interfaces on switch, Why to manually enter all 48, if you can define automatation(discovery) and just configure one and let Zabbix to detect all 48 and apply similar config to each of them.

        If you just want to monitor single OID - SNMP Agent item is way to go. In regards to why it might not work - try removing leading dot from OID when entering it in Zabbix. So instead of .1.3.6.1.4.1.17713.21.1.2.5.0 just put 1.3.6.1.4.1.17713.21.1.2.5.0
        Do advise if it still not working after.

        Comment

        Working...