Ad Widget

Collapse

Zabbix_sender over proxy

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • niumar
    Junior Member
    • Sep 2009
    • 25

    #1

    Zabbix_sender over proxy

    Hi!

    How can I do to send data to the zabbix server from a host that is monitored by a proxy.
    I need constantly update manually the item status off a host that is under a proxy.

    $ zabbix_sender -z "x.x.x.x" -s "host_name" -k "status" -o "0"

    This command, from a other server, don't work. It returns:

    "Info from server: "Processed 0 Failed 1 Total 1 Seconds spent 0.000033"
    sent: 1; skipped: 0; total: 1"

    I am using zabbix 1.8.1.

    Thanks!
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    are you specifying proxy ip to the "-z" flag ? i just tried that, and it works
    Zabbix 3.0 Network Monitoring book

    Comment

    • botaniq
      Junior Member
      • Mar 2011
      • 3

      #3
      Originally posted by richlv
      are you specifying proxy ip to the "-z" flag ? i just tried that, and it works
      Can you give an example how to specify a proxy.
      My proxy is 192.168.2.4 and port 3128.

      Comment

      • malyvelky
        Junior Member
        • Aug 2012
        • 2

        #4
        Originally posted by botaniq
        Can you give an example how to specify a proxy.
        My proxy is 192.168.2.4 and port 3128.
        I guess he ment this:

        $ zabbix_sender -z 192.168.2.4 -s "host_name" -k "status" -o "0"

        Comment

        • mbsit
          Senior Member
          • Sep 2012
          • 130

          #5
          Code:
          $ zabbix_sender -z 192.168.2.4 -s "host_name" -k "status" -o "0"
          Do not forget about port :P
          $ zabbix_sender -z 192.168.2.4 -p 3128 -s "host_name" -k "status" -o "0"
          Pozdrawiam
          Grzegorz Grabowski
          ____
          Wdrożenia, szkolenia, umowy serwisowe
          Warszawa - Polska

          Comment

          • richlv
            Senior Member
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Oct 2005
            • 3112

            #6
            Originally posted by mbsit
            Do not forget about port :P
            $ zabbix_sender -z 192.168.2.4 -p 3128 -s "host_name" -k "status" -o "0"
            that port is the default squid port, so probably not what's needed
            Zabbix 3.0 Network Monitoring book

            Comment

            • mbsit
              Senior Member
              • Sep 2012
              • 130

              #7
              What?
              zabbix_sender sends data by default "SQUID PROXY PORT"?

              -p, --port <port>
              Specify port number of server trapper running on the server. Default is 10051.
              What are talking about?
              Pozdrawiam
              Grzegorz Grabowski
              ____
              Wdrożenia, szkolenia, umowy serwisowe
              Warszawa - Polska

              Comment

              • mbsit
                Senior Member
                • Sep 2012
                • 130

                #8
                richlv: and ones again. You want to send data to zabbix server through the http proxy?
                It is possible? and what for?
                Now, I'm don't understand what was the niumar question....
                Pozdrawiam
                Grzegorz Grabowski
                ____
                Wdrożenia, szkolenia, umowy serwisowe
                Warszawa - Polska

                Comment

                • richlv
                  Senior Member
                  Zabbix Certified Trainer
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • Oct 2005
                  • 3112

                  #9
                  Originally posted by mbsit
                  What?
                  zabbix_sender sends data by default "SQUID PROXY PORT"?
                  no. somebody probably confused zabbix proxy for an http proxy
                  Zabbix 3.0 Network Monitoring book

                  Comment

                  Working...