Skip to content

Instantly share code, notes, and snippets.

@alchemyx
alchemyx / check_tftp.sh
Created January 7, 2021 21:08
Simple Nagios check for tftp
#!/bin/sh
# https://github.com/alchemyx
host=127.0.0.1
# Try to upload myself
cd $(dirname $0)
filename=$(basename $0)
output=$(/usr/bin/tftp $host -c put $filename)
retcode=$?