在nagios的几个触发参数里会有w、d、u、f这样的调用方式。具体每个字母代表的意思如下: 1host_notification_options: 2d = notify on DOWN host states, 3u = notify on UNREACHABLE host states 4r = notify on host recoveries (UP states) 5f = notify when the host starts and stops flapping 6s = send notifications when host or service scheduled downtime starts and ends 7n (none) as an option, the contact will not receive any type of host notifications. 8service_notification_options: 9w = notify on WARNING service……
I was noticing my nginx log file fill up with requests for a site who had misconfigured their DNS. Normally I wouldn’t worry about it, but it became quickly evident that the domain was used for an image server for a parent site. There were thousands of RPS that I really didn’t need.
All I did was add the following expression to my nginx.conf file.
1Server { 2 ...snip... 3 ## Deny illegal Host headers 4 if ($host !~* ^(mydomain.com|www.mydomain.com)$ ) { 5 return 444; 6 } 7 ...snip... 8} Now if you look at the code, you may be thinking “But Jared, what is a 444 error? That is totally not valid bro.” And indeed, you are correct. But here is what the nginx documentation has to say about it.
_“Furthermore, nonstandard code 444 closes the connection without sending any headers.……