1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2026-02-06 07:05:17 +01:00

check_dataprotector added

This commit is contained in:
Páll Guðjón Sigurðsson
2010-03-01 22:09:31 +00:00
parent 36e96ec1d0
commit 7e0aef04d5
7 changed files with 206 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#!/bin/sh
WARNING=5
CRITICAL=2
/opt/omni/bin/omnirpt -tab -report obj_lastbackup -days -$WARNING | grep -w IDB > /dev/null
RESULT=$?
if [ $RESULT -gt 0 ]; then
echo "Warning, Last Dataprotector backup is more than $WARNING days old"
exit 1
fi
echo "Last Dataprotector backup is less than $WARNING days old"