GithubHelp home page GithubHelp logo

Comments (11)

tomsun28 avatar tomsun28 commented on May 26, 2024

hi thanks for feedback, we will reproduce this and fix.

from hertzbeat.

tomsun28 avatar tomsun28 commented on May 26, 2024

hi, can not reproduce this, Please check whether nginx on your side has installed and enabled the http_stub_status_module module`

./configure --prefix=/usr/local/nginx --with-http_stub_status_module
make && make install

add config in nginx.conf

        location /nginx-status {
                stub_status     on;
                access_log      on;
                #allow 127.0.0.1;   #only allow requests from localhost
                #deny all;      #deny all other hosts
        }

from hertzbeat.

tomsun28 avatar tomsun28 commented on May 26, 2024

https://hertzbeat.com/docs/help/nginx/
sometime the nginx version not install the http_stub_status_module ngx_http_stub_status_module default, so we need to install it ourselves.

from hertzbeat.

xiaochonzi avatar xiaochonzi commented on May 26, 2024

我已经在nginx中加了上面配置,同时我自己访问都是ok的。然后我在hertbeat里配置nginx端口,使用hertbeat测试不通过。然后我查看了nginx的日志,发现请求的路径是/, 而不是/nginx-status。 同时我去查看hertbeat的日志,就是上面截图里的日志。

from hertzbeat.

hertzbeat avatar hertzbeat commented on May 26, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I have added the above configuration to nginx, and it is ok for me to access it myself. Then I configured the nginx port in hertbeat, but the test using hertbeat failed. Then I checked the nginx log and found that the requested path was /, not /nginx-status. At the same time, I checked the log of hertbeat, which is the log in the screenshot above.

from hertzbeat.

xiaochonzi avatar xiaochonzi commented on May 26, 2024
image 这是我在安装hertzbeat服务器进行curl测试,是没有问题的。 image 这是hertzbeat上nginx的配置 image 这是nginx测试时hertzbeat的配置。 同时,我的nginx配置只放开了/nginx-status路径,其他的/路径不允许访问。

from hertzbeat.

hertzbeat avatar hertzbeat commented on May 26, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


image This is when I installed the hertzbeat server for curl testing, and there was no problem. ![image](https://github.com/dromara/hertzbeat/assets/16606871/8d6c4236-7a50-4fe1-a696-0a09a70911b7) This is the configuration of nginx on hertzbeat image This is the configuration of hertzbeat during nginx testing. At the same time, my nginx configuration only allows the /nginx-status path, and other / paths do not allow access.

from hertzbeat.

tomsun28 avatar tomsun28 commented on May 26, 2024

我已经在nginx中加了上面配置,同时我自己访问都是ok的。然后我在hertbeat里配置nginx端口,使用hertbeat测试不通过。然后我查看了nginx的日志,发现请求的路径是/, 而不是/nginx-status。 同时我去查看hertbeat的日志,就是上面截图里的日志。

hi, 我看nginx的监控模版,测试可用性的时候就是去访问的路径 / , 其它监控指标会去访问路径 /nginx-status

from hertzbeat.

hertzbeat avatar hertzbeat commented on May 26, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I have added the above configuration to nginx, and it is ok for me to access it myself. Then I configured the nginx port in hertbeat, but the test using hertbeat failed. Then I checked the nginx log and found that the requested path was /, not /nginx-status. At the same time, I checked the log of hertbeat, which is the log in the screenshot above.

Hi, I looked at the nginx monitoring template. When testing availability, the access path is /. Other monitoring indicators will access the path /nginx-status.

from hertzbeat.

tomsun28 avatar tomsun28 commented on May 26, 2024

同时,我的nginx配置只放开了/nginx-status路径,其他的/路径不允许访问

你这个原因应该是因为这个,测试可用性时访问了路径 / ,而你那边配置不允许访问

from hertzbeat.

hertzbeat avatar hertzbeat commented on May 26, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


At the same time, my nginx configuration only allows the /nginx-status path, and other / paths do not allow access.

Your reason is because of this. When testing availability, you accessed the path /, but your configuration does not allow access.

from hertzbeat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.