how do I check the size of a directory and add "didnt change after time x"

85 Views Asked by At

I am monitoring witch Check-MK and i know how to get this skript as a service right into Check-MK.

I need just the skript: check the directory size and I want to get an alert if it didnt change after 1,5h

to check the folder size: folder_size=$(du -bs /backup/log |

after the "|" i want to check this with time am I right so far? thx for help <3

1

There are 1 best solutions below

1
Thorian93 On

You can write a simple local check, that does what you need, if Checkmk's built-in file age checks do not meet your requirement.