Ad Widget

Collapse

syntax problem with system.run[] parameter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mardux
    Junior Member
    • May 2007
    • 9

    #1

    syntax problem with system.run[] parameter

    hello everybody.

    i have test the system.run[] parameter on the client to monitoring, a suse linux 2.6, and i have a problem with the synax:

    gpvm01:/usr/local/bin # ./zabbix_agentd -t system.run[ls /]
    [m|ZBX_NOTSUPPORTED]

    gpvm01:/usr/local/bin # ./zabbix_agentd -t system.run[ls]
    system.run[ls] [t|zabbix_agent
    zabbix_agentd
    zabbix_get
    zabbix_sender]

    gpvm01:/usr/local/bin # ./zabbix_agentd -t system.run[ls -l]
    ./zabbix_agentd: invalid option -- l
    ./zabbix_agentd: invalid option -- ]
    usage: ./zabbix_agentd [-vhp] [-c <file>] [-t <metric>]

    when use an option for the command, zabbix_agentd report this error:

    [m|ZBX_NOTSUPPORTED]
    or
    ./zabbix_agentd: invalid option -- l
    ./zabbix_agentd: invalid option -- ]
    usage: ./zabbix_agentd [-vhp] [-c <file>] [-t <metric>]

    it didn't understand the space.

    How can i resolve?

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

    #2
    ./zabbix_agentd -t "system.run[ls -l]"
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • mardux
      Junior Member
      • May 2007
      • 9

      #3
      thanks!

      now it works.

      another questions:

      i'm configure the system.run[] parameter with the text format data into the mysql db, but this type of field is too small for the result of the command, and a part of data is cut.

      can i modify this table and increase the dimensions of the field??
      wath is the table and the field for the parameter data?

      thanks very much

      Comment

      Working...