Skip to content

Instantly share code, notes, and snippets.

@brovador
Created May 27, 2018 08:56
Show Gist options
  • Save brovador/5b27f29df8c8c3d2e89699430834c330 to your computer and use it in GitHub Desktop.
Save brovador/5b27f29df8c8c3d2e89699430834c330 to your computer and use it in GitHub Desktop.
bitbar plugin to check pihole url every 10 minutes
#!/bin/bash
PIHOLE_IP=192.168.1.1
ping -c 1 -W 0.1 $PIHOLE_IP > /dev/null
if [ $? = 0 ]
then
echo ◉
else
echo ◎
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment