Editing sgagent.conf
You define attributes for the entire Server Pool in the sgagent.conf file.
The file common to all Server Pool members is called sgagent.conf. In this file, you define attributes for the entire Server Pool. In most cases, the Server Pool members are similar in configuration and function, so the tests performed on each member are also similar. Usually, the same sgagent.conf file is used on all servers. The sgagent.conf file contains two sections: the statement section and the test section.
An example sgagent.conf file
# ---------------------------START OF STATEMENT SECTION
begin host server1
config boot-delay 5:00 # set the config delay on the slow member
end
begin host not server1
config boot-delay 20 # 20s config delay on other members
end
config alert-interval 1:00:00
config startup-script /etc/scripts/startup.sh
# Monitor one minute load average and set alert threshold at 5
load-index 500 load-average-1
# ---------------------------START OF TEST SECTION
# Tests
test "webster listening"
interval 2:00
action exclude
recovery 10:00
command portlistening 80 %hostip%
# Check that this member's
# port 80 is listening.
test "server1 running baz"
interval 10:00
action exclude
host server1
script /etc/init.d/baz start
command servicerunning baz
test "external1"
interval 10:00
action alert
command external 3 700 /usr/lib/webster/test.sh 203.0.113.21