On Wednesday, December 7, 2016 at 1:02:04 PM UTC-8, Willem D'Haese wrote:
> Hello,
>
>
> When I try to use sysstat as input in telegraf.conf I'm getting errors and no
> results. This is my inpit:
>
>
>
>
> [[inputs.sysstat]]
> sadc_path = "/usr/lib64/sa/sadc"
> activities = ["DISK"]
> group = true
> [inputs.sysstat.options]
> -d = "disk"
>
>
>
>
> And thse are the errors I'm seeing:
>
>
>
>
> 2016/12/07 21:59:12 E! ERROR: input [inputs.sysstat] took longer to collect
> than collection interval (1s)
> 2016/12/07 21:59:12 E! failed to remove tmp file after /usr/lib64/sa/sadc -S
> DISK 0 2 /tmp/sysstat-1481144352 command: remove /tmp/sysstat-1481144352: no
> such file or directory
> 2016/12/07 21:59:12 E! ERROR in input [inputs.sysstat]: failed to run command
> /usr/lib64/sa/sadc -S DISK 0 2 /tmp/sysstat-1481144352: exit status 1 -
> Usage: /usr/lib64/sa/sadc [ options ] [ <interval> [ <count> ] ] [ <outfile> ]
> Options are:
> [ -C <comment> ] [ -F ] [ -L ] [ -V ]
> [ -S { INT | DISK | IPV6 | POWER | SNMP | XDISK | ALL | XALL } ]
> 2016/12/07 21:59:13 E! failed to remove tmp file after /usr/lib64/sa/sadc -S
> DISK 0 2 /tmp/sysstat-1481144353 command: remove /tmp/sysstat-1481144353: no
> such file or directory
> 2016/12/07 21:59:13 E! ERROR in input [inputs.sysstat]: failed to run command
> /usr/lib64/sa/sadc -S DISK 0 2 /tmp/sysstat-1481144353: exit status 1 -
> Usage: /usr/lib64/sa/sadc [ options ] [ <interval> [ <count> ] ] [ <outfile> ]
> Options are:
> [ -C <comment> ] [ -F ] [ -L ] [ -V ]
> [ -S { INT | DISK | IPV6 | POWER | SNMP | XDISK | ALL | XALL } ]
> 2016/12/07 21:59:14 E! failed to remove tmp file after /usr/lib64/sa/sadc -S
> DISK 0 2 /tmp/sysstat-1481144354 command: remove /tmp/sysstat-1481144354: no
> such file or directory
> 2016/12/07 21:59:14 E! ERROR in input [inputs.sysstat]: failed to run command
> /usr/lib64/sa/sadc -S DISK 0 2 /tmp/sysstat-1481144354: exit status 1 -
> Usage: /usr/lib64/sa/sadc [ options ] [ <interval> [ <count> ] ] [ <outfile> ]
> Options are:
> [ -C <comment> ] [ -F ] [ -L ] [ -V ]
> [ -S { INT | DISK | IPV6 | POWER | SNMP | XDISK | ALL | XALL } ]
> 2016/12/07 21:59:15 E! failed to remove tmp file after /usr/lib64/sa/sadc -S
> DISK 0 2 /tmp/sysstat-1481144355 command: remove /tmp/sysstat-1481144355: no
> such file or directory
> 2016/12/07 21:59:15 E! ERROR in input [inputs.sysstat]: failed to run command
> /usr/lib64/sa/sadc -S DISK 0 2 /tmp/sysstat-1481144355: exit status 1 -
> Usage: /usr/lib64/sa/sadc [ options ] [ <interval> [ <count> ] ] [ <outfile> ]
> Options are:
> [ -C <comment> ] [ -F ] [ -L ] [ -V ]
> [ -S { INT | DISK | IPV6 | POWER | SNMP | XDISK | ALL | XALL } ]
>
>
>
>
> This is a CentOS 6 system. When I test the config I do get a result, but once
> I start the service or run telegraf it fails somehow.
>
>
> Willem
If you set the sample rate to every 2s, instead of every 1s, the sysstat plugin
should correctly collect data. I ran into the same issue a while ago but didn't
look too closely at why sampling at 1s wasn't working correctly. I don't think
there's an issue on the telegraf repo to track that, so you may want to open
one.
--
Remember to include the version number!
---
You received this message because you are subscribed to the Google Groups
"InfluxData" 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/31f0b5f8-6ba3-45f0-aa5e-ac1d2b765072%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.