In icinga, http service is added immediately after http://www.bkjia.com/ OS /201305/212.162.html. currently, 10.112.18.131 host is monitored, but no public service is monitored. Nginx has been installed on the machine, listening to port 80, and providing a static file server. Step 1: Make sure that nginx provides access to the root directory [plain] location/{root/opt; index index.html;} Manually test via a browser: http: // 10.112.18.htm. You can see the content of index.html. Step 2: Go to/usr/local/icinga/etc/object/linux. add a service [plain] File Edit Options Buffers Tools Minibuf Help define host {use linux-server; Inherit default values from a template host_name StaticFileServer; the name we're re giving to this host alias static filer server for 3D and jenksins server for CloudEngine; A longer name associated with the host address 10.112.18.131; IP address of the hos T contact_groups admins; Host groups this host is associated with} # check that web services are running define service {host_name StaticFileServer service_description HTTP check_command check_http use generic-service action_url http: // 10.112.18.131/ArcGIS/rest/services/SanFrancisco/3 DFeatureServer notification_interval 0; set> 0 if you want to be renotified. Test: [plain]/usr/local/icinga/bin/icinga-v/usr/local/icinga/etc/icinga. cfg then reload: [plain] service icinga reload now refresh the webpage: everything is OK. click the gear button on the Right of HTTP to open the URL of action_url.