put in the first run at new nagios configs
This commit is contained in:
parent
a1957d29d4
commit
8cf72ff116
310 changed files with 13255 additions and 26 deletions
17
roles/nagios_server/files/nagios/plugins/check_tape
Normal file
17
roles/nagios_server/files/nagios/plugins/check_tape
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue