Ad Widget

Collapse

Telegraf monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phplag
    Junior Member
    • Dec 2019
    • 6

    #1

    Telegraf monitoring

    Hi all,

    I would like to monitor with zabbix some hosts who just have a telegraf agent installed.
    On them, output prometheus_client is configured so I could reach all datas via http://host:9273/metrics

    I would like to implement a 'master' item to get all information and use 'HTTP agent' to reach exposed datas but I don't need to get all values, and only catch important fields.
    I would like to know if it's possible to only match certain lines using preprocessing. (like grep in bash)

    I already try to use preprocessing and validation>Matched regular expression and for testing set 'cpu-total'
    Click image for larger version  Name:	zabbix-preprocessing.PNG Views:	0 Size:	9.5 KB ID:	431076
    With that, it return the all page withoug filtering

    I also try to use Text>Regular expression but it only return the 1rst result and all lines who must match with cpu="cpu-total"
    Click image for larger version  Name:	zabbix-preprocessing-2.PNG Views:	0 Size:	10.7 KB ID:	431077

    With that I will create dependant items based on this main raw item.

    We are using Zabbix 5.0 in our use case

    Regards
    Attached Files
  • ing.alext
    Junior Member
    • Jan 2022
    • 1

    #2
    Hi, not sure if it helps, but something similar is explained in this video: https://www.youtube.com/watch?v=Xczt...channel=Zabbix

    Comment

    Working...