🌉 bridged from @muhyb@programming.dev by Tidepool
muhyb
@muhyb.programming.dev.ap.tdpl.io
It's tinnitus night tonight
files.catbox.moefiles.catbox.moe
systemd Gets Built-In System Reporting With systemd-report
Sorry if this has been posted before but couldn't found it in my searches. (It's from September 25)
The new systemd-report collects system facts and runtime metrics into unified, timestamped JSON reports for monitoring and fleet management.
systemd is getting a new reporting subsystem designed to collect both static system information and dynamic runtime metrics in one place.
Called
systemd-report, the new tool gathers data from multiple metric provider services via a generic Varlink interface and combines it into a single timestamped JSON report. The work targets system and fleet management, where administrators need a consistent view of many machines.The collected information is split into two groups. The first covers relatively static system “facts,” such as CPU architecture, hostname, kernel version, OS identification, installed RAM, CPU count, virtualization technology, TPM information, and other hardware or platform details.
The second covers changing runtime metrics like CPU and memory use, load averages, disk I/O, swap usage, system pressure, cgroup statistics, network interface states, systemd unit states, restart counters, queued jobs, and high-priority journal messages.
According to Lennart Poettering, the underlying metrics service was initially contributed by Meta with a focus on dynamic runtime information. The same interface was later extended to handle more static system facts as well, something Amutable is using for areas such as operating system deployment management.
Once gathered,
systemd-reportcompiles all of this information into a consistent snapshot representing the state of the machine at a particular point in time.The subsystem is designed for remote fleet management. Reports can be uploaded directly to an HTTPS server using PUT requests, letting organizations send system information to a central control plane. The setup includes periodic uploads via a systemd timer and reports triggered by events like system boot, reboot, or shutdown.
For security, reports can be cryptographically signed before being sent, and systemd currently provides three signing methods.
The simplest uses a software-generated asymmetric key stored locally. Systems with TPM hardware can produce a TPM quote covering platform measurements and the report data. A third option supports confidential-computing environments by generating a CPU TSM quote that ties the report to measurements of the secure virtual machine.
This makes
systemd-reportdifferent from traditional monitoring tools like Prometheus and itsnode_exporter. While both expose similar information, systemd obtains data directly from lower-level OS components instead of relying on a separate scraping model.More importantly,
systemd-reportfocuses on complete, signed, timestamped snapshots rather than independent streams of metrics. Poettering notes that the two approaches are not mutually exclusive, and the new infrastructure could eventually provide the basis for integration between them.The architecture is also intentionally extensible. Third-party projects can provide additional metrics or signing mechanisms simply by exposing the appropriate Varlink socket. These providers can be written in any programming language and only need to implement a small interface.
In other words,
systemd-reportis not just another command for displaying system information. It is shaping up as a broader reporting framework built directly into systemd, combining system facts, runtime metrics, secure signing, and remote reporting in a format suitable for managing everything from individual Linux machines to large server fleets.For additional details, see Poettering’s announcement.
linuxiac.com
Return to basics
Lost connection to the last brain cell
i.imgur.comi.imgur.com
Finally upgraded my home server
Previously I was using Samsung N150P (netbook) as my home server and it served me around 6 years. >> https://programming.dev/post/708584 Though after upgrading to Debian 13, additional 90 packages were installed just with the upgrade. I also had a little adventure with it :) >> https://programming.dev/post/708488 Anyway, this new mini PC I got is from 2016 and surprisingly it has 8GB DDR3 RAM (I'm rich now). It's generally in good condition. Even though it's Celeron N3000, this one doesn't have hyperthreading so only 2 cores. Still it's a real upgrade over Atom N450 CPU. Since last year, I was planning to get a Raspberry Pi and moving from there. However thanks to AI overlords it got so expensive I had to bail from that fantasy. I got this for 40$ and with 8GB RAM I think it was a good deal. I was already planning to change my home server to Alpine for a while but I just couldn't touch a perfectly fine system because lazy. So this time I went with Alpine and I already love how small it is. I just installed a couple monitoring tools and packages like
sudoalong withPi-holeso currently it has quite few packages. image Don't worry though, I'm planning to use that RAM, with time. :) imageThe PHP part never gets old
Antique meme but I just mixed things up
The one who laughs last, laughs loudest. And it won't be Ubislop.
To people who are using a non-systemd distro with Nvidia proprietary drivers
Hi there! I recently switched from Arch Linux after a decade and now settled on Void Linux. So far so good. However sometimes I gather minor things here and there. My current issue is, the proprietary drivers of Nvidia still seeking systemd for some parts and not sure how to walk around this. I cannot suspend my PC because when I wake it up I always see something about
nvidia-sleep.sh. Probably it cannot wake the GPU up properly.#!/bin/bash if [ ! -f /proc/driver/nvidia/suspend ]; then exit 0 fi RUN_DIR="/var/run/nvidia-sleep" XORG_VT_FILE="${RUN_DIR}"/Xorg.vt_number PATH="/bin:/usr/bin" RestoreVT() { # # Check if Xorg was determined to be running at the time # of suspend, and whether its VT was recorded. If so, # attempt to switch back to this VT. # if [[ -f "${XORG_VT_FILE}" ]]; then XORG_PID=$(cat "${XORG_VT_FILE}") rm "${XORG_VT_FILE}" chvt "${XORG_PID}" fi } case "$1" in is-suspend-then-hibernate-supported) # suspend-then-hibernate only works correctly if $SYSTEMD_SLEEP_ACTION # is supported, which was added in systemd 248. systemd_version=$(systemctl --version | head -n1 | cut -d' ' -f2) if [ "$systemd_version" -gt 247 ]; then exit 0 fi echo "systemd version $systemd_version is too old to support suspend-then-hibernate with NVIDIA." 2>&1 echo "Please upgrade to systemd 248 or newer." 2>&1 exit 1 ;; suspend|hibernate) mkdir -p "${RUN_DIR}" fgconsole > "${XORG_VT_FILE}" chvt 63 if [[ $? -ne 0 ]]; then exit $? fi echo "$1" > /proc/driver/nvidia/suspend RET_VAL=$? # # If suspend/hibernate entry fails, switch back to the active VT # if [[ $RET_VAL -ne 0 ]]; then RestoreVT fi exit $RET_VAL ;; resume) echo "$1" > /proc/driver/nvidia/suspend RestoreVT exit 0 ;; *) exit 1 esacI'm using Niri so no desktop environment here if that helps. My driver is nvidia580. Also using greetd (w/ tuigreet). So, what can I do here?
Linux void 6.18.38_1 pkgver: runit-2.3.1_1 Nvidia 580.159.04
Edit: Tried
nouveauand suspend works with it. However because Nvidia didn't provide firmware blobs for my card (GTX 1080) I cannot use the open drivers well. Edit 2: Tried to give power management fromacpidtoelogind, thinking it might help to fool this script since it's systemd's standalone part here. Currently elogind both handles my seat and power management. I actually had some hope here, but sadly didn't work. Here are my elogind config files anyway:/etc/elogind/logind.conf.d/logind.conf [Login] KillUserProcesses=no HandlePowerKey=poweroff HandlePowerKeyLongPress=poweroff HandleRebootKey=reboot HandleRebootKeyLongPress=poweroff HandleSuspendKey=suspend RemoveIPC=yes
/etc/elogind/sleep.conf.d/nvidia-sleep.conf [Sleep] AllowSuspend=yes AllowHibernation=no AllowSuspendThenHibernate=no AllowHybridSleep=no #SuspendMode=deep SuspendState=mem standby freeze HandleNvidiaSleep=yes
Nvidia, this is for you: image
Finest quality OS
Encopperification
Final Fantasy on GOG
image Out of many games, Final Fantasy titles were the least of my expectations to see on GOG. If you know Square Enix, you surely understand. Anyway, this is a great day for DRM-free. 4 of the FF titles are finally here. Hopefully these are baby steps from Square Enix. • Final Fantasy III (3D Remake) • Final Fantasy IV (3D Remake) • FINAL FANTASY IX • FINAL FANTASY VIII - REMASTERED
www.gog.com
Found this in one of my ancient folders
Guess I found this funny at one point. Well, a sbubby is a sbubby. -_-'
Do you want Control Ultimate Edition for 90% off? -Nah, I'll just get HoMM 3 at full price.
I know, I'm doing this again but it's just hilarious at this point.
I've been on GOG for more than a decade and HoMM 3 is always on bestsellers
Nanananananananana
I’m moving my posts from Reddit to Lemmy before delete them. This post is from 2020-04-08.
Harlaus turning water into butter, colorized, circa 1257
I’m moving my posts from Reddit to Lemmy before delete them. Also sorry about repost for people who already saw this but I had to migrate to a different instance since I couldn’t create new posts with the previous one. This post is from 2019-03-25. I also want to post one of the comments there: The Feast at Praven (1257) Butter on Canvas, 800 x 561
Devil May Cry you say
I’m moving my posts from Reddit to Lemmy before delete them. Also sorry about repost for people who already saw this but I had to migrate to a different instance since I couldn’t create new posts with the previous one. This post is from 2019-03-12. I was bored waiting Bannerlord and made a little mock-up between M&B and Devil May Cry.
Bannerlordwhen.jpg
I’m moving my posts from Reddit to Lemmy before delete them. Also sorry about repost for people who already saw this but I had to migrate to a different instance since I couldn’t create new posts with the previous one. This post is from 2018-03-29. We were still waiting for Bannerlord and another Thursday post with our beloved mascot Humphrey.
There is still much to do
I’m moving my posts from Reddit to Lemmy before delete them. Also sorry about repost for people who already saw this but I had to migrate to a different instance since I couldn’t create new posts with the previous one. This post is from 2018-03-08. We were still waiting for Bannerlord and Humprey posts were in fashion.