
Chapter 4: Configuring the High-Level Network
4-152
user name and password for the new login, as well as which databases the
login is allowed to access. You must grant the test account access to the
database you specify in the EAV configuration.
Running user-added EAVs
You may add your own monitors to those contained in
/user/local/lib/pingers. For running these added programs, the monitor
template external is used. The executable program is specified as the value
of the attribute run. By default, the monitor looks for the run program in
/user/local/lib/pingers. If the program resides elsewhere, a fully qualified
path name must be entered. Any command line arguments to be used with
the program are entered as args values. For example, suppose the program
my_pinger is to be run with a -q option, so that it would be entered on the
command line as follows:
my_pinger -q
This monitor might be specified as follows:
b monitor custom ’{ use external run "my_pinger" args "-q" }’
Alternatively, you may pass arguments to the external monitor as
environment variables. For example, you might want to enter this command:
/var/my_pinger /www/test_files/first_test
This could be specified in the conventional manner:
b monitor custom ’{ use external run "/var/my_pinger" args "www/test_files/first_test" }’
It could also be specified in this way:
b monitor custom ’{ use external run "/var/my_pinger" DIRECTORY "www/test_files" FILE
"first_test" }’
This defines the monitor as shown in Figure 4.70.
This frees the monitor definition from the rigidity of a strictly ordered
command line entry. The arguments are now order-independent and may be
used or ignored by the external executable.
Showing, disabling, and deleting monitors
You can show, disable, and delete monitors using the Configuration utility
or from the command line. Deleting a monitor removes it from the
/config/bigip.conf file. Disabling a monitor instance simply removes that
instance from service until it is re-enabled. Disabling a monitor (which can
be performed only at the command line) disables all instances of the
monitor. All monitor instances are enabled by default.
monitor custom {
use external
run "/var/my_pinger"
DIRECTORY "www/test_files"
FILE "first_test" }
Figure 4.70 Monitor template for an external monitor
Kommentare zu diesen Handbüchern