Discussion:
[influxdb] sysstat error
Willem D'Haese
2016-12-07 21:02:04 UTC
Permalink
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 influxdb+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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.
Willem D'Haese
2017-01-11 13:31:26 UTC
Permalink
Mark,

Thank you, setting the interval to 2 for the sysstat input helped indeed.

Grtz

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 influxdb+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/100c1e05-e88e-42eb-9652-b3e29a554020%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
l***@gmail.com
2018-04-20 14:37:47 UTC
Permalink
Mark,
Thank you, setting the interval to 2 for the sysstat input helped indeed. 
Grtz
Willem
Hi Willeh, how change the interval? I see the code and see what interval is hardcoding in the code the https://github.com/influxdata/telegraf/tree/master/plugins/inputs/sysstat
--
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 influxdb+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/0505ec83-8db2-4df0-8594-06adedce0077%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...