Ad Widget

Collapse

UserParameter Not Supported

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fredmonac
    Junior Member
    • Dec 2009
    • 3

    #1

    UserParameter Not Supported

    Hi all

    I'm currently setting up a brand new zabbix installation
    I'm trying to monitor traffic on my Centos 5.3 servers.
    To do that I've setup some UserParamaters

    UserParameter=net-eth0-out ,cat /proc/net/dev | awk -F: '{ if ($1 ~ "eth0") { print $2 } }' | awk '{ printf("[u|%s] %s\n", $1) }'

    But each time I try it by using this command :

    zabbix_agentd -t net-eth0-out

    I receive :

    net-eth0-out [m|ZBX_NOTSUPPORTED]

    So I decided to try something more simple

    UserParameter=fredtest, echo 1

    Same result

    And the same with the mysql.version

    I cannot find out why

    Does any of you have an idea ?

    zabbix_agentd version is 1.8

    Thanks

    Fred
  • exkg
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified Specialist
    • Mar 2007
    • 718

    #2
    Hi,


    Did you restart zabbix_agentd ?
    What messages have you in zabbix_agentd.log ?


    []s,
    Luciano
    --
    Luciano Alves
    www.zabbix.com
    Brazil | México | Argentina | Colômbia | Chile
    Zabbix Performance Tuning

    Comment

    • untergeek
      Senior Member
      Zabbix Certified Specialist
      • Jun 2009
      • 512

      #3
      I thought it was impossible to get UserParameter entries to work from the local zabbix_agentd -t setup.

      If you want to test this, go to the zabbix server and run:

      zabbix_get -s source-computer -k key

      Yours will look something like this:

      zabbix_get -s source-computer -k net-eth0-out

      You should see a proper response from this.

      Comment

      • fredmonac
        Junior Member
        • Dec 2009
        • 3

        #4
        Hi

        Yes i've restarted the agent
        Here are the log

        31805:20091208:223201.769 One child process died (PID:31812). Exiting ...
        31805:20091208:223203.769 Zabbix Agent stopped. Zabbix 1.8 (revision 8564).
        16758:20091208:223205.878 zabbix_agentd started. Zabbix 1.8 (revision 8564).
        16760:20091208:223205.879 zabbix_agentd collector started
        16761:20091208:223205.879 zabbix_agentd listener started
        16762:20091208:223205.879 zabbix_agentd listener started
        16763:20091208:223205.879 zabbix_agentd listener started
        16764:20091208:223205.879 zabbix_agentd listener started
        16765:20091208:223205.879 zabbix_agentd listener started
        16766:20091208:223205.879 zabbix_agentd active check started [91.121.155.150:10051]
        16766:20091208:223205.892 No active checks on server: host [front3.xxxxx.com] not found

        Comment

        • fredmonac
          Junior Member
          • Dec 2009
          • 3

          #5
          Hi all
          Finaly I fix all the problem
          First of all I change the server name in zabbix_agentd.conf with the same as the one in zabbix server
          There was also an error in my UserParameter
          It should be like this

          UserParameter=net-eth0-out,cat /tmp/dev | awk -F: '{ if ($1 ~ "eth0") { print $2 } }' | awk '{ printf("%s\n", $1) }'
          UserParameter=net-eth0-in,cat /tmp/dev | awk -F: '{ if ($1 ~ "eth0") { print $2 } }' | awk '{ printf("%s\n", $9) }'

          As you can see, I also have to copy the dev file from /proc/net/dev to /tmp
          Because zabbix user does not have access to /proc/net/dev
          To do that I've writen a smal script that is run every minute by the crontab and that copy /proc/net/dev to /tmp

          Thanks for your help

          Fred

          Comment

          Working...