Skip to content

Instantly share code, notes, and snippets.

@kadoshita
Created September 1, 2019 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kadoshita/75755d16b4738bea9ce92d8a133827fb to your computer and use it in GitHub Desktop.
Save kadoshita/75755d16b4738bea9ce92d8a133827fb to your computer and use it in GitHub Desktop.
グローバルIPアドレスをInfluxDBに記録するスクリプト
#!/bin/bash
GIP=`curl -ss https://ifconfig.me/ip`
curl -XPOST 'http://example.com:8086/write?db=db&u=user&p=pass' --data-binary "global_ip value=\""$GIP"\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment