Enterprise inventorying of hosts that have overlapping cf-agent runs

15 views
Skip to first unread message

Aleksey Tsalolikhin

unread,
Sep 1, 2015, 9:49:51 PM9/1/15
to help-cfengine
Does anybody have policy they'd like to share of inventorying hosts that have overlapping cf-agent runs?

--
Aleksey Tsalolikhin
CFEngine Training & Consulting
Vertical Sysadmin, Inc.

Nick Anderson

unread,
Sep 1, 2015, 9:52:57 PM9/1/15
to help-cfengine, Aleksey Tsalolikhin
You mean the number of running cf-agent process?

Sent from my mobile device.
--
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to help-cfengin...@googlegroups.com.
To post to this group, send email to help-c...@googlegroups.com.
Visit this group at http://groups.google.com/group/help-cfengine.
For more options, visit https://groups.google.com/d/optout.

Aleksey Tsalolikhin

unread,
Sep 1, 2015, 9:56:05 PM9/1/15
to Nick Anderson, help-cfengine
I want to set a class if there is more than one cf-agent process.  I don't care how many there are as I have policy to kill cf-agent processes to prevent process pile-ups, so the number no longer gets high, but I still want to know where cf-agent processes overlap as it could indicate trouble.  And now due to my clean-up policy, if pile-ups are chronic, cf-agents won't finish their runs, like ever...

Nick Anderson

unread,
Sep 3, 2015, 11:39:40 AM9/3/15
to Aleksey Tsalolikhin, Nick Anderson, help-cfengine
On 09/01/2015 08:55 PM, Aleksey Tsalolikhin wrote:
> I want to set a class if there is more than one cf-agent process. I don't
> care how many there are as I have policy to kill cf-agent processes to
> prevent process pile-ups, so the number no longer gets high, but I still
> want to know where cf-agent processes overlap as it could indicate
> trouble. And now due to my clean-up policy, if pile-ups are chronic,
> cf-agents won't finish their runs, like ever...

Hi Aleksey,

See attachments

- inventory count of cf-agent processes based on regex against
/var/cfengine/state/cf_procs
- measure count for graphing and anomonly detection
- Classes defined if there are more than 1 running agent
(as detected by cf-monitord, perhaps this ought to just
use the same probe instead of relying on the potentially
older mon data)
- have_multiple_concurrent_cf_agent_processes
- have_x_concurrent_cf_agent_processes


R: DEBUG inventory_cf_agent: Concurrent cf-agent procs = '3.00'
R: DEBUG inventory_cf_agent: Average Concurrent cf-agent procs = '2.37'
R: DEBUG inventory_cf_agent: Standard Deviation Concurrent cf-agent
procs = '2.29'
R: DEBUG inventory_cf_agent: DEFINED 'have_3_concurrent_cf_agent_processes'
R: DEBUG inventory_cf_agent: DEFINED
'have_multiple_concurrent_cf_agent_processes'
inventory_cf_agent.cf
2015-09-03_Selection_003.png
2015-09-03_Selection_001.png
Reply all
Reply to author
Forward
0 new messages