Ad Widget

Collapse

UserParameter with [*] not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fips
    Member
    • Sep 2005
    • 38

    #1

    UserParameter with [*] not working

    If I try to use the new funktionality from zabbix beta3 with multiple
    parameters like:
    UserParameter=wc[*],wc -$2 $1|cut -f1 -d" "

    I got allways:
    Parameter [usr.wc[/etc/hosts,w]] is not supported by agent on host HOSTNAME Old status [0]

    If I use only one parametr I have the same problem.
    Some help?
  • cameronsto
    Senior Member
    • Oct 2005
    • 148

    #2
    Have you tried providing the full path to 'wc'? /usr/local/bin/wc?

    -cameron

    Comment

    • fips
      Member
      • Sep 2005
      • 38

      #3
      Just tried to provied the full path.
      The same thing:

      Not supported

      -peter

      Comment

      • gatisa
        Junior Member
        • Oct 2005
        • 10

        #4
        I got same problem with beta3 and beta4

        Comment

        • cameronsto
          Senior Member
          • Oct 2005
          • 148

          #5
          What about using specific values? Such as:
          UserParameter=wc[/tmp/test.dat],/usr/local/bin/wc -l /tmp/test.dat | /usr/local/bin/cut -f1 -d" "
          Does that work?

          -cameron

          Comment

          • fips
            Member
            • Sep 2005
            • 38

            #6
            No it is not working.
            If you look at the old mysql userparameters, everything with
            parantes [] are not working!

            -peter

            Comment

            • pdwalker
              Senior Member
              • Dec 2005
              • 166

              #7
              Format for user parms previous to 1.1b4
              UserParameter=mysql[ping],mysqladmin -uroot ping|grep alive|wc -l

              Format for user parms in 1.1b4
              UserParameter=mysql.ping,mysqladmin -uroot ping|grep alive|wc -l

              Update your configuration files with the new format and test again.

              - Paul
              Last edited by pdwalker; 13-12-2005, 22:44. Reason: added color

              Comment

              • fips
                Member
                • Sep 2005
                • 38

                #8
                This is the point why there have changed the format from:
                UserParameter=mysql[ping],mysqladmin -uroot ping|grep alive|wc -l
                to:
                UserParameter=mysql.ping,mysqladmin -uroot ping|grep alive|wc -l

                No more [] thats why it is working again!

                -peter

                Comment

                • gatisa
                  Junior Member
                  • Oct 2005
                  • 10

                  #9
                  still cant get custom UserParameters to work..

                  as it worked with beta2:
                  UserParameter=custom_param[*],/home/zabbix/bin/script $1
                  defined as item: custom_param[path_to_filename]

                  how it should look like in beta4?
                  like that? :
                  UserParameter=custom_param.*,/home/zabbix/bin/script $1
                  defined as item: custom_param.path_to_filename

                  Comment

                  • fips
                    Member
                    • Sep 2005
                    • 38

                    #10
                    fund it



                    as it worked with beta2:
                    UserParameter=custom_param[*],/home/zabbix/bin/script $1
                    defined as item: custom_param[path_to_filename]

                    should look like this in beta4:
                    UserParameter=custom_param[],/home/zabbix/bin/script $1
                    defined as item: custom_param[path_to_filename]

                    -peter

                    P.S. the explanation in the doc and readme from beta3 ar not right!

                    Comment

                    Working...