Ad Widget

Collapse

script error - "Port number must be numeric"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • youngryan
    Junior Member
    • Jul 2006
    • 4

    #1

    script error - "Port number must be numeric"

    I've built a custom script collecting data, but when adding as an Item after a few mins it goes to status "Not supported" and shows error "Port number must be numeric in [bps[myswitch,Port-channel1]]". I could not find documentation for the Items error codes, so am not sure why its complaining.

    added to zabbix_agentd.conf:
    UserParameter=bps[*],/etc/zabbix/get_geman_stat.pl $1 $2

    In browser: Configuration, Items added
    Type: Simple Check
    Key: bps[myswitch,Port-channel1]
    All else defaults

    The script runs fine on the server/agent (same box):
    zabbix@myhost$ /etc/zabbix/get_geman_stat.pl myswitch Port-channel1
    764234329
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    The type must be "ZABBIX agent" or "ZABBIX agent (active)"
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • youngryan
      Junior Member
      • Jul 2006
      • 4

      #3
      Gives me the same response with ZABBIX Agent type.

      Comment

      Working...