nginx

Zabbix学习笔记

青春壹個敷衍的年華 提交于 2020-12-15 09:50:43
官方文档: https://www.zabbix.com/documentation/3.2/manual 监控介绍: 传感器: 数据采集 --> 数据存储 --> 数据展示 报警:采集到的数据超出阈值 时间序列数据 开源监控工具: SNMP: 工作模式:NMS端向agent端采集数据;agent端向NMS端报告数据;NMS端请求agnet端修改配置 安装:# yum install -y net-snmp 组件:MIB(management information base,管理信息库);SMI(MIB表示符号);SNMP协议 NMS可发起操作: Get, GetNext, Set, Trap(接收agent发来的数据) agent: Response UDP NMS:161 agent:162 IPMI,windows自带的一种免费接口。 SNMP协议之所以需要MIB库来对监控的数据进行描述,是因为协议本身很简单,没有对各项指标进行描述。而不同于SNMP,其他复杂一点的监控系统,比如nagios或者zabbix,他们协议自身就有定义过这些指标,所以zabbix没有类似MIB之类的东西。这样做的缺点在于,zabbix在传输监控数据的时候就会占用较大带宽,因为zabbix使用jason格式传输数据。但是在2.4版本之后,就会简化传输数据的内容,减少带宽消耗。 SNMP协议的版本:

GKE Ingress Resource with NGINX Load Balancer shows strange IP?

非 Y 不嫁゛ 提交于 2020-12-15 09:12:18
问题 I am running a cluster on GKE where the the ingress is configured to use NGINX like so: apiVersion: extensions/v1beta1 kind: Ingress metadata: name: my-ingress annotations: kubernetes.io/ingress.class: nginx nginx.ingress.kubernetes.io/ssl-redirect: "false" nginx.ingress.kubernetes.io/use-regex: "true" .... And I installed the NGINX load balancer on the CLI using Helm. The load balancer console only shows NGINX (and not the Google one), which is good, and my application definitely routes

GKE Ingress Resource with NGINX Load Balancer shows strange IP?

孤街浪徒 提交于 2020-12-15 09:04:07
问题 I am running a cluster on GKE where the the ingress is configured to use NGINX like so: apiVersion: extensions/v1beta1 kind: Ingress metadata: name: my-ingress annotations: kubernetes.io/ingress.class: nginx nginx.ingress.kubernetes.io/ssl-redirect: "false" nginx.ingress.kubernetes.io/use-regex: "true" .... And I installed the NGINX load balancer on the CLI using Helm. The load balancer console only shows NGINX (and not the Google one), which is good, and my application definitely routes

Shodan全世界在线设备搜索引擎

自作多情 提交于 2020-12-15 08:46:58
reproduction from https://danielmiessler.com/study/shodan/ What is Shodan? Shodan is a search engine for finding specific devices, and device types, that exist online. The most popular searches are for things like webcam, linksys, cisco, netgear, SCADA, etc. It works by scanning the entire Internet and parsing the banners that are returned by various devices. Using that information, Shodan can tell you things like what web server (and version) is most popular, or how many anonymous FTP servers exist in a particular location, and what make and model the device may be. Shodan is of particular

Set limit_req for specific location in Nginx Ingress

被刻印的时光 ゝ 提交于 2020-12-15 06:06:20
问题 I'm trying to setup rate limiting option limit_req for specific path in Kubernetes ingress-nginx to prevent brute-forcing authentication. I've defined limit_req_zone using ConfigMap: http-snippet: | limit_req_zone $the_real_ip zone=authentication_ratelimit:10m rate=1r/s; Next, I'm using annotation to add a custom location block: nginx.ingress.kubernetes.io/configuration-snippet: | location ~* "^/authenticate$" { limit_req zone=authentication_ratelimit nodelay; more_set_headers "x-test:

Set limit_req for specific location in Nginx Ingress

余生颓废 提交于 2020-12-15 06:03:49
问题 I'm trying to setup rate limiting option limit_req for specific path in Kubernetes ingress-nginx to prevent brute-forcing authentication. I've defined limit_req_zone using ConfigMap: http-snippet: | limit_req_zone $the_real_ip zone=authentication_ratelimit:10m rate=1r/s; Next, I'm using annotation to add a custom location block: nginx.ingress.kubernetes.io/configuration-snippet: | location ~* "^/authenticate$" { limit_req zone=authentication_ratelimit nodelay; more_set_headers "x-test:

Brew Install Httpd: Welcome to Nginx?

五迷三道 提交于 2020-12-15 05:29:56
问题 I'm trying to install the brew package httpd (apache). I'm so confused. Every time I do and navigate to http://localhost:8080 I get a big welcome screen that says "Welcome to Nginx." I don't understand. Am I running nginx and not apache? How could that be? I'm on macOS 10.15.6. I'm running pretty basic commands... brew install openldap libiconv sudo apachectl stop sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null brew install httpd sudo brew services

Brew Install Httpd: Welcome to Nginx?

回眸只為那壹抹淺笑 提交于 2020-12-15 05:29:08
问题 I'm trying to install the brew package httpd (apache). I'm so confused. Every time I do and navigate to http://localhost:8080 I get a big welcome screen that says "Welcome to Nginx." I don't understand. Am I running nginx and not apache? How could that be? I'm on macOS 10.15.6. I'm running pretty basic commands... brew install openldap libiconv sudo apachectl stop sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null brew install httpd sudo brew services

How setup subdomain in nginx?

我的未来我决定 提交于 2020-12-15 05:23:05
问题 I tried a few times do from the beginning but still, my subdomain doesn't work. I have ubuntu Nginx. I want to create a client-side and backend(subdomain) domain. The client-side config(work correctly): server { root /var/www/html/dist; # Add index.php to the list if you are using PHP index index.html; server_name hookahscope.com www.hookahscope.com; location ~ ^/(sitemap.xml) { root /var/www/html/public; } location / { try_files $uri /index.html; } listen [::]:443 ssl ipv6only=on; # managed

How setup subdomain in nginx?

血红的双手。 提交于 2020-12-15 05:22:27
问题 I tried a few times do from the beginning but still, my subdomain doesn't work. I have ubuntu Nginx. I want to create a client-side and backend(subdomain) domain. The client-side config(work correctly): server { root /var/www/html/dist; # Add index.php to the list if you are using PHP index index.html; server_name hookahscope.com www.hookahscope.com; location ~ ^/(sitemap.xml) { root /var/www/html/public; } location / { try_files $uri /index.html; } listen [::]:443 ssl ipv6only=on; # managed