Ad Widget

Collapse

Zabbix trapper value is not received if item is created directly on host

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pzn
    Junior Member
    • Feb 2023
    • 8

    #1

    Zabbix trapper value is not received if item is created directly on host

    Using Zabbix 6.0.13

    Steps to reproduce:
    • run a shell script which executes every 10 seconds: zabbix_sender -z 127.0.0.1 -s tryhost -k trykey -o 12345
    • create host "tryhost"
    • inside the host config, create item "tryitem" type "Zabbix trapper" key "trykey" number(unsigned)
    • wait a minute. You will notice that no data appears in "latest data"
    • I think the steps above should work, however they don't
    • delete the created item
    • create a new template "trytemplate", inside the template create item "tryitem" type "Zabbix trapper" key "trykey" number(unsigned)
    • edit the host and link it to the template "trytemplate"
    • wait a minute. Now data appears in "latest data"
    Am I doing something wrong? Should items always be inside templates? I notice this only for "Zabbix trapper" type. I'm a Zabbix newbie, sorry for any misunderstanding in reading the docs :-)

    Thanks,
    Pedro
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Originally posted by pzn
    Should items always be inside templates?
    No, items can be one-offs, they are not required to be part of a template.

    Is this happening because of the warning in the docs about about waiting 60 seconds after creating the item before sending any data? https://www.zabbix.com/documentation...mtypes/trapper

    Comment

    • pzn
      Junior Member
      • Feb 2023
      • 8

      #3
      Originally posted by tim.mooney
      Is this happening because of the warning in the docs about about waiting 60 seconds after creating the item before sending any data? https://www.zabbix.com/documentation...mtypes/trapper
      Thanks Tim, you got right to the point! I tested it again with a wait time >60s and all was OK. I missed that "60 seconds warning". Sorry for the "RTFM" miss.

      Comment

      Working...