2017-11-15 23:10:11 +00:00
|
|
|
---
|
2017-11-14 01:11:08 +00:00
|
|
|
apiVersion: k8s.kolide.com/v1alpha1
|
|
|
|
kind: OsqueryLabels
|
2017-11-12 18:58:19 +00:00
|
|
|
spec:
|
|
|
|
labels:
|
|
|
|
- name: all_hosts
|
|
|
|
query: select 1;
|
|
|
|
- name: macs
|
|
|
|
query: select 1 from os_version where platform = "darwin";
|
|
|
|
- name: ubuntu
|
|
|
|
query: select 1 from os_version where platform = "ubuntu";
|
|
|
|
- name: centos
|
|
|
|
query: select 1 from os_version where platform = "centos";
|
|
|
|
- name: windows
|
|
|
|
query: select 1 from os_version where platform = "windows";
|
|
|
|
- name: pending_updates
|
|
|
|
query: SELECT value from plist where path = "/Library/Preferences/ManagedInstalls.plist" and key = "PendingUpdateCount" and value > "0";
|
|
|
|
platforms:
|
|
|
|
- darwin
|
|
|
|
- name: slack_not_running
|
|
|
|
query: >
|
|
|
|
SELECT * from system_info
|
|
|
|
WHERE NOT EXISTS (
|
|
|
|
SELECT *
|
|
|
|
FROM processes
|
|
|
|
WHERE name LIKE "%Slack%"
|
|
|
|
);
|