New command: check_cups

master
Emanuel Duss 2020-11-12 14:21:00 +01:00
parent 127738e927
commit 722f9bc605
1 changed files with 17 additions and 0 deletions

17
_gtfobins/check_cups.md Normal file
View File

@ -0,0 +1,17 @@
---
description: |
This is the `check_cups` 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_cups --extra-opts=@"$LFILE"
suid:
- code: |
LFILE=file_to_read
./check_cups --extra-opts=@"$LFILE"
sudo:
- code: |
LFILE=file_to_read
sudo check_cups --extra-opts=@"$LFILE"
---