Ad Widget

Collapse

Zabbix Agent (Windows) is not showing data in Zabbix Server (Linux)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • baxtmann
    Junior Member
    • Apr 2020
    • 3

    #1

    Zabbix Agent (Windows) is not showing data in Zabbix Server (Linux)

    Hi! Long time Zabbix user, first time setting up Zabbix! My work has used Zabbix for years, but now I'm setting up Zabbix on my homelab, and its my first time having to actually configure anything haha.

    So my issue:
    I have a Zabbix server configured at 192.168.0.23 on my lan, (OS defined hostname heimdall)
    and I have installed Zabbix agent on a windows 10 pc at 192.168.0.17. (OS defined hostname win10plex)

    I am running the Zabbix agent and the logs show nothing except for saying the service is started. For some reason, I cant get Zabbix server to register the agent and to start collecting metrics. The only lines i have edited in Zabbix agent config are:

    Code:
    =================BREAK================
    ### Option: Server
    #    List of comma delimited IP addresses, optionally in CIDR notation, or DNS names of Zabbix servers and Zabbix proxies.
    #    Incoming connections will be accepted only from the hosts listed here.
    #    If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally and '::/0' will allow any IPv4 or IPv6 address.
    #    '0.0.0.0/0' can be used to allow any IPv4 address.
    #    Example: Server=127.0.0.1,192.168.1.0/24,::1,2001:db8::/32,zabbix.domain
    #
    # Mandatory: yes, if StartAgents is not explicitly set to 0
    # Default:
    # Server=
    
    Server=192.168.0.23
    =================BREAK================
    ### Option: ServerActive
    #    List of comma delimited IP:port (or DNS name:port) pairs of Zabbix servers and Zabbix proxies for active checks.
    #    If port is not specified, default port is used.
    #    IPv6 addresses must be enclosed in square brackets if port for that host is specified.
    #    If port is not specified, square brackets for IPv6 addresses are optional.
    #    If this parameter is not specified, active checks are disabled.
    #    Example: ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]
    #
    # Mandatory: no
    # Default:
    # ServerActive=
    
    ServerActive=192.168.0.23
    =================BREAK================
    ### Option: Hostname
    #    Unique, case sensitive hostname.
    #    Required for active checks and must match hostname as configured on the server.
    #    Value is acquired from HostnameItem if undefined.
    #
    # Mandatory: no
    # Default:
    # Hostname=
    
    Hostname=win10plex
    other than those 3 things, I have not changed anything else in the windows agents config file.

    And on Zabbix, I am trying to add the host manually:

    Click image for larger version

Name:	oopsie doopsie zabbix.png
Views:	1834
Size:	49.1 KB
ID:	399505

    It is enabled, but does not seems to be reporting anything to zabbix

    If I had to guess I made some noobie mistake, if you tell me what that is that would be great!

    Thanks in advance!

    P.S Happy Friday
  • baxtmann
    Junior Member
    • Apr 2020
    • 3

    #2
    UPDATE:

    After looking around further, i am now able to get the data into zabbix, but the graphs are not working fully. I can only view data when i enter now/d in the to field, and when i do that it puts teh graph on a 6 hour timescale. whenever i chose a time less than or greater than 6h and dont do the now/d, nothing shows on the graph. Since I am sending data from zabbix to grafana, i have to do the same on grafana to see any data - why is this happening???

    Zabbix working with now/d

    Click image for larger version

Name:	zabbix working.png
Views:	1706
Size:	83.4 KB
ID:	399518

    without now/d: regardless of timescale, graph shows nothing:
    Click image for larger version

Name:	zabbix not working.png
Views:	1636
Size:	68.2 KB
ID:	399519

    Any idea why this is occurring? Is this a "feature" or a misconfiguration on my part?

    Thanks for your help!

    Comment

    Working...