Created
September 1, 2019 07:59
-
-
Save kadoshita/75755d16b4738bea9ce92d8a133827fb to your computer and use it in GitHub Desktop.
グローバルIPアドレスをInfluxDBに記録するスクリプト
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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