A Sensu plugin for collecting system resource metrics from the procfile system, with the aim to provide a Sensu-native alternative to Collectd's built-in system resource telemetry.
MIT License
3
stars
3
forks
source link
At centos7 vm - metric value is invalid, second argument must be a float: |bytes #11
Hello on all my Centos7 VMs I have the following error message in journald
Dez 18 14:46:03 test-server sensu-agent[100325]: {"check":"system-profile-linux","component":"agent","error":"unable to extract metric from check output","level":"error","line":60,"msg":"metric value is invalid, second argument must be a float: |bytes","namespace":"default","time":"2019-12-18T14:46:03+01:00"}
Dez 18 14:46:03 test-server sensu-agent[100325]: {"check":"system-profile-linux","component":"agent","error":"unable to extract metric from check output","level":"error","line":61,"msg":"metric value is invalid, second argument must be a float: packets","namespace":"default","time":"2019-12-18T14:46:03+01:00"}
Dez 18 14:46:03 test-server sensu-agent[100325]: {"check":"system-profile-linux","component":"agent","error":"unable to extract metric from check output","level":"error","line":62,"msg":"metric value is invalid, second argument must be a float: errs","namespace":"default","time":"2019-12-18T14:46:03+01:00"}
Dez 18 14:46:03 test-server sensu-agent[100325]: {"check":"system-profile-linux","component":"agent","error":"unable to extract metric from check output","level":"error","line":63,"msg":"metric value is invalid, second argument must be a float: drop","namespace":"default","time":"2019-12-18T14:46:03+01:00"}
Dez 18 14:46:03 test-server sensu-agent[100325]: {"check":"system-profile-linux","component":"agent","error":"unable to extract metric from check output","level":"error","line":64,"msg":"metric value is invalid, second argument must be a float: fifo","namespace":"default","time":"2019-12-18T14:46:03+01:00"}
Dez 18 14:46:03 test-server sensu-agent[100325]: {"check":"system-profile-linux","component":"agent","error":"unable to extract metric from check output","level":"error","line":65,"msg":"metric value is invalid, second argument must be a float: frame","namespace":"default","time":"2019-12-18T14:46:03+01:00"}
Dez 18 14:46:03 test-server sensu-agent[100325]: {"check":"system-profile-linux","component":"agent","error":"unable to extract metric from check output","level":"error","line":66,"msg":"metric value is invalid, second argument must be a float: compressed","namespace":"default","time":"2019-12-18T14:46:03+01:00"}
Dez 18 14:46:03 test-server sensu-agent[100325]: {"check":"system-profile-linux","component":"agent","error":"unable to extract metric from check output","level":"error","line":67,"msg":"metric value is invalid, second argument must be a float: multicast|bytes","namespace":"default","time":"2019-12-18T14:46:03+01:00"}
Dez 18 14:46:03 test-server sensu-agent[100325]: {"check":"system-profile-linux","component":"agent","error":"unable to extract metric from check output","level":"error","line":68,"msg":"metric value is invalid, second argument must be a float: packets","namespace":"default","time":"2019-12-18T14:46:03+01:00"}
Dez 18 14:46:03 test-server sensu-agent[100325]: {"check":"system-profile-linux","component":"agent","error":"unable to extract metric from check output","level":"error","line":69,"msg":"metric value is invalid, second argument must be a float: errs","namespace":"default","time":"2019-12-18T14:46:03+01:00"}
Dez 18 14:46:03 test-server sensu-agent[100325]: {"check":"system-profile-linux","component":"agent","error":"unable to extract metric from check output","level":"error","line":70,"msg":"metric value is invalid, second argument must be a float: drop","namespace":"default","time":"2019-12-18T14:46:03+01:00"}
Dez 18 14:46:03 test-server sensu-agent[100325]: {"check":"system-profile-linux","component":"agent","error":"unable to extract metric from check output","level":"error","line":71,"msg":"metric value is invalid, second argument must be a float: fifo","namespace":"default","time":"2019-12-18T14:46:03+01:00"}
Dez 18 14:46:03 test-server sensu-agent[100325]: {"check":"system-profile-linux","component":"agent","error":"unable to extract metric from check output","level":"error","line":72,"msg":"metric value is invalid, second argument must be a float: colls","namespace":"default","time":"2019-12-18T14:46:03+01:00"}
Dez 18 14:46:03 test-server sensu-agent[100325]: {"check":"system-profile-linux","component":"agent","error":"unable to extract metric from check output","level":"error","line":73,"msg":"metric value is invalid, second argument must be a float: carrier","namespace":"default","time":"2019-12-18T14:46:03+01:00"}
Dez 18 14:46:03 test-server sensu-agent[100325]: {"check":"system-profile-linux","component":"agent","error":"unable to extract metric from check output","level":"error","line":74,"msg":"metric value is invalid, second argument must be a float: compressed","namespace":"default","time":"2019-12-18T14:46:03+01:00"}
When I run ystem-profile-linux I see the following result at the processes
Hello on all my Centos7 VMs I have the following error message in journald
When I run ystem-profile-linux I see the following result at the processes
So I think I found the problem. system-profile-linux does not ignore the title/headers (two lines)
Here the first two lines must be ignored.