monitor disk usage of ext4 partitions

This commit is contained in:
Pim Kunis 2023-08-10 23:25:15 +02:00
parent 5eb26510f6
commit 6546fc8fb7
2 changed files with 18 additions and 0 deletions

View file

@ -95,6 +95,12 @@
Command free -m | tail -2 | tr '\n' ' '
Interval_Sec 1
[INPUT]
Name exec
Tag diskfree
Command df -lt ext4 | tail -n +2
Interval_Sec 600
[OUTPUT]
Name forward
Match *
@ -107,6 +113,12 @@
Key_Name exec
Parser free
[FILTER]
Name parser
Match diskfree
Key_Name exec
Parser diskfree
[FILTER]
Name record_modifier
Match *

View file

@ -4,3 +4,9 @@
Format regex
Regex ^Mem:\s+(?<mem_total>\d+)\s+(?<mem_used>\d+)\s+(?<mem_free>\d+)\s+(?<mem_shared>\d+)\s+(?<mem_buff_cache>\d+)\s+(?<mem_available>\d+) Swap:\s+(?<swap_total>\d+)\s+(?<swap_used>\d+)\s+(?<swap_free>\d+)
Types mem_total:integer mem_used:integer mem_free:integer mem_shared:integer mem_buff_cache:integer mem_available:integer swap_total:integer swap_used:integer
[PARSER]
Name diskfree
Format regex
Regex ^\S+\s+\d+\s+(?<disk_used>\d+)\s+(?<disk_available>\d+)\s+(?<disk_percentage>\d+)%\s+(?<disk_mount>\S+)
Types disk_used:integer disk_available:integer disk_percentage:integer disk_mount:string