Creating a new HTTP service
In this recipe, we'll create a new service to check on an existing host. Specifically, we'll check our sparta.naginet
server to see if it's responding to HTTP requests on the usual HTTP TCP port 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, then you may like to try the Creating a new network host recipe in this chapter.
After we've done this, not only will our host be checked for a PING response by check_command
, but Nagios Core will also run a periodic check to ensure that an HTTP service on that machine is responding to requests on ...
Get Nagios Core Administration Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.