Movatterモバイル変換


[0]ホーム

URL:


CFEngine documentation homepage

Adjusting schedules

Suggest changes
Table of contents

Set cf-execd agent execution schedule

By defaultcf-execd is configured to runcf-agent every 5 minutes. This canbe adjusted by tuning theschedule inbody executorcontrol. In theMasterfiles Policy Framework bodyexecutor control can be found incontrols/cf_execd.cf

Set cf-hub hub_schedule

cf-hub the CFEngine Enterprise report collection component has ahub_schedule defined inbody hub control which alsodefaults to a 5 minute schedule. It can be adjusted to control how frequentlyhosts should be collected from. In theMasterfiles Policy Frameworkbody hub control can befound incontrols/cf_hub.cf

Note: Mission Portal has an "Unreachable host threshold" that defaults to 15minutes. When a host has not been collected from within this window the host isadded to the "Hosts not reporting" report. When adjusting thecf-hubhub_schedule consider adjusting the Unreachable host threshold proportionally.For example, if you change thehub_schedule to execute only once every 15minutes, then the Unreachable host threshold should be adjusted to 45 minutes(2700 seconds).

Set Unreachable host threshold via API

Note: This example usesjq to filter APIresults to only the relevant values. It is a 3rd party tool, and not shippedwith CFEngine.

Here we create a JSON payload with the new value for the Unreachable hostthreshold (blueHostHorizon). We post the new settings and finally query theAPI to validate the change in settings.

code
[root@hub ~]#echo'{ "blueHostHorizon": 2700 }' > payload.json[root@hub ~]#cat payload.json{ "blueHostHorizon": 2700 }[root@hub ~]#curl -u admin:admin http://localhost:80/api/settings -X POST -d @./payload.json[root@hub ~]#curl -s -u admin:admin http://localhost:80/api/settings/| jq'.data[0]|.blueHostHorizon'2700

Still need help?

Chat Ask a question on Github Mailing list
Version 
master3.24 (LTS)3.21 (LTS)view all versions

[8]ページ先頭

©2009-2025 Movatter.jp