Ad Widget

Collapse

Zabbix with ssh tunneling

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • radi
    Junior Member
    • Oct 2006
    • 3

    #1

    Zabbix with ssh tunneling

    Hi @ all

    How can i connect zabbix server with remote hosts?

    OS: Linux Suse 9.2

    thx a lot


    ------
    radi
  • mbjoerling
    Member
    • May 2006
    • 52

    #2
    Hi.

    Do you mean make a SSH tunnel to another server and then connect through that to the Zabbix server?

    Comment

    • radi
      Junior Member
      • Oct 2006
      • 3

      #3
      >Do you mean make a SSH tunnel to another server and then connect through that to the Zabbix server?

      Yes, I need a script, so that i can monitoring some remote hosts!

      example
      ---------

      10.2.x.x (Zabbix Server) --> remote with ssh to 156.x.x.1 (Zabbix Agent is installed)

      10.2.x.x (Zabbix Server) --> remote with ssh to 156.x.x.2 (Zabbix Agent is installed)

      10.2.x.x (Zabbix Server) --> remote with ssh to 156.x.x.3 (Zabbix Agent is installed)

      Comment

      • mbjoerling
        Member
        • May 2006
        • 52

        #4
        Make some underlying tunnels on the server with OpenSSH and then tell the server to connect to localhost:localboundclientport. That should do the trick.

        Comment

        • den_crane
          Senior Member
          • Feb 2006
          • 272

          #5
          Originally posted by mbjoerling
          Make some underlying tunnels on the server with OpenSSH and then tell the server to connect to localhost:localboundclientport. That should do the trick.
          I think iptables allow create rule forward remoteserver_port -> localhost_tunelport.

          Comment

          • radi
            Junior Member
            • Oct 2006
            • 3

            #6
            Can someone make a example for this network configuration...

            Configuration now:
            --------------------
            SERVER
            IP: 10.2.x.x
            USER: zabbix
            zabbix_server.conf:
            - ListenPort: 10051

            CLIENTS
            IP: 156.x.x.1
            IP: 156.x.x.2
            IP: 156.x.x.3
            USER: zabbix
            zabbix_agentd.conf
            - ServerPort: 10051
            - Hostname: localhost
            - ListenPort: 10050


            My example (doesn't work):
            ssh -l zabbix -fN -L 10050:156.x.x.1:10050 -L 10051:156.x.x.1:10051 156.x.x.1


            And how can I add this remoteclient in "Webinterface: zabbix --> configuration --> hosts"?

            thx for your helps!

            -----------
            radi

            Comment

            Working...