diff --git a/overview.html b/overview.html deleted file mode 100644 index e69de29..0000000 diff --git a/roles/nrpe/files/nrpe_local.cfg b/roles/nrpe/files/nrpe_local.cfg index 72f665f..8165ae2 100644 --- a/roles/nrpe/files/nrpe_local.cfg +++ b/roles/nrpe/files/nrpe_local.cfg @@ -2,9 +2,9 @@ # Do any local nrpe configuration here ###################################### command[check_test_file_100M]=/usr/bin/sudo /usr/lib/nagios/plugins/check_file_age -w 86400 -c 1570000 -W 50000000 -C 10 -f '/home/pi/Documents/smb/test_file_100M' -command[check_test_file_200M]=/usr/bin/sudo /usr/lib/nagios/plugins/check_file_age -w 86400 -c 1570000 -W 100000000 -C 10 -f '/home/pi/Documents/smb/test_file_200M' +command[check_test_file_200M]=/usr/bin/sudo /usr/lib/nagios/plugins/check_file_age -w 432600 -c 1570000 -W 100000000 -C 10 -f '/home/pi/Documents/smb/test_file_200M' command[check_test_file_500M]=/usr/bin/sudo /usr/lib/nagios/plugins/check_file_age -w 432600 -c 1570000 -W 250000000 -C 10 -f '/home/pi/Documents/smb/test_file_500M' -command[check_test_file_1G]=/usr/bin/sudo /usr/lib/nagios/plugins/check_file_age -w 432600 -c 1570000 -W 500000000 -C 10 -f '/home/pi/Documents/smb/test_file_1G' +command[check_test_file_50M]=/usr/bin/sudo /usr/lib/nagios/plugins/check_file_age -w 86400 -c 1570000 -W 40000000 -C 10 -f '/home/pi/Documents/smb/test_file_50M' command[check_root]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p / command[check_mem]=/usr/lib/nagios/plugins/check_mem.pl -u -C -w 85 -c 95 command[check_swap]=/usr/lib/nagios/plugins/check_swap -w 30% -c 10% diff --git a/roles/smbclient/files/genfiles.sh b/roles/smbclient/files/genfiles.sh new file mode 100644 index 0000000..d7742bf --- /dev/null +++ b/roles/smbclient/files/genfiles.sh @@ -0,0 +1,7 @@ +#!/bin/bash +head -c 50M < /dev/urandom > /media/share/test_file_50M +head -c 100M < /dev/urandom > /media/share/test_file_100M +head -c 200M < /dev/urandom > /media/share/test_file_200M +head -c 500M < /dev/urandom > /media/share/test_file_500M +chmod 777 /media/share/test_file* + diff --git a/roles/smbclient/files/smb-session.sh b/roles/smbclient/files/smb-session.sh index 69cbfe5..32a93c2 100755 --- a/roles/smbclient/files/smb-session.sh +++ b/roles/smbclient/files/smb-session.sh @@ -1,10 +1,10 @@ #! /bin/bash file=$(i=$RANDOM -if [ $i -lt 16384 ]; then echo 'test_file_100M' -elif [ $i -lt 29490 ]; then echo 'test_file_200M' -elif [ $i -gt 31129 ]; then echo 'test_file_1G' -else echo 'test_file_500M'; +if [ $i -lt 20000 ]; then echo 'test_file_50M' +elif [ $i -lt 29490 ]; then echo 'test_file_100M' +elif [ $i -gt 31129 ]; then echo 'test_file_500M' +else echo 'test_file_200M'; fi) cd ~/Documents/smb