Skip to main content
Solved

Darktrace cSensor Extention Attribute

  • May 16, 2022
  • 1 reply
  • 0 views

Forum|alt.badge.img+6
  • New Contributor
  • 9 replies

We have had the Darktrace cSensor running on our macs for months. I am currently tasked with creating a report that pulls in all machines with DT sensor and its running. I found a script that I could use with extension attributes to report that the sensor is installed and running, but it does not pull any data once it's set up as the exention attribute. I can run this script in a local bash environment on my mac and it seems to report that sensor is running on my mac. 

#!/bin/bash

# check for process
PROCESS=$( pgrep Darktrace\\ cSensor )

#see if process is running
if [[ -z "$PROCESS" ]]; then
RESULT="Not Running"
else
RESULT="Running"
fi

#report results
echo "<result>${RESULT}</result>"

Best answer by mmobin

The above script is working as intended. No changes required.

View original
Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img+6
  • Author
  • New Contributor
  • 9 replies
  • Answer
  • October 8, 2024

The above script is working as intended. No changes required.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings