Ad Widget

Collapse

How to Monitor Server in different network (VPN)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sonofendor
    Junior Member
    • Aug 2022
    • 5

    #1

    How to Monitor Server in different network (VPN)

    Hello everyone

    I have a Zabbix Server and Linux Server that I want to monitor. Linux Server is located in different network and VPN is required for connection to it. However infosec doesn't allow to establish VPN connection from Zabbix Server to that network. But I still can reach Zabbix Server from Linux Server through Internet.
    Click image for larger version  Name:	image.png Views:	0 Size:	19.7 KB ID:	450076
    I've learned that there are passive checks (when Zabbix Server connects to server and pulls all the metrics) and active checks (when zabbix agent on server pushes metrics to Zabbix Server). So I decided to set up active checks and did the following:
    1. Installed zabbix agent on Linux Server
    2. In zabbix_agentd.conf set ServerActive=*ip adress of my Zabbix Server*
    3. Set Hostname=*name of the host*
    4. Checked that names match identically
    5. Started zabbix agent
    6. Created host in Zabbix Web Interface with template "Linux by Zabbix agent"
    7. Created Interface for that host *ip of linux server*:10050 (zabbix demanded me to create interface)
    Now I get following error: Get value from agent failed: cannot connect to [[*ip of linux server*]:10050]: [4] Interrupted system call
    And all the items don't recieve any data

    Is my approach wrong? Or did I make some kind of mistake while setting up agent/host? How does one monitor server when it is unreacheable from Zabbix Server?

    Thank you for your answers
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Items type is ? "Zabbix agent (active)" I hope... and not just "Zabbix agent"...

    Comment

    • sonofendor
      Junior Member
      • Aug 2022
      • 5

      #3
      cyber your answer suggested me to look for a different template and yeah turned out that there is "Zabbix agent active" template which works just fine. Thanks!

      Comment

      Working...