Ad Widget

Collapse

problem for using zabbix_sender

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kklee
    Junior Member
    • Jul 2020
    • 9

    #1

    problem for using zabbix_sender

    Hello,
    I need to test my zabbix trigger effective or not, I used zabbix_sender command line, but it didnt work as expected. additional info below:
    when I excuted the command "zabbix_sender -vv -c /etc/zabbix/etc/zabbix_agentd.conf -k system.cpu.util[,user] -o 11.25"
    I got this info:
    3071:20200724:020502.025 cannot process item "system.cpu.util[,user]" trap: item type "0" cannot be used with traps
    How can I use it to test my zabbix platform ? Thanks for any help!
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    zabbix_sender is intended for sending data to a type "zabbix rapper" item.


    Comment

    • kklee
      Junior Member
      • Jul 2020
      • 9

      #3
      Originally posted by Hamardaban
      zabbix_sender is intended for sending data to a type "zabbix rapper" item.

      Thank you for your quick reply. I've got this article and reviewed it. I'd like to know how should i send some values to the item for the test that the trigger works correctly or not.
      Should I need to create an item with trapper type ?

      Comment

      • Hamardaban
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2019
        • 2713

        #4
        If you want to practice writing triggers, sender is one of the easiest ways to deliver data to zabbix item. Another option-calculated item-is triggered on a schedule and you can substitute any data in the formula and / or during processing.

        Comment

        • kklee
          Junior Member
          • Jul 2020
          • 9

          #5
          Originally posted by Hamardaban
          If you want to practice writing triggers, sender is one of the easiest ways to deliver data to zabbix item. Another option-calculated item-is triggered on a schedule and you can substitute any data in the formula and / or during processing.
          Actually, I just want to confirm that if I should create a new item "system.cpu.util[,user]" with trapper type when I test trigger with zabbix_sender command?

          Comment

          • ripperSK
            Member
            • Jul 2019
            • 42

            #6
            I think you're trying to test if your data is available - and this is not correct way to do it.

            You must understand that zabbix_sender is used on the client (monitored instance) to push data to zabbix server that is listening on zabbix_trapper.

            I advise you start with zabbix_agent first and if it's not sufficient - move to zabbix_sender. In essence zabbix_sender does what zabbix_agent in active mode does (more or less ...)

            Comment

            • kklee
              Junior Member
              • Jul 2020
              • 9

              #7
              Got it! Thank both of you.

              Comment

              • dimir
                Zabbix developer
                • Apr 2011
                • 1080

                #8
                Originally posted by Hamardaban
                zabbix_sender is intended for sending data to a type "zabbix rapper" item.

                Zabbix rapper, that rocks, man! :-D

                Comment


                • Hamardaban
                  Hamardaban commented
                  Editing a comment
                  ......... :-) ........
              Working...