You are not logged in.

#1 2014-05-21 09:42:46

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

[NOT SOLVED] Munin plugin does not run

Hi, I've created my own plugin to check the amount of connections tor opens. Couldn't find anything out of the box. But if there is I'd like to know.

THe script goes as this:

#!/bin/sh

case $1 in
    config)
        cat <<'EOM'
graph_title TOR connections
graph_vlabel TOR
load.label TOR
EOM
        exit 0;;
esac
printf "load.value "
netstat -anp --tcp|grep tor -c

as the netstat command requires root priviliges I've added this to plugin-conf.d/munin-node

[tor_connections]
user root

The problem is that the plugin only runs as root the munin user seems not to be able to run it.

$ munin-run tor_connections
# Warning: Root privileges are required to change user/group.  The plugin may not behave as expected.
load.value (Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)

What else is needed to have munin run this plugin successfully?

Last edited by theking2 (2014-12-16 20:56:36)


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#2 2014-12-16 20:57:22

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: [NOT SOLVED] Munin plugin does not run

Being open for some time now I assume that this mystery will not be solved here.


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

Board footer

Powered by FluxBB