Comments (6)
Readme says: --net=host
. Sorry, if you are using custom network, then I can't help you.
from dockbix-agent-xxl.
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.
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.
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.
Increase debuglevel and provide logs please https://github.com/monitoringartist/dockbix-agent-xxl#support
from dockbix-agent-xxl.
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)
- Restart not working HOT 1
- Ghost Container HOT 2
- private paid image limitations HOT 1
- Global regular expression "Exclude Docker related file systems" does not exist. HOT 4
- panic: runtime error: invalid memory address or nil pointer dereference HOT 1
- Cannot get process number in container with dockbix-agent HOT 10
- Cannot open memory.stat file and cannot get statistic HOT 2
- Can't see any data about containers HOT 2
- Dockbix agent XXL - enable TLS configuration HOT 14
- TLS support HOT 3
- Server can't get any info from agent HOT 3
- no network and filesystem metrics HOT 1
- license is not clear if it's allowed to be copied in a form of docker copy HOT 2
- Can DockBix Agent work on AWS Fargate HOT 1
- How to get custom content, such as how many times to get docker restart HOT 1
- too many levels of symbolic links
- Privileged flag not documented HOT 1
- Mounted filesystem discovery when using dockbix-agent-xxl
- Zabbix / DockAgent issue HOT 6
- Require Linux/ARM64 docker image for monitoringartist/dockbix-agent-xxl-limited. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dockbix-agent-xxl.