On Monday, September 5, 2016 at 12:20:56 PM UTC+3, Emerik Nicole wrote:
> hello.
> 
> 
> the telegraf service is run by telegraf. 
> 
> I use procstat input to monitor users metric like this. 
> 
> ex : 
> 
> /etc/telegraf/telegraf.d/bapplipuppet-procstat.conf
> 
> [[inputs.procstat]]
> 
>   prefix = "bapplipuppet"
> 
>   user = "bapplipuppet"
> 
> 
> telegraf reports log like this:
> 
> 2016/09/02 17:36:00 Error: procstat getting process, exe: []    pidfile:
>  [] pattern: [] user: [bapplipuppet] Failed to execute /usr/bin/pgrep. 
> Error: 'exit status 1'
> 
> 
> I have a workaround : running telegraf as root by modifying the init.d 
> (centos 6), or systemd-unit (centos 7)
> 
> 
> But i would like to not use this workdaround if not necessary.
> 
> 
> Does somebody have a trick to do it?
> 
> 
> Thank a lot
>     
> -- 
> 
> 
> Cdt
> 
> NICOLE Emerik
> 0677946693
> [email protected]

Hi Emerik,

What is the operating system for the host running Telegraf?
We should check what particular error the exit status 1 means for your OS.

Does the user bapplipuppet exist on the system and do you still see this same 
error in stdout when manually executing the telegraf binary as root e.g. 
"./telegraf -config /etc/telegraf/telegraf.conf" ?

-- 
Remember to include the InfluxDB version number with all issue reports
--- 
You received this message because you are subscribed to the Google Groups 
"InfluxDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/influxdb/0568dfdd-caaa-421a-a814-4177277a823a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to