Add httpservice to icinga

Source: Internet
Author: User
Tags icinga
Add httpservice to icinga. http://www.2cto.com/os/201305/211092.html , But no publicservice is monitored. Nginx has been installed on the machine, listening to port 80, providing a static file server .... Add http service in icinga http://www.2cto.com/os/201305/211092.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 nginx provides access to the root directory [plain] location/{root/opt; index index.html;} and manually test it in the browser: http://10.112.18.131 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 host 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 icationication_interval 0; set> 0 if you want to be renotified} is good. 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.
Related Article

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.