Monitoring my feed reader

Every time I get hyperfixated on a thing, I end up doing it at the expense of all else. Right now my hyperfocus is on working on making a sellable version of my VRChat avatar (which is almost ready!)

But I needed a break, so I checked my feed reader, and realized, oh wow, I haven’t checked my feed reader in a few days. Oops.

So anyway, I did what any good nerd would do, and gave myself some alerting and monitoring to track my feed stats.

The reader I use is Feed on Feeds, which isn’t the most fully-featured thing, but at least it’s easy to self-host and also fairly easy to hack on.

I also already use munin for monitoring server health, and it has a fairly easy-to-extend plugin system, and also provides email alerts. So I figured…

Anyway, here’s my Munin plugin:


if [ "$1" = "config" ]; then
    echo 'graph_title Feed-On-Feeds unread items'
    echo 'graph_category feed_on_feeds'
    echo 'graph_args --base 1000 -l 0'
    echo "graph_vlabel unread items"
    echo 'graph_scale yes'

    echo "unread_items.label Unread items"
        exit 0

printf "unread_items.value %d\n" $(curl '/path/to/unread.php?user_id=ID')

and here’s unread.php:

// stupid thing to get the unread items count for a user

$fof_no_login = true;
require_once 'path/to/fof-main.php';

$user_id = $_GET['user_id'];
if (!$user_id) {
    die("missing user id");

$sum = 0;
foreach (fof_db_get_tag_unread($user_id) as $item) {
    $sum += $item;
echo $sum;


Obviously, you have to replace the /path/to/unread.php and path/to/fof-main.php and ID with actual values for it to work for your setup.

Completely unrelated, but is there a word for things you do to procrastinate from things you’re procrastinating from? Because I also uh. Am putting off playing more of the new Zelda game. (I like it a lot but I don’t want to burn out on it and also the UX kinda sucks.)


Before commenting, please read the comment policy.

Avatars provided via Libravatar