Forum Discussion
nitass
May 04, 2013Employee
Is it possible to monitor multiple nodes using a reverse monitor?e.g.
i assume 200.200.200.101, .102 and .111 are server1, 3 and 6 respectively. anyway, the problem i found is this does not work when server is shutted down (i.e. port 80 is not listening). i am not sure if it is expected (actually, i think it is not).
[root@ve10:Active] config b pool foo list
pool foo {
monitor all myhttp
members {
200.200.200.101:80 {}
200.200.200.102:80 {}
200.200.200.111:80 {
monitor monitor101 and monitor102
}
}
}
[root@ve10:Active] config b monitor myhttp list
monitor myhttp {
defaults from http
interval 1
timeout 4
recv "UP"
send "GET /status.html HTTP/1.1\r\nHost: \r\nConnection: Close\r\n\r\n"
}
[root@ve10:Active] config b monitor monitor101 list
monitor monitor101 {
defaults from http
interval 1
timeout 4
dest 200.200.200.101:80
reverse
recv "UP"
send "GET /status.html HTTP/1.1\r\nHost: \r\nConnection: Close\r\n\r\n"
}
[root@ve10:Active] config b monitor monitor102 list
monitor monitor102 {
defaults from http
interval 1
timeout 4
dest 200.200.200.102:80
reverse
recv "UP"
send "GET /status.html HTTP/1.1\r\nHost: \r\nConnection: Close\r\n\r\n"
}
when .101 and .102 return "UP"
[root@ve10:Active] config curl http://200.200.200.101/status.html
UP
[root@ve10:Active] config curl http://200.200.200.102/status.html
UP
[root@ve10:Active] config b pool foo|grep -i pool\ member
+-> POOL MEMBER foo/200.200.200.101:80 active,up
+-> POOL MEMBER foo/200.200.200.102:80 active,up
+-> POOL MEMBER foo/200.200.200.111:80 inactive,down
when .101 and .102 do not return "UP" (i.e. they return "DOWN")
[root@ve10:Active] config curl http://200.200.200.101/status.html
DOWN
[root@ve10:Active] config curl http://200.200.200.102/status.html
DOWN
[root@ve10:Active] config b pool foo|grep -i pool\ member
+-> POOL MEMBER foo/200.200.200.101:80 inactive,down
+-> POOL MEMBER foo/200.200.200.102:80 inactive,down
+-> POOL MEMBER foo/200.200.200.111:80 active,up