Ad Widget

Collapse

zabbix_agentd not working when zabbix_agent is

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fredc
    Junior Member
    • May 2009
    • 3

    #1

    zabbix_agentd not working when zabbix_agent is

    Hi all,

    I'm going crazy trying to have zabbix_agentd work on RH 5.3.

    When I execute /usr/local/sbin/zabbix_agentd -t mysql.threads
    the answer is
    mysql.threads [m|ZBX_NOTSUPPORTED]

    BUT when I execute it with /usr/local/sbin/zabbix_agent -t mysql.threads
    the answer is
    mysql.threads [t|6]

    I read the documentation and as far as I understand, I have to use the zabbix_agentd.

    I went through many posts on this forum without success. My version of the agent is ZABBIX Agent (daemon) v1.6.4 (3 April 2009).

    Many thanks in advance.

    Fred
  • Calimero
    Senior Member
    • Nov 2006
    • 481

    #2
    Does zabbix_agentd.conf also contain the right "UserParameters" ?

    Comment

    • fredc
      Junior Member
      • May 2009
      • 3

      #3
      zabbix_agentd not working when zabbix_agent is

      Hi Calimero,

      Thanks for your reply.

      I tried

      UserParameter=mysql.threads,/usr/bin/mysqladmin -uzabbix -pzabbix status|cut -f3 -d":"|cut -f1 -d"Q"|tr -d " "

      UserParameter=mysql.threads,/usr/bin/mysqladmin -uzabbix -pzabbix status|cut -f3 -d":"|cut -f1 -d"Q"

      UserParameter=mysql.threads,mysqladmin -uzabbix -pzabbix status|cut -f3 -d":"|cut -f1 -d"Q"|tr -d " "

      UserParameter=mysql.threads,/usr/bin/mysqladmin status|cut -f3 -d":"|cut -f1 -d"Q"

      all of this without success while in the zabbix_agent.conf, the same works.

      User privileges are the same zabbix:root.

      Comment

      Working...