Ad Widget

Collapse

UserParameter Not Supported Zabbix 1.8.3

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Axilla
    Senior Member
    • Aug 2010
    • 130

    #1

    UserParameter Not Supported Zabbix 1.8.3

    Environment:
    Zabbix 1.8.3
    Agent 1.8.3
    HAProxy(pulling the data using socat and Unix Socket Commands)

    Things I've checked:
    Hostname in zabbix_agentd.conf matches the Host in Zabbix Frontend.

    UserParameter is in the zabbix_agentd.conf running on the HAProxy server.

    I'm trying to write a UserParameter that will monitor the Status of proxies in HAProxy.

    UserParameter=haproxy.blah01.status, echo "show stat" | socat stdio /tmp/proxystats | grep -i 'www.blah.com,www.blah.com.01' | sed 's/,/\ /g' | awk '{print $31}'

    This is unsupported by zabbix, but if I do the following in CLI it returns the value i'm looking for.

    echo "show stat" | socat stdio /tmp/proxystats | grep -i 'www.blah.com,www.blah.com.01' | sed 's/,/\ /g' | awk '{print $31}'

    L7OK
    Last edited by Axilla; 21-01-2011, 23:35.
  • Axilla
    Senior Member
    • Aug 2010
    • 130

    #2
    also if i do zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf -p

    I see:

    haproxy.blah01.status [t|L7OK]

    which is correct, but the web interface says Unsupported and has no data.
    Last edited by Axilla; 21-01-2011, 23:53.

    Comment

    • Axilla
      Senior Member
      • Aug 2010
      • 130

      #3
      I found something additional to add. In my zabbix_agentd.log this is showing up.

      sh: socat: command not found

      Comment

      • Axilla
        Senior Member
        • Aug 2010
        • 130

        #4
        Resolved:

        had to call full path to socat.

        Comment

        Working...