Ad Widget

Collapse

Zbx_notsupported

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jojo
    Member
    • Jul 2006
    • 57

    #1

    Zbx_notsupported

    I've been trying to monitor some commands on my FC3 test machine.

    On the zabbix server side, it returns that the command is not supported.

    This is what things look like on the client end:

    UserParameter=host.item111,item111.sh

    ./zabbix_agentd -v
    ZABBIX Agent (daemon) v1.1.1 (19 July 2006)
    Compilation time: Aug 19 2006 17:09:34


    ./zabbix_agentd -t host.item111
    host.item111 [t|26]


    [root@test bin]# item111.sh
    26

    So as far as i know it's getting data. but in the agent logs, it reads:

    007504:20061009:193418 In check_security()
    007504:20061009:193418 Connection from [192.168.1.11]. Allowed servers [zabbix]
    007504:20061009:193418 Before read()
    007504:20061009:193418 After read() 2 [19]
    007504:20061009:193418 Got line:host.item111
    007504:20061009:193418 Run remote command [item111.sh] Result [0] []
    007504:20061009:193418 Sending back:ZBX_NOTSUPPORTED
    007506:20061009:193500 Sleeping for 60 seconds


    what would cause this?
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Originally posted by jojo
    what would cause this?
    Specify full path to the script.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • jojo
      Member
      • Jul 2006
      • 57

      #3
      i knew i forgot something...

      the script is located in /opt/zabbix/scripts and i've already done a export PATH=$PATH:/opt/zabbix/scripts

      Comment

      • jojo
        Member
        • Jul 2006
        • 57

        #4
        i ended up moving the scripts to /usr/bin

        and also double checked the permissions which were 775 zabbix:zabbix on the script

        and it seems to be picking it up now. but it keeps returning a 0.

        HTML Code:
        010640:20061010:013140 Before read()
        010640:20061010:013140 After read() 2 [22]
        010640:20061010:013140 Got line:host.item111
        010640:20061010:013140 Run remote command [/usr/bin/item111.sh] Result [2] [0
        ]
        010640:20061010:013140 Sending back:0
        but when i run the ./zabbix_agentd -t host.item111
        i get the correct number returned
        and if i run the script i get the correct number as well.

        Comment

        • jojo
          Member
          • Jul 2006
          • 57

          #5
          i've tried the above as the zabbix user as well.. and it all works fine.

          is there anything else i might have to look at?

          ./zabbix_agentd -t host.item111
          host.item111 [t|4]


          and what does that t stand for?
          Last edited by jojo; 10-10-2006, 11:14.

          Comment

          • jojo
            Member
            • Jul 2006
            • 57

            #6
            The fix? upgrade the agents to the ones from the 1.1.2 package.


            Alexi i dont know what you did, but i went out on a limb, upgraded the clients to the new version and everything worked! thank you!

            Comment

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

              #7
              I think this is because 1.1.2 does not check return code of executed command anymore. It returned 0 in 1.1 and 1.1.1 if return code was not zero.
              Alexei Vladishev
              Creator of Zabbix, Product manager
              New York | Tokyo | Riga
              My Twitter

              Comment

              • jojo
                Member
                • Jul 2006
                • 57

                #8
                our program that we're using to produce the data for zabbix is located in /usr/local/bin

                I remember now, i had to create a softlink for the command in /usr/bin > /usr/local/bin

                Once i did that, in addition with the 1.1.2 version of zabbix, data came flooding in.

                Comment

                Working...