{"action":"created","issue":{"url":"https://api.github.com/repos/prometheus/blackbox_exporter/issues/70","repository_url":"https://api.github.com/repos/prometheus/blackbox_exporter","labels_url":"https://api.github.com/repos/prometheus/blackbox_exporter/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/blackbox_exporter/issues/70/comments","events_url":"https://api.github.com/repos/prometheus/blackbox_exporter/issues/70/events","html_url":"https://github.com/prometheus/blackbox_exporter/issues/70","id":183435661,"number":70,"title":"ICMP reports up=1 although host is down","user":{"login":"simonszu","id":700707,"avatar_url":"https://avatars.githubusercontent.com/u/700707?v=3","gravatar_id":"","url":"https://api.github.com/users/simonszu","html_url":"https://github.com/simonszu","followers_url":"https://api.github.com/users/simonszu/followers","following_url":"https://api.github.com/users/simonszu/following{/other_user}","gists_url":"https://api.github.com/users/simonszu/gists{/gist_id}","starred_url":"https://api.github.com/users/simonszu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonszu/subscriptions","organizations_url":"https://api.github.com/users/simonszu/orgs","repos_url":"https://api.github.com/users/simonszu/repos","events_url":"https://api.github.com/users/simonszu/events{/privacy}","received_events_url":"https://api.github.com/users/simonszu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-17T14:43:42Z","updated_at":"2016-10-17T14:51:49Z","closed_at":null,"body":"Hi,\r\n\r\ni have a problem that the ICMP probe reports up=1 although the host is down. \r\nThis is the snippet of my blackbox.yml:\r\n\r\n```\r\nmodules:\r\n  ping:\r\n    prober: icmp\r\n    timeout: 5s\r\n    icmp:\r\n      protocol: \"icmp\"\r\n      preferred_ip_protocol: \"ip4\"\r\n```\r\n\r\nThis is the according snippet of my prometheus.yml:\r\n```\r\n  - job_name: 'ping'\r\n    metrics_path: /probe\r\n    params: \r\n      module: [ping]\r\n    static_configs:\r\n      - targets:\r\n        - cram\r\n    relabel_configs:\r\n      # Set the target's address as the target-GET-parameter for the blackbox exporter\r\n      - source_labels: [__address__]\r\n        regex: (.*)\r\n        target_label: __param_target\r\n        replacement: ${1}\r\n      # Set the target's address as the instance name\r\n      - source_labels: [__address__]\r\n        regex: (.*)\r\n        target_label: instance\r\n        replacement: ${1}\r\n      # Set the scrape address to the blackbox exporter\r\n      - source_labels: []\r\n        regex: .*\r\n        target_label: __address__\r\n        replacement: 127.0.0.1:9115\r\n```\r\nThe `relabel_configs` are almost directly copy&pasted from the github README. \r\n\r\nSo the host `cram` did exist in the network, but is currently down, but the exporter reports it as up. \r\n\r\nThis is the output of the ping command: \r\n```\r\n$ ping cram\r\nPING cram.home.simonszu.de (192.168.1.15) 56(84) bytes of data.\r\nFrom tirn.home.simonszu.de (192.168.1.9) icmp_seq=1 Destination Host Unreachable\r\nFrom tirn.home.simonszu.de (192.168.1.9) icmp_seq=2 Destination Host Unreachable\r\nFrom tirn.home.simonszu.de (192.168.1.9) icmp_seq=3 Destination Host Unreachable\r\n^C\r\n--- cram.home.simonszu.de ping statistics ---\r\n5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4005ms\r\n```\r\nPlease note that the host `tirn` is my dedicated monitoring server, running prometheus and the blackbox exporter. \r\n\r\nSo i think this is a bug, or at least not the intended behaviour. I am no ICMP expert, but i think it has something to do with the fact that the `ping` command returns at least _something_. \r\n\r\nI am using latest prometheus and blackbox_exporter on armv7. "},"comment":{"url":"https://api.github.com/repos/prometheus/blackbox_exporter/issues/comments/254230297","html_url":"https://github.com/prometheus/blackbox_exporter/issues/70#issuecomment-254230297","issue_url":"https://api.github.com/repos/prometheus/blackbox_exporter/issues/70","id":254230297,"user":{"login":"raypettersen","id":7197374,"avatar_url":"https://avatars.githubusercontent.com/u/7197374?v=3","gravatar_id":"","url":"https://api.github.com/users/raypettersen","html_url":"https://github.com/raypettersen","followers_url":"https://api.github.com/users/raypettersen/followers","following_url":"https://api.github.com/users/raypettersen/following{/other_user}","gists_url":"https://api.github.com/users/raypettersen/gists{/gist_id}","starred_url":"https://api.github.com/users/raypettersen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raypettersen/subscriptions","organizations_url":"https://api.github.com/users/raypettersen/orgs","repos_url":"https://api.github.com/users/raypettersen/repos","events_url":"https://api.github.com/users/raypettersen/events{/privacy}","received_events_url":"https://api.github.com/users/raypettersen/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T14:51:49Z","updated_at":"2016-10-17T14:51:49Z","body":"We're also puzzled by this behavior, and the fact that we have to ping ip adresses to get correct measurements."}}
{"actor":{"display_login":"raypettersen"}}