-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
34 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.vscode | ||
docker-compose.yml | ||
config.py | ||
__pycache__ |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Config file for telepinger | ||
INFLUXDB_BUCKET="telepinger-no-bucket" | ||
INFLUXDB_ORG="telepinger" | ||
INFLUXDB_TOKEN="telepinger" | ||
INFLUXDB_URL="http://localhost:8086" | ||
NOTIFY_ALWAYS=True |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
#!/bin/sh | ||
|
||
echo "Starting telepinger..." | ||
|
||
echo "Current environment variables:" | ||
echo "==================== Starting telepinger..." | ||
|
||
echo "Current ping variables:" | ||
env | grep MINUTES_ | ||
env | grep PING_ | ||
env | grep INFLUXDB_ | ||
env | grep NOTIFY_ | ||
|
||
echo "==================== Setting up cron..." | ||
|
||
# Set up the cron job | ||
echo "*/$MINUTES_INTERVAL * * * * /usr/local/bin/python /app/telepinger.py -c $PING_PACKETS -i $PING_INTERVAL $PING_HOST > /proc/1/fd/1 2>&1" | crontab - | ||
crontab -l | ||
|
||
echo "==================== Starting cron..." | ||
|
||
# Start cron in the foreground | ||
exec cron -f |
This file contains 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