nicolargo on develop
Add a new exporter to MongoDB t… Add a new exporter to MongoDB t… Merge branch 'issue2203' into d… (compare)
nicolargo on develop
Use of a broken or weak cryptog… Use of a broken or weak cryptog… (compare)
nicolargo on develop
Update __main__.py non-executa… Merge pull request #2248 from a… (compare)
renovate[bot] on webpack-cli-5.x
I want to use it to monitor some virtual machines, however I am not sure it works except the standalone. I tried to do the client/server mode operation.
I ran glances -s on a virtual machine I want to use as server and then glances -c @serverip on client machines. After running the command on server, it returns a messages saying Glances XML-RPC server is running on 0.0.0.0:61209
Announce the Glances server on the LAN (using x.x.x.x ip address)
After running the command on the client, it doesn't say anything.
How do I know it is working. How do I get stats of results?
Tia
glance -w
on all these machines? Then to get the result, can I just call API end points to get them? Also, how can I ensure glances are running say like 24/7 on the machines. If you use influx, does it overwrite results or it just stores them at the different intervals?
[Unit]
Description=Glances
After=network.target influxd.service
[Service]
ExecStart=/usr/bin/glances --quiet --export-influxdb -t {{influxdb_intervall | default("30")}}
Restart=on-failure
RestartSec=30s
TimeoutSec=30s
[Install]
WantedBy=multi-user.target
[influxdb]
# Configuration for the --export-influxdb option
# https://influxdb.com/
host={{influxdb_server | default("localhost")}}
port=8086
user={{influxdb_username | default("root")}}
password={{influxdb_password | default("root")}}
db=glances
prefix={{ansible_hostname}}
tags=system:{{ansible_hostname}}
{
"request": {
"method": "GET",
"url": "api/datasources/proxy/2/query",
"params": {
"db": "glances",
"q": "SELECT mean(\"().cpu_percent\") FROM \"localhost.docker\" WHERE time >= now() - 15m GROUP BY time(500ms) fill(none);SELECT mean(\"().memory_usage\") FROM \"localhost.docker\" WHERE time >= now() - 15m GROUP BY time(500ms) fill(none)",
"epoch": "ms"
},
"data": null,
"precision": "ms"
},
"response": {
"results": [
{
"statement_id": 0
},
{
"statement_id": 1
}
]
}
}
2020-06-29 16:50:21,113 -- ERROR -- docker plugin - Cannot get Docker version (('Connection aborted.', FileNotFoundError(2, 'No such file or directory')))
2020-06-29 16:50:21,436 -- ERROR -- Cannot export hank.docker stats to InfluxDB (400: {"error":"unable to parse 'hank.docker ': invalid field format"}
)
2020-06-29 16:50:21,445 -- ERROR -- Cannot export hank.gpu stats to InfluxDB (400: {"error":"unable to parse 'hank.gpu ': invalid field format"}
hi every one!
I'm young student in computer sciences from Libreville(Gabon Africa). I have some class exercice where i have obligation to code(implement) a simple(mini) application monitoring using C or python but still now i can't found some tutorial to do my class exercice. Please some one can help me.
Thanks a lot.
commands
there, that will be run by glanes
thank you :) btw i have a raspberry pi with ds18b20 sensors. when i ran glances directly on the pi it was able to get the sensor's information.. however, now its running on docker and they are not visible. how can i get ds18b20 1-wire sensors ve visible in glances through a docker enviornent?
thank you :)