From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-179.mta0.migadu.com (out-179.mta0.migadu.com [91.218.175.179]) by mail.toke.dk (Postfix) with ESMTPS id 092C4B1B3EB for ; Sun, 13 Apr 2025 01:02:34 +0200 (CEST) Authentication-Results: mail.toke.dk; dkim=pass (2048-bit key; secure) header.d=alexschroeder.ch header.i=@alexschroeder.ch header.a=rsa-sha256 header.s=key1 header.b=lw6kjnav MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alexschroeder.ch; s=key1; t=1744498953; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oPWS3l3HSuwr7Q9FP4Od7fxIWHzjhrYBb0RtyG2iZQI=; b=lw6kjnavCcbsMG+OayVSQy2+vv3l8QCTGgqXeXP4oxz1zRHBU4BCMaK3PdOcg5rN5SLGSr GdcMPvdJYU8VxZIN5Ze7CIzMJKlWSbkYNcHY+VMdqF5F8IAjaK5YYrcnNr5hTVn+XoFzDo TgXUSin0EszGmS4JkDTFb+pZo2TqeTUmO45VXnvXpr30qJB7ApGp+WsnvfPtn9uDhTPGxE xDNNir2GoMIeny2Ctxo6Vb/FL/2fovW7Uv6R6KQ+P5Kj8rPNUlDGflew4bFKXjAchN8D3h XTiZxLj5hxtjyFQeX0luKVidBHaYnV5gj9t0V8nhmz4OckgR2RBgD5tJVdTm7w== Date: Sat, 12 Apr 2025 23:02:32 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: alex@alexschroeder.ch Message-ID: <67179dbc55aec8f225e3c4ea57078ec1594a995e@alexschroeder.ch> TLS-Required: No To: galene@lists.galene.org X-Migadu-Flow: FLOW_OUT Message-ID-Hash: 4Z5JPGYQ6BZN26PAFK2HOTG7STXSWXOH X-Message-ID-Hash: 4Z5JPGYQ6BZN26PAFK2HOTG7STXSWXOH X-MailFrom: alex@alexschroeder.ch X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list Subject: [Galene] Munin stats List-Id: =?utf-8?q?Gal=C3=A8ne_videoconferencing_server_discussion_list?= Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: OK, this made me laugh: ~ $ curl https://campaignwiki.org:8443/galene-api/v0/.stats Haha! It would be better to tell people to authenticate as a user in data/confi= g.json, however. It took me a moment to understand why I was seeing the m= essage. In any case, I'm currently experimenting with writing Munin plugin for Ga= l=C3=A8ne. Munin is a networked resource monitoring tool. https://munin-monitoring.o= rg/ If you run the following plugin using "munin-run galene", it will print s= omething like the following: channels.value 1 clients.value 2 curl and jq are required. #!/bin/sh # -*- sh -*- : <<=3Dcut =3Dhead1 NAME galene - Munin plugin to monitor number of rooms and clients on a Gal=C3= =A8ne server. =3Dhead1 USAGE This plugin connects to a Gal=C3=A8ne server. It requires curl and jq. =3Dhead1 CONFIGURATION There is no default configuration. This is an example: [galene] env.host campaignwiki.org env.port 8443 env.user root env.password secret =3Dhead1 AUTHOR Alex Schroeder =3Dhead1 LICENSE CC0, dedicated to the public domain =3Dhead1 MAGIC MARKERS #%# family=3Dmanual =3Dcut . "$MUNIN_LIBDIR/plugins/plugin.sh" if [ "$1" =3D "autoconf" ]; then if [ -z "$host" ]; then echo "no (Configuration required)" exit 0 fi echo yes exit 0 fi if [ -z "$host" ] || [ -z "$port" ] || [ -z "$user" ] || [ -z "$password"= ]; then echo "Configuration required" exit 1 fi if [ "$1" =3D "config" ]; then echo "graph_title Gal=C3=A8ne status - $host:$port" echo "graph_category chat" echo "graph_order clients channels" echo "graph_args -l 0" echo "clients.label clients" echo "clients.draw LINE2" echo "channels.label channels" echo "channels.draw LINE2" exit 0 fi data=3D$(curl --silent --user "$user:$password" "https://$host:$port/gale= ne-api/v0/.stats") channels=3D$(echo "$data" | jq '.|length') echo "channels.value $channels" clients=3D$(echo "$data" | jq '[.[].clients|length]|add') echo "clients.value $clients"