[collectd] Plugin Exec generate no data
Dan Fandrich
dan at coneharvesters.com
Tue Oct 22 21:42:03 CEST 2013
On Tue, Oct 22, 2013 at 04:12:18PM +0200, Frederic Daguenet wrote:
> On a Citrix XenServer runs collectd 4.10.3. The collectd data are send
> to an collectd server on another machine in the local net here.
> The values for the activate plugins interface, load, memory and swap
> are corretd send. But the also activated plugin Exec no.
>
> If i start the script on command line it generates this data:
> PUTVAL skyxen3/exec-ipmi/temperature-chasis interval=60 N:39
> PUTVAL skyxen3/exec-ipmi/temperature-chasis interval=60 N:39
> PUTVAL skyxen3/exec-ipmi/temperature-chasis interval=60 N:39
> PUTVAL skyxen3/exec-ipmi/temperature-chasis interval=60 N:39
>
> and so on...
>
> The script run not as root user!
But what happens when you manually run the script as the user
"collectduser" and default group "collectduser"? If there are permission
problems (e.g. collectduser isn't listed in sudoers) running under that user,
which is how collectd will run the plugin, then it will naturally have
problems. Have you tried instrumenting your script with debug logging to see
if it's called and what's going on?
>>> Dan
More information about the collectd
mailing list