Forum Discussion
Thuchapon_92030
Nimbostratus
Sep 20, 2012problem with partition
I need to create some profile that in non-common partition but use parent profile that in common partition but it's not working and show this error " 01070734:3: Configuration error: Invalid Devicegr...
Try replacing $HTTP::header value with [HTTP::header "datacenter"].
But what are you actually trying to accomplish? A pool and pool member selection has already been made by the time the HTTP_RESPONSE event has been triggered. Is the datacenter header inserted by the client in requests or the server in responses? What do you want to do when you see this header?
Aaron
- Simon_BlakelyNov 01, 2020
Employee
You need to understand the behaviour of External monitors and stdout
K7444: Requirements for external monitor output
-----
Custom external monitors must observe the following output requirements:
- If a server meets the external monitor criteria, the external monitor must send data to stdout.
- Note: Any data on stdout results in an Available status. The data does not have to be specific to the condition of the server.
- Note: Any standard output stops the script from running. To ensure that the necessary operations occur, F5 recommends that you clean up any temporary files, perform logging, etc., before the system performs the standard output operation.
- If a server fails to meet the external monitor criteria, the external monitor must not send any data to stdout.
-----
Looking at your script, you have
status=$? echo "$status"
This will terminate the script here, and mark the monitor as "Available".
If you need to log something from the script for development purposes, use *logger* to log into /var/log/ltm