Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Munin permissions #22

Merged
merged 2 commits into from

2 participants

@tsibley
Owner

Fix errors in munin plugin configuration with regard to users and groups.

tsibley added some commits
@tsibley tsibley Run the munin-stats plugin as the munin user so it can read the logs
Otherwise it runs as user nobody, group munin and can't read the files:

    root@bm-n2:~# munin-run --debug munin_stats
    # Processing plugin configuration from
    # /etc/munin/plugin-conf.d/munin-node
    # Set /rgid/ruid/egid/euid/ to /110/65534/110 110 /65534/
    # Setting up environment
    # About to run '/etc/munin/plugins/munin_stats'
    update.extinfo Can't open /var/log/munin/munin-update.log for reading
    update.value U
    graph.extinfo Can't open /var/log/munin/munin-graph.log for reading
    graph.value U
    html.extinfo Can't open /var/log/munin/munin-html.log for reading
    html.value U
    limits.extinfo Can't open /var/log/munin/munin-limits.log for reading
    limits.value U

    root@bm-n2:~# ls -l /var/log/munin/munin-{update,graph,html,limits}.log
    -rw-r----- 1 munin adm 1279972 Feb  2 02:40 /var/log/munin/munin-graph.log
    -rw-r----- 1 munin adm   64711 Feb  2 02:40 /var/log/munin/munin-html.log
    -rw-r----- 1 munin adm   87572 Feb  2 02:40 /var/log/munin/munin-limits.log
    -rw-r----- 1 munin adm  282695 Feb  2 02:40 /var/log/munin/munin-update.log
8aea4b5
@tsibley tsibley The exim munin plugins are named exim_* not exim4_*; run them using D…
…ebian-exim

If this was working in the past then the munin exim plugins changed
names and dropped the 4.  I don't see that the exim munin plugins
themselves are provisioned from puppet, so who knows where they came
from.
3a49792
@oalders oalders merged commit 7f78503 into master
@oalders oalders deleted the munin-permissions branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 2, 2014
  1. @tsibley

    Run the munin-stats plugin as the munin user so it can read the logs

    tsibley authored
    Otherwise it runs as user nobody, group munin and can't read the files:
    
        root@bm-n2:~# munin-run --debug munin_stats
        # Processing plugin configuration from
        # /etc/munin/plugin-conf.d/munin-node
        # Set /rgid/ruid/egid/euid/ to /110/65534/110 110 /65534/
        # Setting up environment
        # About to run '/etc/munin/plugins/munin_stats'
        update.extinfo Can't open /var/log/munin/munin-update.log for reading
        update.value U
        graph.extinfo Can't open /var/log/munin/munin-graph.log for reading
        graph.value U
        html.extinfo Can't open /var/log/munin/munin-html.log for reading
        html.value U
        limits.extinfo Can't open /var/log/munin/munin-limits.log for reading
        limits.value U
    
        root@bm-n2:~# ls -l /var/log/munin/munin-{update,graph,html,limits}.log
        -rw-r----- 1 munin adm 1279972 Feb  2 02:40 /var/log/munin/munin-graph.log
        -rw-r----- 1 munin adm   64711 Feb  2 02:40 /var/log/munin/munin-html.log
        -rw-r----- 1 munin adm   87572 Feb  2 02:40 /var/log/munin/munin-limits.log
        -rw-r----- 1 munin adm  282695 Feb  2 02:40 /var/log/munin/munin-update.log
  2. @tsibley

    The exim munin plugins are named exim_* not exim4_*; run them using D…

    tsibley authored
    …ebian-exim
    
    If this was working in the past then the munin exim plugins changed
    names and dropped the 4.  I don't see that the exim munin plugins
    themselves are provisioned from puppet, so who knows where they came
    from.
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 4 deletions.
  1. +4 −4 modules/munin/files/plugin-conf.d/munin-node
View
8 modules/munin/files/plugin-conf.d/munin-node
@@ -12,6 +12,9 @@
#
#
+[munin_stats]
+user munin
+
[http_loadtime]
env.target https://metacpan.org/recent
@@ -26,7 +29,7 @@ env.names starman watcher
#env.mysqlopts -u someuser
[exim*]
-group mail
+user Debian-exim
[cps*]
user root
@@ -49,6 +52,3 @@ env.ports 5000 5001
[elasticsearch_open_files]
user elasticsearch
-
-[exim4_*]
-user Debian-exim
Something went wrong with that request. Please try again.