macros for check_http
Posted: Tue Sep 26, 2017 10:56 am
Hi;
Is there a way I can define a single macro in the commands.cfg that can take all the arguments in the service definition.
define command {
command_name check_xi_service_http_content
command_line $USER1$/check_http -H $HOSTADDRESS$ --onredirect=follow -s "$ARG1$"
}
Instead of check_http -H $HOSTADDRESS$ --onredirect=follow -s "$ARG1$" --> can we have a single argument that takes all the options ?
Thanks
Krishna
Is there a way I can define a single macro in the commands.cfg that can take all the arguments in the service definition.
define command {
command_name check_xi_service_http_content
command_line $USER1$/check_http -H $HOSTADDRESS$ --onredirect=follow -s "$ARG1$"
}
Instead of check_http -H $HOSTADDRESS$ --onredirect=follow -s "$ARG1$" --> can we have a single argument that takes all the options ?
Thanks
Krishna