Skip to content

How to Utilize ICMP to ping IP Addresses? #610

Answered by deafmetal1
deafmetal1 asked this question in Q&A
Discussion options

You must be logged in to vote

I figured it out! It was a ICMP ping permissions issue. Credit Link

My solution:

  1. sudo nano /etc/sysctl.conf
  2. Add to bottom of file, save, exit:
     # For Blackbox_Exporter, allow any user the ability to use ping
     net.ipv4.ping_group_range = 0  2147483647
  1. cd internet-monitoring/prometheus
  2. nano prometheus.yml
  3. Add ICMP job to bottom of file, save, exit:
- job_name: 'ping-icmp'
    metrics_path: /probe
    scrape_interval: 5s
    params:
      module: [icmp]
    static_configs:
      - targets: ['ip address;humanname', 'additional ip address;humanname']
   relabel_configs:
      - source_labels: [__address__]
        regex: '(.*);(.*)'
        target_label: __param_target
      - sou…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@deafmetal1
Comment options

Answer selected by deafmetal1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants