Ad Widget

Collapse

User Parameter issue on debian linux

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tagsense
    Junior Member
    • Nov 2007
    • 7

    #1

    User Parameter issue on debian linux

    hello,
    i am running Zabbix server (version 1.4.2) on a debian stable machine (2.6.18-5 kernel) and running the client (version 1.4.2) on a debian test machine (2.6.15-1).

    i defined the following userparameter in the zabbix_agentd.conf:

    UserParamater=rs.meminfo,vmstat -s | grep -i 'free memory' | awk '{print $1}'

    when i activate it on the server side, i get ZBX_NOTSUPPORTED return code from the client.

    i have verified the following:
    1. 'zabbix' user has rights to execute all the commands (vmstat, free and awk) included in the definition.
    2. server side data type is correct - number 64-bit integer
    3. server and client can talk to each other - two system parameters (system.swap.out and system.swap.in) are getting reported correctly.

    this parameter doesn't work even if i simplify the definition to the following:
    UserParamater=rs.meminfo,echo 1


    could anyone pls. help me resolve this?

    thanks in advance
    dave
  • martin.marcher
    Junior Member
    • Nov 2007
    • 22

    #2
    Originally posted by tagsense
    hello,
    Code:
    UserParamater=rs.meminfo,vmstat -s | grep -i 'free memory' | awk '{print $1}'
    dave
    The $1 is replaced by ZABBIX. I think your best options is to create a wrapper script that does what you defined.

    Try this to see what I mean:
    Code:
    UserParamater=echotest[*],echo $1
    whatever you give will be echoed back to you....

    Comment

    • tagsense
      Junior Member
      • Nov 2007
      • 7

      #3
      my apologies.

      i had misspelt userparameter as userparamAter. thats what was causing the problem.

      Comment

      • martin.marcher
        Junior Member
        • Nov 2007
        • 22

        #4
        Originally posted by tagsense
        my apologies.

        i had misspelt userparameter as userparamAter. thats what was causing the problem.

        Hehe, better I read what I copy next time too - the typos are in my post too

        Comment

        Working...