Nagios monitors Windows Server Apache services

Source: Internet
Author: User

  1. The monitor needs to use the check_apachestatus.pl plugin
    Plug - ins:
    https://exchange.nagios.org/directory/Tutorials/Other-Tutorials-And-HOWTOs/ Monitoring-apache-session-load-with-nagios-through-mod_status/details

  2. Need to modify Apache configuration file on Windows Server

    LoadModule Status_module modules/mod_status.so

    <ifmodule mod_status.c>
    <Location/server-status>
    SetHandler Server-status
    Order Deny,allow
    Deny from all
    Allow from nagios_server_ip
    </Location>
    Extendedstatus on
    </IfModule>

  3. Restart Apache on the Windows Server, go back to the Nagios monitor and go to the plugins directory
    ./check_apachestatus.pl-h windows_server_ip
  4. Back to the primary server definition execution command
    define command{        command_name    check_apache        command_line    $USER 1$"$ hostaddress$"}

    define service{        use                     generic-service        host_name               Windows        service_ Description     Apache        check_command           check_apache        }

Nagios monitors Windows Server Apache services

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.