Closed thomas-breining closed 4 years ago
There is an easy fix consisting of stripping the typeperf
command output before parsing its CSV content (see https://github.com/thomas-breining/sensu-plugins-windows/commit/0349d8e83855322129bb87fcdecb44ce91b9ab0f).
Any chance you could open a PR with that?
The network metric script outputs no metric despite the
typeperf
command providing information.This seems to be caused by the leading
\n
in thetypeperf
output which prevents theCSV.parse
function from extracting the headers from the first line.