Disable server for maintenance in Big Brother
So you have a planned outage, and you don’t want the damn thing setting off alarms while it’s down? Easy enough. If you prefer to hold on to the entry in your bb-hosts file for later testing then this is for you. Simply enable this feature by editing /usr/local/bb/etc/bbdef-server.sh. Search the file for RUNOPTS. Around this line you will see other options we can add to RUNOPTS for different features:
RUNOPTS=”DATAMSG EMBEDHTML ENABLE_DISABLE”
export RUNOPTS
You can see that I already have test disabling, enabled here, by including ENABLE_DISABLE to the RUNOPTS line. Save and close and restart BB. Now that it's done, perform the following to disable a single test:
/usr/local/bb/bin/bb 192.168.0.10(your BB server IP) “disable server.mycompany.com.conn 2h”
This will disable the connection ping test for 2 hours. The following will disable all tests on the same server for 24 days:
/usr/local/bb/bin/bb 192.168.0.10 “disable server.mycompany.com* 24d”
To re-enable the server after repairs or maintenance are done:
/usr/local/bb/bin/bb 192.168.0.10 “enable server.mycompany.com*”
