Robert R. Henry
07/05/2023, 9:10 PMKathy Satterlee
07/06/2023, 3:15 PMSELECT (blocks_available * 100 / blocks) AS percent_disk_space_available,
round((blocks_available * blocks_size *10e-10),2) AS gigs_disk_space_available
FROM mounts WHERE path = '/' LIMIT 1;
The most likely culprit is that this particular distro doesn't have things in the exact places the detail queries are looking for them. Running a live query will confirm for sure whether communication is happening.Robert R. Henry
07/06/2023, 4:51 PMecho "select * from $table;" | osqueryi
returns tables that look entirely plausible and useful.Robert R. Henry
07/06/2023, 4:56 PMKathy Satterlee
07/06/2023, 5:10 PMKathy Satterlee
07/06/2023, 5:11 PMosquery.flags
file.Robert R. Henry
07/06/2023, 6:50 PMI am able to run the live query from the fleet GUI served to port 8080 from my machine hosting fleet. The live query got a plausible answer,
Robert R. Henry
07/06/2023, 6:51 PMThe contents of the machine-to-be-monitored file /etc/osquery/osquery.flags is
Robert R. Henry
07/06/2023, 6:52 PM# Server
--tls_hostname=<http://xxxxx-ubnt-03.xxxx.corp.microsoft.com:8080|xxxxx-ubnt-03.xxxx.corp.microsoft.com:8080>
--tls_server_certs=/etc/osquery/fleet.pem
# Enrollment
--host_identifier=instance
--enroll_secret_path=/etc/osquery/secret.txt
--enroll_tls_endpoint=/api/osquery/enroll
# Configuration
--config_plugin=tls
--config_tls_endpoint=/api/v1/osquery/config
--config_refresh=10
# Live query
--disable_distributed=false
--distributed_plugin=tls
--distributed_interval=10
--distributed_tls_max_attempts=3
--distributed_tls_read_endpoint=/api/v1/osquery/distributed/read
--distributed_tls_write_endpoint=/api/v1/osquery/distributed/write
# Logging
--logger_plugin=tls
--logger_tls_endpoint=/api/v1/osquery/log
--logger_tls_period=10
# File carving
--disable_carver=false
--carver_start_endpoint=/api/v1/osquery/carve/begin
--carver_continue_endpoint=/api/v1/osquery/carve/block
--carver_block_size=2000000
--verbose
Robert R. Henry
07/06/2023, 7:22 PMRobert R. Henry
07/06/2023, 8:58 PMRobert R. Henry
07/06/2023, 8:59 PM