tjstein / php5-fpm-munin-plugins

A set of Munin plugins for PHP5-FPM
http://tjstein.com
MIT License
109 stars 45 forks source link

ps awwwux return nothing launched trough munin-run #8

Closed dynamicnet closed 12 years ago

dynamicnet commented 12 years ago

sorry not really an issue, but don't unterstand why not work.

all plugin run fine when lauched directly from command line.

But when lauched with munin-run, plugins using "ps" return nothing ! after debugging, I've found that ps awwwux return only 2 lines

nobody   31997  0.0  0.0   9120  1104 pts/0    S+   17:44   0:00 /bin/sh /etc/munin/plugins/phpfpm_processes
nobody   31998  0.0  0.0  14852  1044 pts/0    R+   17:44   0:00 ps awwwux

Did you know why ?

thanks for help

dynamicnet commented 12 years ago

auto reply

plugins seems to be run as root, so you have to edit

nano /etc/munin/plugin-conf.d/munin-node

and add the lines

[php*]
user root
group root
...