Hello team
We are preparing the scripts to deploy the osquery agent on a mix of win and linux servers.
Does anyone have the best practices on the prechecks and post installation checks we need to include in the scripts?
an output example:
Name Value
---- -----
OS_Information Microsoft Windows 10 Enterprise - Version: 10.0.19045
CPU_Utilization 47%
Disk_Utilization DriveName = C ,Size = 238GB, FreeSpace = 187GB
CPU_Information Intel64 Family 6 Model 140 Stepping 1
Memory_Utilization RAM_Size = 16GB, Utilized = 57%
* Performing Threshold Check *
Disk_Threshold Green, Utilization = 57%, Threshold = 20
CPU_Threshold Green, Utilization = 47%, Threshold = 80
RAM_Threshold Green, Utilization = 57%, Threshold = 80
Post checks:
SERVICE_NAME="osqueryd.service"
if systemctl is-active --quiet "$SERVICE_NAME"; then
echo "Validation Passed : $SERVICE_NAME is running."
exit 0
else
echo "Validation Failed : $SERVICE_NAME is not running."
exit 1
fi
Looking for any other suggestions
Thank you