it sends emails when your shit stops working: https://tor.uptime.party | http://ixudcccpw5o56fvk.onion
Go to file
Anonymous 9f39852941 link to git repo 2017-05-09 23:10:27 +01:00
tormon link to git repo 2017-05-09 23:10:27 +01:00
README.md rogue `do` 2016-09-15 22:44:06 +01:00
db.sql send alerts 2016-09-15 21:34:59 +01:00
httpd.conf httpd and cron config 2016-09-15 22:32:34 +01:00
tormon.yml send alerts 2016-09-15 21:34:59 +01:00

README.md

pkg_add curl # if you don't have it already
mv /var/www /var/www.old # clean out OpenBSD's default guff
mkdir -p /var/www/logs /var/www/run /var/www/perl5 /var/www/tormon
chown www:www /var/www/run
install -o www -g www -m 0400 httpd.conf /etc/
echo "permit nopass root as www" >> /etc/doas.conf
curl -L https://cpanmin.us | perl - App::cpanminus
cpanm -l /var/www/perl5 FCGI Switch Template::Simple File::Slurp Email::Valid DBD::SQLite Math::Random::Secure Email::Sender::Simple Email::Simple Email::Simple::Creator Email::Sender::Transport::SMTPS YAML::Tiny LWP::UserAgent JSON::Tiny LWP::Protocol::https
install -o www -g www -m 0500 tormon/* /var/www/tormon/
cat db.sql | sqlite3 /var/www/tormon.db
chown www:www /var/www/tormon.db
chown www:www /var/www
chmod 0600 /var/www/tormon.db
install -o www -g www -m 0400 tormon.yml /var/www/
# customise the values in /var/www/tormon.yml to your liking...
echo 'echo "Starting tormon" && doas -u www /var/www/tormon/tormon.fcgi &' >> /etc/rc.local
sh /etc/rc.local # assuming tormon is the only thing in rc.local
rcctl enable httpd
rcctl start httpd
echo '0,20,40 * * * * /var/www/tormon/notify.pl' | crontab -u www -