Forum Discussion
Aaron_Hackney_2
Nimbostratus
Apr 05, 2011b monitor command fails
This should be something easy, but I'm just not seeing it.
Note the following:
[root@xxxx-lbal1:Active] config b monitor MON-HEAD-1.1.1.1-gsk.my-domain.com list
monitor MON-HEAD-1.1.1.1-gsk.my-domain.com {
defaults from http
interval 30
timeout 150
dest *:http
recv "HTTP/(1.0|1.1) (200 OK|301 Moved Permanently|302 Found|302 Object moved)"
send "HEAD / HTTP/1.1\r\nHost: gsk.my-domain.com\r\nConnection: Close\r\n\r\n"
}
[root@xxxx-lbal1:Active] config
If I cut and paste this back in (With a different monitor name), whether with the \ trick or all as one line, I always get the following:
012e0010:3: The requested value (HTTP/(1.0|1.1) (200) is invalid ( | none) for 'recv' in 'monitor'
As I mentioned, this is an existing monitor, and I assume it got in the config via the GUI. I have a lot of these to create and I'd like to be able to do it via the b commands. Any ideas or solutions?
TIA!
-A
2 Replies
- Alscion_68122
Nimbostratus
Hi Aaron,
Did you try with tmsh command :
create ltm monitor http MON-HEAD-1.1.1.1-gsk.my-domain.com defaults-from http interval 30 timeout 50 recv "HTTP/(1.0|1.1) (200 OK|301 Moved Permanently|302 Found|302 Object moved)" send "HEAD / HTTP/1.1\r\nHost: gsk.my-domain.com\r\nConnection: Close\r\n\r\n"
It seems to be ok on my side.
BR.
NQ. - Aaron_Hackney_2
Nimbostratus
Thanks all for the kind replys.
I ended up doing the following at the suggestion of a co-worker:
vi /tmp/monitor.conf
Add my monitor to the text file.
b merge /tmp/monitor.conf
b save
All 100+ monitors were created successfully. Thanks again!
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
