Add http service to icinga

Source: Internet
Author: User
Tags icinga

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.