We use posture assessment and I need to check for a process on the corporate assets when they want to connect through VPN. I created a simple system process that does nothing. It only gets installed on corporate assets.
To see whether it's running - I would run a check to see if it's there:
#!/bin/bash
PROCESS=myapp
number=$(ps aux | grep -v grep | grep -ci $ProcessName)
if [ $number -gt 0 ]
then
echo Running;
fi
Assuming the 'running is 'true' how can I report that back?
Ultimately I want a policy that shows me how many systems in the full scope are running this. I am requesting assistance on how to show the number of systems that come back as 'Running'.
Those not running would need verified the custom process added is working.
Essentially a quick look on my dashboard to see if 100% of the systems have 'myapp' running
