Project

General

Profile

Actions

Bug #10522

closed

Telegraf, Netstat fails (missing lsof)

Added by Russell Morris about 4 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Normal
Category:
Telegraf
Target version:
-
Start date:
05/02/2020
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:

Description

Enabling netstat from the web interface (as part of Telegraf) ... fails. The error message can be seen from a command line test run,
telegraf --test --input-filter netstat --config /usr/local/etc/telegraf.conf

2020-05-03T03:18:31Z I! Starting Telegraf 1.13.4
2020-05-03T03:18:31Z E! [inputs.netstat] Error in plugin: error getting net connections info: exec: "lsof": executable file not found in $PATH
2020-05-03T03:18:31Z E! [telegraf] Error running agent: One or more input plugins had an error

The fix is to manually install lsof, but shouldn't it be part of the package, to avoid this extra manual step?

Thanks!

Actions

Also available in: Atom PDF