Ad Widget

Collapse

zabbix_sender

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nightwish
    Junior Member
    • Dec 2010
    • 25

    #1

    zabbix_sender

    Hi Gurus


    I need some direction.

    Any idea will be great.

    I am trying to use zabbix_sender whith the folloe«wing sintax:

    zabbix_sender -z "zabbix_server" -p 10051 -s linux01 -k proc.num[httpd] -o 1 -vv

    zabbix_sender [4769]: DEBUG: Answer [{
    "response":"success",
    "info":"Processed 0 Failed 1 Total 1 Seconds spent 0.000037"}]
    Info from server: "Processed 0 Failed 1 Total 1 Seconds spent 0.000037"
    sent: 1; skipped: 0; total: 1


    The result for every try is " FAILED "

    How can i get it to work ?? .. Any test/debug I can use

    Regards.
  • MrKen
    Senior Member
    • Oct 2008
    • 652

    #2
    Why do you have "zabbix_server" in double quotes? Take them away and try again. If that doesn't work, try the zabbix server's IP address.

    And, this item 'proc.num[httpd]' does exist, doesn't it?

    MrKen
    Disclaimer: All of the above is pure speculation.

    Comment

    • danrog
      Senior Member
      • Sep 2009
      • 164

      #3
      And if it does exist it has to be type trapper in order for you to use zabbix_sender. If you are trying to use the stock item then you either have to change the type or just let the agent handle getting the value.

      Comment

      • nightwish
        Junior Member
        • Dec 2010
        • 25

        #4
        Hi MrKen and danrog


        What do you meen by type trapper ?.


        I change the configuration of the item to be zabbix_trapper. but the problem persists:

        [root@zabbix rc3.d]# zabbix_sender -s 192.168.1.12 -z 192.168.1.15 -k proc.num[httpd] -o 0
        Info from server: "Processed 0 Failed 1 Total 1 Seconds spent 0.000085"
        sent: 1; skipped: 0; total: 1
        [root@zabbix rc3.d]# zabbix_sender -s 192.168.1.12 -z 192.168.1.15 -k proc.num[httpd] -o 0 -vv
        zabbix_sender [3417]: DEBUG: Answer [{
        "response":"success",
        "info":"Processed 0 Failed 1 Total 1 Seconds spent 0.000035"}]
        Info from server: "Processed 0 Failed 1 Total 1 Seconds spent 0.000035"
        sent: 1; skipped: 0; total: 1


        Yes proc.num[httpd] exist is the default apache item that cames by default.

        I attache a image of the configuration of my item.

        Any idea to go from here?

        Regards.
        Attached Files

        Comment

        • zalex_ua
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Oct 2009
          • 1286

          #5
          Originally posted by nightwish
          [root@zabbix rc3.d]# zabbix_sender -s 192.168.1.12 -z 192.168.1.15 -k proc.num[httpd] -o 0
          Info from server: "Processed 0 Failed 1 Total 1 Seconds spent 0.000085"
          sent: 1; skipped: 0; total: 1

          Any idea to go from here?
          At you screen i see just template "Template_Linux". I'm not sure that you linked this template to host "linux01" (i suppose this is hostname, configured in zabbix)

          Code:
           -s --host <hostname>     Specify host name. Host IP address and DNS name will not work
          and... why you use IP?

          Comment

          • nightwish
            Junior Member
            • Dec 2010
            • 25

            #6
            Hi Zalex_ua


            I solved the question


            Many tahnks to MrKen that point to hte right direction.

            Resuming:

            - The item as to be the type of zabbix_trapper
            - And the zabbix_sender -s option only support the name that is used by zabbix

            root@linux01:/etc/zabbix/external# ./zabbix_sender -s linux01 -z 192.168.1.15 -k proc.num[httpd] -o 1 -vv
            zabbix_sender [7004]: DEBUG: Answer [{
            "response":"success",
            "info":"Processed 1 Failed 0 Total 1 Seconds spent 0.000049"}]
            Info from server: "Processed 1 Failed 0 Total 1 Seconds spent 0.000049"
            sent: 1; skipped: 0; total: 1


            Many thanks to all

            Comment

            Working...