Giter Club home page Giter Club logo

Comments (6)

jangaraj avatar jangaraj commented on August 18, 2024

Readme says: --net=host. Sorry, if you are using custom network, then I can't help you.

from dockbix-agent-xxl.

zbence avatar zbence commented on August 18, 2024

I don't want to create new issue for this so I just post my update here:

I put the agent to the host network but still it can't resolve DNS names.
So do you know something about this?

from dockbix-agent-xxl.

jangaraj avatar jangaraj commented on August 18, 2024

No problem:

[root@dockerhost ~]# zabbix_get -s 127.0.0.1 -k web.page.get[www.zabbix.com,index.php,80]
zabbix_get [38383]: Get value error: cannot connect to [[127.0.0.1]:10050]: [111] Connection refused
[root@dockerhost ~]# docker run \
>   --name=dockbix-agent-xxl \
>   --net=host \
>   --privileged \
>   -v /:/rootfs \
>   -v /var/run:/var/run \
>   --restart unless-stopped \
>   -e "ZA_Server=<ZABBIX SERVER IP/DNS NAME>" \
>   -e "ZA_ServerActive=<ZABBIX SERVER IP/DNS NAME>" \
>   -d monitoringartist/dockbix-agent-xxl-limited:latest
d606684abd52051fc34c3126572eba31bf95551eac6aac0b5e294682505b5f3b
[root@dockerhost ~]# zabbix_get -s 127.0.0.1 -k web.page.get[www.zabbix.com,index.php,80]                                                                               HTTP/1.1 301 Moved Permanently
Date: Thu, 02 Mar 2017 21:02:38 GMT
Server: Apache/2.4.10 (Debian)
Location: http://www.zabbix.com/index
Content-Length: 315
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://www.zabbix.com/index">here</a>.</p>
<hr>
<address>Apache/2.4.10 (Debian) Server at www.zabbix.com Port 80</address>
</body></html>

Increase debuglevel and provide logs please https://github.com/monitoringartist/dockbix-agent-xxl#support

from dockbix-agent-xxl.

zbence avatar zbence commented on August 18, 2024

I didn't try to use web.page.get key because of this:
11:20170303:081027.294 Requested [web.page.get[www.zabbix.com,index.php,80]] 11:20170303:081027.294 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]

But with the net.tcp.service shows the same:
12:20170303:081145.801 Requested [net.tcp.service[http,www.zabbix.com/index.php,80]] 12:20170303:081145.801 TCP expect network error: cannot resolve [www.zabbix.com/index.php] 12:20170303:081145.801 Sending back [0]

from dockbix-agent-xxl.

jangaraj avatar jangaraj commented on August 18, 2024

Increase debuglevel and provide logs please https://github.com/monitoringartist/dockbix-agent-xxl#support

from dockbix-agent-xxl.

zbence avatar zbence commented on August 18, 2024

Ok after I started the container like you pasted here it works.
I was on an older version of agent which was: monitoringartist/zabbix-agent-xxl-limited:latest

from dockbix-agent-xxl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.