added script for a new nagios check
This commit is contained in:
parent
4d2709ea51
commit
3abc518ec9
1 changed files with 2 additions and 2 deletions
4
global/overlay/usr/lib/nagios/plugins/check_eidas_metadata.age.sh
Normal file → Executable file
4
global/overlay/usr/lib/nagios/plugins/check_eidas_metadata.age.sh
Normal file → Executable file
|
@ -46,11 +46,11 @@ exp=$(date -d $dstr +%s)
|
|||
now=$(date +%s)
|
||||
|
||||
d=$(expr $exp - $now)
|
||||
if [ $d -ge $diff_crit ]; then
|
||||
if [ $d -lt $diff_crit ]; then
|
||||
echo "CRITICAL - metadata in $1 expires in $d seconds"
|
||||
echo $status
|
||||
exit $STATE_CRITICAL
|
||||
elif [ $d -ge $diff_warn ]; then
|
||||
elif [ $d -lt $diff_warn ]; then
|
||||
echo "WARNING - metadata in $1 expires in $d seconds"
|
||||
echo $status
|
||||
exit $STATE_WARNING
|
||||
|
|
Loading…
Add table
Reference in a new issue