Graphite does two things:
- Store numeric time-series data
- Render graphs of this data on demand
What Graphite does not do is collect data for you, however there are some tools out there that know
#coding: utf-8 | |
from logging.handlers import SMTPHandler as _SMTPHandler | |
class SMTPHandler(_SMTPHandler): | |
def __init__(self, *args, **kwargs): | |
super(SMTPHandler, self).__init__(*args, **kwargs) | |
self._timeout = 15 |
# Download the file manually from here https://launchpad.net/gcc-arm-embedded | |
# Note: `curl` command doesn't work | |
# I downloaded this one: "gcc-arm-none-eabi-4_7-2013q3-20130916-mac.tar.bz2" | |
# double click it to unzip it | |
# Make a place to install it to | |
mkdir /usr/local/gcc_arm | |
# Move the unzipped stuff there. |
Graphite does two things:
What Graphite does not do is collect data for you, however there are some tools out there that know
[Unit] | |
Description=iperf3 server | |
After=syslog.target network.target auditd.service | |
[Service] | |
User=iperf | |
ExecStart=/usr/bin/iperf3 -s --logfile /var/log/iperf.log | |
[Install] | |
WantedBy=multi-user.target |
### | |
### | |
### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
### https://christitus.com/windows-tool/ | |
### https://github.com/ChrisTitusTech/winutil | |
### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
### iwr -useb https://christitus.com/win | iex | |
### | |
### |
A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."
#!/bin/bash | |
# AutoShutdown.sh (c)2022, MIT license, by Eric Kreuwels | |
# USAGE: AutoShutdown [test|echo] | |
# | |
# Shutdown TrueNas systems when idle for a defined timeout period (default 1800 seconds), | |
# Active during a configurable monitoring timeframe (default between 01:00:00 to 06:30:00). | |
# Run "AutoShutdown test" to just evaluate the idle checks | |
# Run "AutoShutdown echo" to echo to stdout instead of the log file | |
# For normal operation add a "post init script" in truenas: bash /<path>/AutoShutdown.sh& | |
# Idle is defined as: |