nostr:npub1ej68dzernetvgqh3gpk006eh509jnmyzptwqcsr7y772vtf3j2dqpxpvaa Good catch. The alarming size, that is.
nostr:npub1cmgqvz7xr07euwkum3mjghjqcu4d3k2fcyf6g4uwwe5ggnd6fetq0wrzd2 I love that. I also like your comments, mine are like "I know this function looks weird but LEAVE IT ALONE"
So proud of my disk size monitoring script, so I'm just going to share it here as-is:
#!/bin/bash
# diskspace.sh
# Set up the mountpoint
MOUNTPOINT="/mnt/somethingsomething"
# Get disk usage and total
DISK_USAGE=$(df -hk | grep "$MOUNTPOINT" | awk '{print $3}')
DISK_TOTAL=$(df -hk | grep "$MOUNTPOINT" | awk '{print $2}')
# Convert from block sizes to GB
DISK_USAGE_GB=$((DISK_USAGE / 1024 / 1024))
DISK_TOTAL_GB=$((DISK_TOTAL / 1024 / 1024))
# How much is allowed to be left
DISK_GB_LIMIT="8"
# How much is left
DISK_GB_LEFT=$((DISK_TOTAL_GB - DISK_USAGE_GB))
if [ "$DISK_GB_LEFT" -lt "$DISK_GB_LIMIT" ]; then
echo "Less than ${DISK_GB_LIMIT} GB left! Only ${DISK_GB_LEFT} GB left!"
else
echo "There is still ${DISK_GB_LEFT} of ${DISK_TOTAL_GB} GB left. No need to be alarmed as the alarming limit is ${DISK_GB_LIMIT} GB."
# Your heartbeat curl here:
curl https://example.com/endpoint;
fi
Set up a cronjob:
# Disk size heartbeat
*/3 * * * * bash /path/to/diskspace.sh >/dev/null 2>&1
#MastoAdmin #Bash #Scripts #Linux #Server #Code
nostr:npub1cmgqvz7xr07euwkum3mjghjqcu4d3k2fcyf6g4uwwe5ggnd6fetq0wrzd2 the alarming limit
nostr:npub1ej68dzernetvgqh3gpk006eh509jnmyzptwqcsr7y772vtf3j2dqpxpvaa I'm doing this solo for the time being and enjoying it. The experience helps, been doing this for couple of decades and over 10 years professionally.
nostr:npub1cmgqvz7xr07euwkum3mjghjqcu4d3k2fcyf6g4uwwe5ggnd6fetq0wrzd2 I thought about responding with my year count but I think I'll just go over here and sip this geritol
nostr:npub1ej68dzernetvgqh3gpk006eh509jnmyzptwqcsr7y772vtf3j2dqpxpvaa Yeah, I guess it kinda depends on the person. It's a responsibility, not necessarily a burden if you do it right. Yet I'm hesitant to grow my server very big usercount-wise for these reasons.
nostr:npub1cmgqvz7xr07euwkum3mjghjqcu4d3k2fcyf6g4uwwe5ggnd6fetq0wrzd2 I suspect as a woman I have encountered some challenges as a sysop that men usually don't. Those I'm afraid are a constant burden.
The work, as you note, doesn't have to be if you have a good group and a good plan.
nostr:npub1cmgqvz7xr07euwkum3mjghjqcu4d3k2fcyf6g4uwwe5ggnd6fetq0wrzd2 People who have never been sysops do not understand what an awful slog it is.
To have the technical skills to keep your shit running AND the people skills to deal with the inevitable assholes AND the patience to deal with the well-meaning but clueless people
ARGH
#AfricanAmericans #genealogy #slavery #BlackHistory #AmericanHistory
'American Ancestors® and Collaborators Announce the Launch of "10 Million Names," a Project to Honor the Family Histories of African Americans Whose Ancestors Lived Under Slavery, with a Permanent, Free, Publicly Accessible Database at 10MillionNames.org.'
nostr:npub10fmsw3ukhmqnnsjmalfekl6j4cucxvfl50he9dmqcna36a99nf6s8zx0qg I'll give you some of my "so and so mentioned you in their academic paper" spam for some of your plaque spam (just for a fucking change of pace)