Ad Widget

Collapse

SourceIP can not work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • daixiang
    Junior Member
    • Jul 2018
    • 9

    #1

    SourceIP can not work

    I have 3 agent, config as below:

    Server=192.168.60.100

    This ip is a Virtual IP of server eth0.

    And in server(also one agent, the ip is 192.168.60.45), config:

    SourceIP=192.168.60.100

    Two agents connect to server as expected,but the agent on server not:

    46135:20180813:193324.314 failed to accept an incoming connection: connection from "192.168.60.45" rejected, allowed hosts: "192.168.60.100"

    This make me confused since 2 agents work.

    The 5 level debug log:

    51812:20180813:194012.559 __zbx_zbx_setproctitle() title:'collector [processing data]'
    51812:20180813:194012.559 In update_cpustats()
    51812:20180813:194012.559 End of update_cpustats()
    51812:20180813:194012.559 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
    51814:20180813:194013.177 __zbx_zbx_setproctitle() title:'listener #2 [waiting for connection]'
    51812:20180813:194013.560 __zbx_zbx_setproctitle() title:'collector [processing data]'
    51812:20180813:194013.560 In update_cpustats()
    51812:20180813:194013.560 End of update_cpustats()
    51812:20180813:194013.560 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
    51812:20180813:194014.560 __zbx_zbx_setproctitle() title:'collector [processing data]'
    51812:20180813:194014.560 In update_cpustats()
    51812:20180813:194014.560 End of update_cpustats()
    51812:20180813:194014.560 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
    51812:20180813:194015.560 __zbx_zbx_setproctitle() title:'collector [processing data]'
    51812:20180813:194015.560 In update_cpustats()
    51812:20180813:194015.561 End of update_cpustats()
    51812:20180813:194015.561 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
    51812:20180813:194016.561 __zbx_zbx_setproctitle() title:'collector [processing data]'
    51812:20180813:194016.561 In update_cpustats()
    51812:20180813:194016.561 End of update_cpustats()
    51812:20180813:194016.561 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
    51812:20180813:194017.561 __zbx_zbx_setproctitle() title:'collector [processing data]'
    51812:20180813:194017.561 In update_cpustats()
    51812:20180813:194017.561 End of update_cpustats()
    51812:20180813:194017.561 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
    51812:20180813:194018.562 __zbx_zbx_setproctitle() title:'collector [processing data]'
    51812:20180813:194018.562 In update_cpustats()
    51812:20180813:194018.562 End of update_cpustats()
    51812:20180813:194018.562 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
    51812:20180813:194019.562 __zbx_zbx_setproctitle() title:'collector [processing data]'
    51812:20180813:194019.562 In update_cpustats()
    51812:20180813:194019.562 End of update_cpustats()
    51812:20180813:194019.562 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
    51812:20180813:194020.562 __zbx_zbx_setproctitle() title:'collector [processing data]'
    51812:20180813:194020.562 In update_cpustats()
    51812:20180813:194020.562 End of update_cpustats()
    51812:20180813:194020.562 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
    51812:20180813:194021.563 __zbx_zbx_setproctitle() title:'collector [processing data]'
    51812:20180813:194021.563 In update_cpustats()
    51812:20180813:194021.563 End of update_cpustats()
    51812:20180813:194021.563 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
    51812:20180813:194022.563 __zbx_zbx_setproctitle() title:'collector [processing data]'
    51812:20180813:194022.563 In update_cpustats()
    51812:20180813:194031.567 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
    51812:20180813:194032.567 __zbx_zbx_setproctitle() title:'collector [processing data]'
    51812:20180813:194032.567 In update_cpustats()
    51812:20180813:194032.567 End of update_cpustats()
    51812:20180813:194032.567 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
    51812:20180813:194033.568 __zbx_zbx_setproctitle() title:'collector [processing data]'
    51812:20180813:194033.568 In update_cpustats()
    51812:20180813:194033.568 End of update_cpustats()
    51812:20180813:194033.568 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
    51812:20180813:194034.568 __zbx_zbx_setproctitle() title:'collector [processing data]'
    51812:20180813:194034.568 In update_cpustats()
    51812:20180813:194034.568 End of update_cpustats()
    51812:20180813:194034.568 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
    51812:20180813:194035.568 __zbx_zbx_setproctitle() title:'collector [processing data]'
    51812:20180813:194035.568 In update_cpustats()
    51812:20180813:194035.569 End of update_cpustats()
    51812:20180813:194035.569 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
    51812:20180813:194036.569 __zbx_zbx_setproctitle() title:'collector [processing data]'
    51812:20180813:194036.569 In update_cpustats()
    51812:20180813:194036.569 End of update_cpustats()
    51812:20180813:194036.569 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
    51812:20180813:194037.569 __zbx_zbx_setproctitle() title:'collector [processing data]'
    51812:20180813:194037.569 In update_cpustats()
    51812:20180813:194037.569 End of update_cpustats()
    51812:20180813:194037.569 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
    51812:20180813:194038.569 __zbx_zbx_setproctitle() title:'collector [processing data]'
    51812:20180813:194038.570 In update_cpustats()
    51812:20180813:194038.570 End of update_cpustats()
    51812:20180813:194038.570 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
    51812:20180813:194039.570 __zbx_zbx_setproctitle() title:'collector [processing data]'
    51812:20180813:194039.570 In update_cpustats()
    51812:20180813:194039.570 End of update_cpustats()
    51812:20180813:194039.570 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
    51813:20180813:194040.170 __zbx_zbx_setproctitle() title:'listener #1 [processing request]'
    51813:20180813:194040.170 failed to accept an incoming connection: connection from "192.168.60.45" rejected, allowed hosts: "192.168.60.100"
  • daixiang
    Junior Member
    • Jul 2018
    • 9

    #2
    Could someone help me?

    Comment

    • daixiang
      Junior Member
      • Jul 2018
      • 9

      #3
      I set SourceIP=192.168.60.45 in agent.conf, still failed

      Comment

      Working...