Comments (11)
hi thanks for feedback, we will reproduce this and fix.
from hertzbeat.
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.
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.
我已经在nginx中加了上面配置,同时我自己访问都是ok的。然后我在hertbeat里配置nginx端口,使用hertbeat测试不通过。然后我查看了nginx的日志,发现请求的路径是/, 而不是/nginx-status。 同时我去查看hertbeat的日志,就是上面截图里的日志。
from hertzbeat.
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.
from hertzbeat.
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
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 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.
我已经在nginx中加了上面配置,同时我自己访问都是ok的。然后我在hertbeat里配置nginx端口,使用hertbeat测试不通过。然后我查看了nginx的日志,发现请求的路径是/, 而不是/nginx-status。 同时我去查看hertbeat的日志,就是上面截图里的日志。
hi, 我看nginx的监控模版,测试可用性的时候就是去访问的路径 /
, 其它监控指标会去访问路径 /nginx-status
from hertzbeat.
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.
同时,我的nginx配置只放开了/nginx-status路径,其他的/路径不允许访问
你这个原因应该是因为这个,测试可用性时访问了路径 /
,而你那边配置不允许访问
from hertzbeat.
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)
- [Task] Historical data storage supports promethus remote write and remote read protocols HOT 1
- [Task] Support graph database Apache HugeGraph monitoring
- [BUG] <title>page bug HOT 2
- [Task]Fix the problem of no data for springboot3 monitoring HOT 3
- [Question] Failed to enter the user name or password with a space HOT 2
- kafka监控[Question] <title> HOT 1
- [BUG] AlertTemplateUtilTest test successfully but output error
- [Task] Add issue comment action bot HOT 3
- [Task] Support relative time calculation expressions HOT 1
- [Task] Support Apache Pulsar monitoring
- [Task] Support case-insensitive search HOT 1
- [Task] Metric name display problem under http protocol prometheus parsing HOT 2
- [Question] Front-end `[email protected]` do not support node version 20.x and higher HOT 2
- [Question] web-app module how to run UT HOT 1
- [BUG] When a new threshold rule is added, the last data is displayed HOT 1
- [Task] Supports sending alarm notifications to designated personnel on DingTalk and Feishu HOT 1
- [BUG] Required field verification failed in message notification
- [Task] When the document is modified, add CI to verify whether the modification can pass the build HOT 2
- [BUG] <标签值删除后,数据库value不为null,导致告警通知异常> HOT 3
- [BUG] Username field too short HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hertzbeat.