set up things so nagios in iad2 is mostly ready.

This commit is contained in:
Stephen Smoogen 2020-05-21 19:20:38 -04:00
parent 419140e4c5
commit 192637532c
32 changed files with 117 additions and 156 deletions

View file

@ -1,17 +0,0 @@
#!/bin/bash
CODE=$(snmpwalk -v 1 -c public tape01.phx2.fedoraproject.org 1.3.6.1.4.1.674.10893.2.102.2.1 | awk '{print $4}')
WARNING=4
if [ $CODE -gt $WARNING ]
then
echo "Tape: CRITICAL global status: $CODE"
exit 2
elif [ $CODE -eq $WARNING ]
then
echo "Tape: WARNING global status: $CODE"
exit 1
else
echo "Tape: OK global status: $CODE"
exit 0
fi