Do not report virtual filesystems in df

Tell `df` not to report on virtual filesystems such as `squashfs` (used
by `snapd` and always at 100%), `tmpfs` (memory-only) and `devtmpfs`
(used by `udev`)
This commit is contained in:
Pawel Krawczyk 2019-02-18 13:01:42 +00:00
parent 81058daf1b
commit bcd327280e
2 changed files with 2 additions and 2 deletions

View File

@ -281,7 +281,7 @@ wazuh_agent_config:
- format: 'syslog'
location: '/var/ossec/logs/active-responses.log'
- format: 'command'
command: 'df -P'
command: df -P -x squashfs -x tmpfs -x devtmpfs
frequency: '360'
- format: 'full_command'
command: ss -nutal | awk '{print $1,$5,$6;}' | sort -b | column -t

View File

@ -183,7 +183,7 @@ wazuh_manager_config:
localfiles:
common:
- format: 'command'
command: 'df -P'
command: df -P -x squashfs -x tmpfs -x devtmpfs
frequency: '360'
- format: 'full_command'
command: ss -nutal | awk '{print $1,$5,$6;}' | sort -b | column -t