Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

e.soden_181905 avatar image
e.soden_181905 asked ·

Agent execute iostat command with wrong arguments

Hi,


I have just install DataStax in Suse Linux Enterprise server 12. All is running fine but I see that in the agent log, I have the following error

ERROR [clojure-agent-send-off-pool-1] 2019-11-29 17:09:40,662 iostat failed on execute; returning default value - Process failed: iostat -x -s -d -m 60 2 Exit val: 1 Output: Usage: iostat [ options ] [ [ ] ] Options are: [ -c ] [ -d ] [ -h ] [ -k | -m ] [ -N ] [ -t ] [ -V ] [ -x ] [ -y ] [ -z ] [ -j { ID | LABEL | PATH | UUID | ... } ] [ [ -T ] -g ] [ -p [ [,...] | ALL ] ] [ [...] | ALL ]


How to correct this? in fact the right command should be iostat -x -d -m 60 2


Regards

Emmanuel

datastax agent
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered ·

@e.soden_181905 there was an issue with the way agents were parsing iostat outputs on Linux machines with a newer version of the SYSSTAT package where the -s flag was added. The metrics still get collected and it is safe to ignore the errors. As a workaround, you can upgrade to a newer version of SYSSTAT to stop the errors from being reported in the logs.

The issue will be fixed in the next release of OpsCenter (internal ID OPSC-16181). Cheers!

1 comment Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

This answer comes quite high in search engines when looking for iostat and agent so just adding for visibility that this was fixed in OpsCenter 6.7.7 as shown here

https://docs.datastax.com/en/opscenter/6.7/opsc/release_notes/opscReleaseNotes_g.html#opscReleaseNotes677__opsc677Changes

> Fixed errors showing up in the agent.log when iostat does not support -s option. (OPSC-16181)

1 Like 1 · ·