Ad Widget

Collapse

Split output from Zabbix-Agent web.page.get[host,<path>,<port>]

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • renaud.pelissier
    Junior Member
    • Jun 2013
    • 1

    #1

    Split output from Zabbix-Agent web.page.get[host,<path>,<port>]

    Hello,

    I have a Zabbix-Agent returning some data using a
    Code:
    web.page.get[host,<path>,<port>]
    item.
    The result is a String at the "Java properties" format:
    Code:
    key1=value1
    key2=value2
    I would like to split this into different Items. I could not find a way to do that. Do you have any suggestion other than using my own script along with zabbix_sender?

    Regards,

    Renaud
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    necroposting, but web.page.regexp with output parsing could help - see https://www.zabbix.com/documentation...s/zabbix_agent for more detail.

    you would have to retrieve the page for every value you need from it, though - if that is inefficient, a custom script it is.
    Zabbix 3.0 Network Monitoring book

    Comment

    Working...