goss-org / goss

Quick and Easy server testing/validation
https://goss.rocks
Apache License 2.0
5.58k stars 470 forks source link

Disk space alarm #753

Closed keithy closed 1 year ago

keithy commented 2 years ago

Suggesting an official and improved version of something like this:

         command:
            "disk_space_alert(>=95%)":
               exit-status: 0
               exec: "df --exclude-type=tmpfs --exclude-type=devtmpfs --local"
               stdout: ["!/\\s(100|9[5-9])%/"] # >= 95%
               stderr: []
               timeout: 3000 #ms
               skip: false    
aelsabbahy commented 2 years ago

Hello Keithy,

Thanks for the suggestion, I believe this feature already exists in Goss. Please let me know if I misunderstood.

https://github.com/aelsabbahy/goss/blob/master/integration-tests/goss/goss-shared.yaml#L170-L175

aelsabbahy commented 1 year ago

I'm going to close this out based on my last comment. If I am mistaken, please feel free to open a new issue.