Hello team We are preparing the scripts to deploy ...
# fleet
g
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
g
Hey Girish, are you looking for things specific to Fleetdm? When hosts are checking into Fleet Server, can see them on the hosts page or running simple sanity query such as
SELECT 1 WHERE 1 = 0
g
Hi Grant. We are planning to use ansible type home grown solution to deploy the agents. So the scripts would do the pre & post checks on the target server where the agent will be installed. I was looking to see if there are any guides which exists for reference