Inputs.sysstat /tmp/sysstat-1547164850 failed with exit status 2


#1

I installed telegraf 1.9 on centos 6.8.
telegraf.conf to use inputs.sysstat

The following error occurred:
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -P ALL /tmp/sysstat-1547164840 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -u /tmp/sysstat-1547164840 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -v /tmp/sysstat-1547164840 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -n ALL /tmp/sysstat-1547164840 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -S /tmp/sysstat-1547164840 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -w /tmp/sysstat-1547164840 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -W /tmp/sysstat-1547164840 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -r /tmp/sysstat-1547164840 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -R /tmp/sysstat-1547164840 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -d /tmp/sysstat-1547164840 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -v /tmp/sysstat-1547164850 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -q /tmp/sysstat-1547164840 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -W /tmp/sysstat-1547164850 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -r /tmp/sysstat-1547164850 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -d /tmp/sysstat-1547164850 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -u /tmp/sysstat-1547164850 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -q /tmp/sysstat-1547164850 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -w /tmp/sysstat-1547164850 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -S /tmp/sysstat-1547164850 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -R /tmp/sysstat-1547164850 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -n ALL /tmp/sysstat-1547164850 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -P ALL /tmp/sysstat-1547164850 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -B /tmp/sysstat-1547164850 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -u /tmp/sysstat-1547164850 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -v /tmp/sysstat-1547164850 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -C /tmp/sysstat-1547164850 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -q /tmp/sysstat-1547164850 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -P ALL /tmp/sysstat-1547164850 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -R /tmp/sysstat-1547164850 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -r /tmp/sysstat-1547164850 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -n ALL /tmp/sysstat-1547164850 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -S /tmp/sysstat-1547164850 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -B /tmp/sysstat-1547164850 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -b /tmp/sysstat-1547164850 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -d /tmp/sysstat-1547164850 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -w /tmp/sysstat-1547164850 failed with exit status 2
2019-01-11T00:00:59Z E! [inputs.sysstat]: Error in plugin: command /usr/bin/sadf -p – -p -W /tmp/sysstat-1547164850 failed with exit status 2
2019-01-11T00:01:00Z E! [inputs.sysstat]: Error in plugin: failed to run command /usr/lib64/sa/sadc -S DISK 9 2 /tmp/sysstat-1547164860: exit status 3 - Invalid system activity file: /tmp/sysstat-1547164860

Help me


#2

Can you paste the relevant section of your config file please?