Posted on 03-25-2016 02:08 PM
Is there a way to create a smart group based on a process name? We have carbon black installed. Some clients are not working. need to make a group based on the processname: CbOsxSensorService
I know we can create a policy that checks for processes, but how would i make this into a smart group?
Posted on 03-25-2016 02:16 PM
@acorn you could probably make an extension attribute (EA) that will look for the process and report out the existence of the process. But keep in mind that extension attributes are only run at an inventory update. So the frequency of the may determine whether or not an EA would work for you or not.
Posted on 03-25-2016 02:26 PM
You could do it with an Extension Attribute, something like:
#!/bin/bash
# check for process
PROCESS=$( pgrep CbOsxSensorService )
#see if process is running
if [[ -z "$PROCESS" ]]; then
RESULT="Not Running"
else
RESULT="Running"
fi
#report results
echo "<result>${RESULT}</result>"
Then tie the smart group to that EA with a response of Running.
Posted on 03-25-2016 02:41 PM
Excellent ill try this out now. Thanks
Posted on 03-25-2016 02:52 PM
That worked perfectly thanks @hkabik
Posted on 03-25-2016 02:59 PM
I'm curious what are you looking to do assuming you do find the process running on the computer? I suspect that if you need to take an action then the EA will be inadequate for what you're trying to achieve. If you need some sort of reporting that most definitely won't be up to date then the EA might work.
Posted on 04-06-2016 01:42 PM
Some of our installs got borked, some machines are not running CB correctly so we need to install again on the ones that are not.
Posted on 02-12-2018 09:26 AM
What if we wanted to get deeper and get the version number of CarbonBlack?