Forum: CFEngine Help Subject: Re: High cpu usage while cf-monitord running netstat Author: aleksey_c Link to topic: https://cfengine.com/forum/read.php?3,27403,27406#msg-27406
Looked at the source code of files in which there is mention of netstat cfengine-3.3.5\src\classes.c cfengine-3.3.5\src\mon_network.c Looks like it is currently not possible to disable netstat without recompilation. So, quick and dirty hack for this problem is the following mv /bin/netstat /usr/local/bin/ ln -s /bin/true /bin/netstat The user still can run the netstat from the command line as /usr/local/bin is before /bin in PATH variable. But cf-monitord will run /bin/true instead of /bin/netstat. After applying the changes to a single server CPU load decreased. Mark, do you think is it possible to request a feature to disable netstat in "body monitor control" in the config file? Or this is a very rare problem? _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine