Skip to content

Commit

Permalink
fix(parsers.nagios): fixed format
Browse files Browse the repository at this point in the history
  • Loading branch information
Sakerdotes authored May 12, 2022
1 parent a2e5c2f commit ccc1806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/exec/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (e *Exec) ProcessCommand(command string, acc telegraf.Accumulator, wg *sync
_, isNagios := e.parser.(*nagios.NagiosParser)

out, errBuf, runErr := e.runner.Run(command, e.Environment, time.Duration(e.Timeout))
if !isNagios && runErr != nil {
if !isNagios && runErr != nil {
err := fmt.Errorf("exec: %s for command '%s': %s", runErr, command, string(errBuf))
acc.AddError(err)
return
Expand Down

0 comments on commit ccc1806

Please sign in to comment.