Ad Widget

Collapse

Problem with Zabbix Server in Squid Monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fricardo
    Junior Member
    • Aug 2006
    • 4

    #1

    Problem with Zabbix Server in Squid Monitoring

    Hello all:

    I'm monitoring a Squid proxy using the program squidclient with UserParameter. In zabbix_agentd.conf in the proxy machine I wrote:

    Code:
    UserParameter=squid.requests,squidclient mgr:info|grep 'Average HTTP'|cut -d':' -f2
    When I test the return:

    Code:
    # zabbix_agentd -t squid.requests
    squid.requests                                [t|       1190.5]
    Zabbix_agentd is 1.1.1. In the Server side (Zabbix 1.1) the Web frontend displays the item as "unsupported".

    The log in the zabbix_server I have:

    Code:
    011021:20060830:105516 Type of received value [ 1188.2] is not sutable for [squid.requests@xxxx] having type [0]
    011021:20060830:105516 Parameter [squid.requests] is not supported by agent on host [xxxx] Old status [0]
    011021:20060830:105516 Type of received value [ 1188.2] is not sutable for [squid.requests@xxxx] having type [0]
    What's the problem?

    fricardo
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Please get rid of spaces to make it work. It is already fixed in 1.1.2 (not released yet).
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • fricardo
      Junior Member
      • Aug 2006
      • 4

      #3
      [SOLVED!] Thanks to the help!

      Thanks Alexey ... It's working now. I used tr comand to clean string spaces. Thanks!

      Comment

      • apiero
        Junior Member
        • Dec 2007
        • 3

        #4
        [SOLVED!] Thanks to the help (rev. 2)!

        Hi there,

        just to add my 2 cents .
        I tried this solution on zabbix 1.4.3 but the problem reported is still present... so the complete command, to remove tabs and spaces on the agent is:
        Code:
        UserParameter=squid.meanrequests,/usr/sbin/squidclient mgr:info|grep 'Average HTTP'|cut -d':' -f2| tr -d ' \t'
        Bye and thanks for your work!
        Piero

        Comment

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

          #5
          resurrecting an old thread

          Originally posted by Alexei
          Please get rid of spaces to make it work. It is already fixed in 1.1.2 (not released yet).
          did this mean that data for int/float items would be automatically stripped from whitespace characters ?
          that's not happening with agent 1.4.5/server 1.4.6.
          Zabbix 3.0 Network Monitoring book

          Comment

          Working...