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

-- 
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/af8ab748-b1c5-4a9c-a331-04fe02eb945b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to