In this recipe, we'll create a new service to check on an existing host. Specifically, we'll check our
sparta.example.net server to verify that it's responding to HTTP requests on the usual HTTP TCP port of
80. To do this, we'll be using a predefined command called
check_http, which in turn uses one of the standard set of Nagios Core plugins, also called
check_http. If you don't yet have a web server defined as a host in Nagios Core, you may like to try the recipe Creating a new network host in this chapter first.
After we've done this, not only will our host be checked for a PING response with its
check_command, but Nagios Core will also run a periodic check to ensure that a HTTP service on that machine is responding ...