I am trying to update the metricbeat_cookbook to get some required info.
Monitor the number of Number of sessions and html5 client processes running each server.
ps -ef | grep -i html5 | wc -l. This is the logic I need in the cookbook/recipe.execute 'ps -ef' do command 'ps -ef | grep -i html5 | wc -l' action :run endOpen file descriptors on linux server (this is the logic
cat /proc/sys/fs/file-nr)execute 'cat' do command 'cat /proc/sys/fs/file-nr' action :run end
Any response/help is highly helpful to me and - Thanks in Advance.