Ad Widget

Collapse

Trying to get Item last value to show as a Tag on the item itself with no luck

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • missCertSpecBy1.2pt
    Junior Member
    • Feb 2025
    • 1

    #1

    Trying to get Item last value to show as a Tag on the item itself with no luck

    Hello,

    Trying to get a tag to show what the current value of an snmp item is. Let us say it is just the model type of a UPS unit I am monitoring. Looking for the item name Model to have a tag with the units specific Model number it is getting from the snmp query. I have restricted access on production so trying to use this to be able to filter specific models by types when dealing with multiple host groups. The unit itself is an APC PDU so I am looking for the tage to be Model:AP8841 and not fully grasping the concept to get it to work. Example below is what I thought it would be. The item key is rPDUIdentModelNumber.0 and the snmp OID is .1.3.6.1.4.1.318.1.1.12.1.5.0. not sure if that is needed in the tag value to pull the correct info?

    {{ITME.VALUE}.regsub(rPDUIdentModelNumber.0)}

  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4806

    #2
    but if you leave half of thigs out, then it will nto work ..
    regsub(pattern,output)

    you do pattern matching, but you do not capture any values and do not output them.
    Tag will get value at problem generation moment... So for a moment it wil be "current" but thats about it..

    Comment

    Working...