-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #7409: Support cfengine enterprise in check-rudder-agent #796
Fixes #7409: Support cfengine enterprise in check-rudder-agent #796
Conversation
CFE_DISABLE_FILE=/opt/rudder/etc/disable-agent | ||
|
||
LAST_UPDATE_FILE=${CFE_DIR}/last_successful_inputs_update |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you removed it without adding it back, however you still use it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, forget it, i'e seen it's at the end of the file
@peckpeck : I tested the file, and got the following output: /etc/init.d, /etc/default/rudder-agent are not supposed to be there on enterprise only Could you fix the PR accordingly ? |
41eb674
to
cb7c3b1
Compare
PR updated |
# List the CFEngine processes running | ||
CF_PROCESS_RUNNING=`${PS_COMMAND} | egrep "${CFE_BIN_DIR}/(cf-execd|cf-agent)" | sed -e '/grep/d' | cat` | ||
CF_PROCESS_RUNNING=`${PS_COMMAND} | sed -ne "\\%${CFE_BIN_DIR}/(cf-execd|cf-agent)%p" | cat` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not detect correctly that the agent or cf-execd is running
cb7c3b1
to
7a1ee9e
Compare
PR updated |
7a1ee9e
to
ffbd4d7
Compare
PR updated |
…prise_in_check_rudder_agent Fixes #7409: Support cfengine enterprise in check-rudder-agent
https://www.rudder-project.org/redmine/issues/7409