Project

General

Profile

Actions

Bug #7763

closed

User story #7666: Provide a command to monitor connection errors on the agent

Path error in rudder agent health

Added by Alexis Mousset over 8 years ago. Updated over 8 years ago.

Status:
Released
Priority:
N/A
Category:
Agent
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

# rudder agent health
grep: /var/rudder/cfengine-community/output/previous: No such file or directory
Connection errors in Rudder agent last run
See /var/rudder/cfengine-community/output/previous for more details

the name is /outputs/ and not /output/.

Furthermore, the error check of the log file is incorrect, the return code of egrep
when no connection error occurred is 1 and not 0.

EXIT STATUS
       Normally the exit status is 0 if a line is selected, 1 if no lines were selected, and 2 if an error occurred.
Actions

Also available in: Atom PDF