Ad Widget

Collapse

Regular expressions and SNMP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Behemoth
    Junior Member
    • Jun 2015
    • 5

    #1

    Regular expressions and SNMP

    Hi,

    I’m using Zabbix 2.4.3 to monitor a few Juniper SRX firewalls with SNMP. It’s been working great so far. :-)

    There is just one thing that I haven’t solved. I’m trying to monitor the version of Junos running on these boxes and the only available OID which seems to contain this info is:

    sysDescr.0 = Juniper Networks, Inc. srx210he internet router, kernel JUNOS 12.1X44-D35.5 #0: 2014-05-19 21:36:43 UTC [email protected]:/volume/build/junos/12.1/service/12.1X44-D35.5/obj-octeon/junos/bsd/kernels/JSRXNLE/kernel Build date: 2014-05-19 23:0

    As you can see, sysDescr.0 is a long string containing lots of info, but the only thing I want is the ”12.1X44-D35.5” part.

    Is there some kind of regexp magic I can perform on items collected with SNMP? I’ve read some of the documentation and I found a few references to using regexps, but I think I need a helping hand on where to start.

    Thanks,
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    That's unfortunately not supported yet. A generic approach is requested by ZBXNEXT-1443.
    For a more specific request to SNMP agent, e.g. similar to extracting a value using <output> parameter as supported for log items, consider to create a respective feature request - if none of such has already done by someone else, of course.

    Comment

    • Behemoth
      Junior Member
      • Jun 2015
      • 5

      #3
      OK, thanks. That's disappointing.

      Comment

      Working...