Ad Widget

Collapse

Create graph from UserParameter with text output

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jensborgenon
    Junior Member
    • Nov 2019
    • 2

    #1

    Create graph from UserParameter with text output

    Hi Guys,

    I'm currenlty using zabbix version 4.2.1 and have the following question:

    I have a userparameter item which is configured to have text output. I've put a status indicator as first char in the output (0 for OK, 2 for NOK; see example below)
    OK -> "0 OVN_connection_failed - OK"
    NOK -> "2 OVN_connection_failed - ALARM!!"

    Currently I can only see the history like this:
    2019-11-29 17:18:35 0 OVN_connection_failed - OK
    2019-11-29 17:18:15 0 OVN_connection_failed - OK
    2019-11-29 17:18:05 0 OVN_connection_failed - OK
    ...

    Is there a way to show the first char of my output (the status indicator) in a Graph instead of the whole output in "History"?

    Thank you,
    Jens
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    You can create dependent item ( https://www.zabbix.com/documentation...ependent_items)
    type - numeric. With preprocessing: type - regular expression , parameters - “^(\d)\s.*$”, output - “\1”
    And do what you want with this

    Comment

    • jensborgenon
      Junior Member
      • Nov 2019
      • 2

      #3
      Hi Hamardaban,

      That works perfectly!

      Thank you.

      Comment

      Working...