Aller au contenu

RF-Atomik

Membres
  • Compteur de contenus

    9
  • Inscription

  • Dernière visite

Tout ce qui a été posté par RF-Atomik

  1. Est-il possible d'afficher les derniers fichiers upload sur son NAS dans grafana ?
  2. @.Shad.j'ai suivi tes conseils tout fonctionne parfaitement. J'ai même accès à Grafana alors qu'avant c'était impossible. Je n'ai en revanche pas compris pourquoi ça ne fonctionne pas en suivant le réseau monitoring du tuto. Merci de ton aide.
  3. Résultat pour docker network inspect monitoring [ { "Name": "monitoring", "Id": "3f8a04071a839fd5eea641db1d339cfec24a784a11725384708f8baa6fe0f2f0", "Created": "2021-01-13T12:32:38.986747132+01:00", "Scope": "local", "Driver": "bridge", "EnableIPv6": false, "IPAM": { "Driver": "default", "Options": {}, "Config": [ { "Subnet": "172.19.0.0/24", "IPRange": "172.19.0.0/28", "Gateway": "172.19.0.1" } ] }, "Internal": false, "Attachable": false, "Ingress": false, "ConfigFrom": { "Network": "" }, "ConfigOnly": false, "Containers": { "1375a69a222913ecc16e335f386641ca9d3de3a23820ad3624a41f8ea6ddf5a0": { "Name": "grafana", "EndpointID": "a3b0c7fd7b0c30fa248a7fafd4e33a7b3882a434e424b4ff9b7b55d7f3510dc8", "MacAddress": "02:42:ac:13:00:04", "IPv4Address": "172.19.0.4/24", "IPv6Address": "" }, "bf0d6246f56e2012cc73556d2c5702fbe9c9e078113f967818f1228e6981beab": { "Name": "influxdb", "EndpointID": "01c0885a9229758da950f69ac066f53b28841472eddb4d6cb64b45c731220532", "MacAddress": "02:42:ac:13:00:02", "IPv4Address": "172.19.0.2/24", "IPv6Address": "" }, "ec3e029b553d3c54f260e1d3976bde6afc429ab9d407802efa1850715e6746f1": { "Name": "telegraf", "EndpointID": "70457ac1014939baad24e817279e6871b0487626afb41c0b161e88432320c20e", "MacAddress": "02:42:ac:13:00:03", "IPv4Address": "172.19.0.3/24", "IPv6Address": "" } }, "Options": { "com.docker.network.bridge.name": "br_monitoring" }, "Labels": {} } ] Résultat pour docker container inspect telegraf [ { "Id": "ec3e029b553d3c54f260e1d3976bde6afc429ab9d407802efa1850715e6746f1", "Created": "2021-01-14T09:56:15.339930137Z", "Path": "/entrypoint.sh", "Args": [ "telegraf" ], "State": { "Status": "running", "Running": true, "Paused": false, "Restarting": false, "OOMKilled": false, "Dead": false, "Pid": 3137, "ExitCode": 0, "Error": "", "StartedAt": "2021-01-14T09:56:17.669937289Z", "FinishedAt": "0001-01-01T00:00:00Z", "StartedTs": 1610618177, "FinishedTs": -62135596800 }, "Image": "sha256:5023e522cf08de862c6f752ad28247e2d080c5a585eeeec5fb8f44d91f49ac53", "ResolvConfPath": "/volume1/@docker/containers/ec3e029b553d3c54f260e1d3976bde6afc429ab9d407802efa1850715e6746f1/resolv.conf", "HostnamePath": "/volume1/@docker/containers/ec3e029b553d3c54f260e1d3976bde6afc429ab9d407802efa1850715e6746f1/hostname", "HostsPath": "/volume1/@docker/containers/ec3e029b553d3c54f260e1d3976bde6afc429ab9d407802efa1850715e6746f1/hosts", "LogPath": "/volume1/@docker/containers/ec3e029b553d3c54f260e1d3976bde6afc429ab9d407802efa1850715e6746f1/log.db", "Name": "/telegraf", "RestartCount": 0, "Driver": "btrfs", "Platform": "linux", "MountLabel": "", "ProcessLabel": "", "AppArmorProfile": "docker-default", "ExecIDs": null, "HostConfig": { "Binds": [ "/usr/share/snmp/mibs:/usr/share/snmp/mibs:ro", "/volume1/docker/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro" ], "ContainerIDFile": "", "LogConfig": { "Type": "db", "Config": {} }, "NetworkMode": "monitoring", "PortBindings": { "8092/udp": [ { "HostIp": "", "HostPort": "8092" } ], "8094/tcp": [ { "HostIp": "", "HostPort": "8094" } ], "8125/tcp": [ { "HostIp": "", "HostPort": "8125" } ] }, "RestartPolicy": { "Name": "unless-stopped", "MaximumRetryCount": 0 }, "AutoRemove": false, "VolumeDriver": "", "VolumesFrom": [], "CapAdd": null, "CapDrop": null, "Dns": null, "DnsOptions": null, "DnsSearch": null, "ExtraHosts": null, "GroupAdd": null, "IpcMode": "shareable", "Cgroup": "", "Links": null, "OomScoreAdj": 0, "PidMode": "", "Privileged": false, "PublishAllPorts": false, "ReadonlyRootfs": false, "SecurityOpt": null, "UTSMode": "", "UsernsMode": "", "ShmSize": 67108864, "Runtime": "runc", "Env": [ "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "TELEGRAF_VERSION=1.17.0" ], "ConsoleSize": [ 0, 0 ], "Isolation": "", "CpuShares": 0, "Memory": 0, "NanoCpus": 0, "CgroupParent": "", "BlkioWeight": 0, "BlkioWeightDevice": null, "BlkioDeviceReadBps": null, "BlkioDeviceWriteBps": null, "BlkioDeviceReadIOps": null, "BlkioDeviceWriteIOps": null, "CpuPeriod": 0, "CpuQuota": 0, "CpuRealtimePeriod": 0, "CpuRealtimeRuntime": 0, "CpusetCpus": "", "CpusetMems": "", "Devices": null, "DeviceCgroupRules": null, "DiskQuota": 0, "KernelMemory": 0, "MemoryReservation": 0, "MemorySwap": 0, "MemorySwappiness": null, "OomKillDisable": false, "PidsLimit": 0, "Ulimits": null, "CpuCount": 0, "CpuPercent": 0, "IOMaximumIOps": 0, "IOMaximumBandwidth": 0, "MaskedPaths": [ "/proc/asound", "/proc/acpi", "/proc/kcore", "/proc/keys", "/proc/latency_stats", "/proc/timer_list", "/proc/timer_stats", "/proc/sched_debug", "/proc/scsi", "/sys/firmware" ], "ReadonlyPaths": [ "/proc/bus", "/proc/fs", "/proc/irq", "/proc/sys", "/proc/sysrq-trigger" ] }, "GraphDriver": { "Data": null, "Name": "btrfs" }, "Mounts": [ { "Type": "bind", "Source": "/usr/share/snmp/mibs", "Destination": "/usr/share/snmp/mibs", "Mode": "ro", "RW": false, "Propagation": "rprivate" }, { "Type": "bind", "Source": "/volume1/docker/telegraf/telegraf.conf", "Destination": "/etc/telegraf/telegraf.conf", "Mode": "ro", "RW": false, "Propagation": "rprivate" } ], "Config": { "Hostname": "ec3e029b553d", "Domainname": "", "User": "", "AttachStdin": false, "AttachStdout": false, "AttachStderr": false, "ExposedPorts": { "8092/udp": {}, "8094/tcp": {}, "8125/tcp": {}, "8125/udp": {} }, "Tty": false, "OpenStdin": false, "StdinOnce": false, "Env": [ "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "TELEGRAF_VERSION=1.17.0" ], "Cmd": [ "telegraf" ], "Image": "telegraf", "Volumes": { "/etc/telegraf/telegraf.conf": {}, "/usr/share/snmp/mibs": {} }, "WorkingDir": "", "Entrypoint": [ "/entrypoint.sh" ], "OnBuild": null, "Labels": { "com.docker.compose.config-hash": "067bc01df30d3929799cf30bb03c0abc9f6f24891692d4d47fb1d014fcac0858", "com.docker.compose.container-number": "1", "com.docker.compose.oneoff": "False", "com.docker.compose.project": "telegraf", "com.docker.compose.service": "telegraf", "com.docker.compose.version": "1.24.0" }, "DDSM": false }, "NetworkSettings": { "Bridge": "", "SandboxID": "35a6ecfdb26fdae5cdbdf26c46ae91e4f9f5dd46ddd92e942b3017e4ce6f76ac", "HairpinMode": false, "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "Ports": { "8092/udp": [ { "HostIp": "0.0.0.0", "HostPort": "8092" } ], "8094/tcp": [ { "HostIp": "0.0.0.0", "HostPort": "8094" } ], "8125/tcp": [ { "HostIp": "0.0.0.0", "HostPort": "8125" } ], "8125/udp": null }, "SandboxKey": "/var/run/docker/netns/35a6ecfdb26f", "SecondaryIPAddresses": null, "SecondaryIPv6Addresses": null, "EndpointID": "", "Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "MacAddress": "", "Networks": { "monitoring": { "IPAMConfig": null, "Links": null, "Aliases": [ "telegraf", "ec3e029b553d" ], "NetworkID": "3f8a04071a839fd5eea641db1d339cfec24a784a11725384708f8baa6fe0f2f0", "EndpointID": "70457ac1014939baad24e817279e6871b0487626afb41c0b161e88432320c20e", "Gateway": "172.19.0.1", "IPAddress": "172.19.0.3", "IPPrefixLen": 24, "IPv6Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "MacAddress": "02:42:ac:13:00:03", "DriverOpts": null } } } } ]
  4. @.Shad.Oui il a une adresse en 10.0.10.x et pas le PC sur lequel je fais la connection ssh
  5. @.Shad. le ping n'est pas fonctionnel. 0 paquet reçu. PS : Mon NAS est situé dans un sous réseau par rapport au PC que j'utilise pour faire la connection SSH.
  6. @.Shad. Non je n'ai pas modifié le nom de la communauté, c'est toujours "public".
  7. @.Shad. J'ai modifié dans telegraf.conf l'agent avec l'adresse de ma passerelle qui est 172.19.0.1 mais j'ai toujours le même souci au niveau des logs de telegraf : 2021-01-14T10:05:00Z W! [inputs.snmp] Collection took longer than expected; not complete after interval of 1m0s 2021-01-14T10:05:01Z E! [inputs.snmp] Error in plugin: agent 172.19.0.1: gathering table hrStorageTable: performing bulk walk for field hrStorageDescr: Request timeout (after 3 retries) J'ai bien autorisé la plage d'IP 172.16.0.0/255.240.0.0 dans le pare-feu du NAS.
  8. @.Shad. Oui c'est l'IP du NAS hôte.
  9. Bonjour, j'ai suivi le tuto pour mon NAS. J'ai réussi à faire l'installe de influxdb sans souci. Je suis ensuite passé à l'installe de telegraf sauf que dans mes logs de telegraf il y a des soucis : 2021-01-14T08:33:00Z W! [inputs.snmp] Collection took longer than expected; not complete after interval of 1m0s 2021-01-14T08:33:20Z E! [inputs.snmp] Error in plugin: agent 10.0.10.41: performing get on field sysName: Request timeout (after 3 retries) 2021-01-14T08:34:00Z W! [inputs.snmp] Collection took longer than expected; not complete after interval of 1m0s 2021-01-14T08:34:40Z E! [inputs.snmp] Error in plugin: agent 10.0.10.41: gathering table ifTable: performing bulk walk for field ifDescr: Request timeout (after 3 retries) 2021-01-14T08:35:00Z W! [inputs.snmp] Collection took longer than expected; not complete after interval of 1m0s 2021-01-14T08:36:00Z W! [inputs.snmp] Collection took longer than expected; not complete after interval of 1m0s 2021-01-14T08:36:00Z E! [inputs.snmp] Error in plugin: agent 10.0.10.41: gathering table diskTable: performing bulk walk for field diskID: Request timeout (after 3 retries) Voici également les logs de mon Influxdb: [httpd] 172.19.0.3 - nas_telegraf [14/Jan/2021:08:28:04 +0000] "POST /write?db=nas_telegraf HTTP/1.1" 204 0 "-" "Telegraf/1.17.0 Go/1.15.5" 6bd49946-5642-11eb-800f-0242ac130002 106650 Par la suite j'ai installé Grafana comme le tuto le montre, mais je n'arrive pas à accéder à http://X.X.X.X:3000 Si vous avez des idées afin que je règle mes problèmes.Merci.
×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.