Ad Widget

Collapse

Zabbix (1.6.1) over OpenVPN ...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sybex
    Junior Member
    Zabbix Certified Specialist
    • Aug 2008
    • 29

    #1

    Zabbix (1.6.1) over OpenVPN ...

    Hi, ...

    Server:
    Name: ZabbixS
    IP: 192.168.0.10(eth0) / 10.200.0.1(eth0:0)
    VPNIP: 10.150.0.6 (DHCP)
    SetFix-VPNIP: 10.200.0.1

    Client:
    Name: ZabbixC
    IP: 192.168.100.10
    Conn. on the VPN-Gateway (10.150.0.1)
    Zabbix_hostname: ZabbixS
    hosts: 10.200.0.1 ZabbixS

    Server:
    ping ZabbixC -> OK
    ping 192.168.100.10 -> OK
    zabbix_get -sZabbixC -I10.200.0.1 -p10050 -k"system.cpu.load[all,avg1]" -> OK
    zabbix_get -sZabbixC -IZabbixS -p10050 -k"system.cpu.load[all,avg1]" -> Not OK (empty_string on ZabbixS)

    Client:
    ping ZabbixC -> OK
    ping 10.200.0.1 -> OK
    ping 10.150.0.1 -> OK
    ping 10.150.0.6 -> OK

    If I try the VPNIP as hostname in Client it works, but this IP is dynamic. So I forced a Fixed EndpointIP (10.200.0.1) for the Server. The result is on the ZabbixS -> got empty String.

    Why is it ok from the IP 10.200.0.1 but not from the DNS name?

    Have anybody a idea?
    Last edited by sybex; 25-11-2008, 16:23.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    It seems that you are connecting from two different IP addresses, one is accepted by the agent, the other one is not. Make sure that all IP addresses are in zabbix_agentd.conf:

    Server=IP1,IP2,IP3
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • sybex
      Junior Member
      Zabbix Certified Specialist
      • Aug 2008
      • 29

      #3
      Hi Alexei,

      thx for reply ...

      is it possible to make a wildcard in the accepting list?
      like IP=10.150.*.*,10.200.0.1

      the problem with the second ip address are that it is dynamic. It works for weeks, but if the network is restarting i become another IP and i have to fix that manually on my zabbix clients at the end of the tunnel.

      I can't chance that because it is not my network. I know this is a difficult story.

      Comment

      Working...