How can values from a host be used in a rule?

The variables you can use for active checks like HTTP are all the classic Nagios environment variables.
If you look in the column “Service Checks” of this page https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/macrolist.html
You see all macros available inside the classic Nagios core.