游客发表

Linux下监控网页-Nagios(图)

发帖时间:2025-11-04 08:25:42

Linux下监控网页-Nagios(图)
复制  Usage: check_http -H | -I [-u ] [-p ]     [-w ] [-c ] [-t ] [-L]     [-a auth] [-f ] [-e ]     [-s string] [-l] [-r | -R ] [-P string]     [-m :] [-4|-6] [-N] [-M ] [-A string]     [-k string] [-S] [-C ] [-T ]     NOTE: One or both of -H and -I must be specified     Options:     -h,监控 --help     Print detailed help screen     -V, --version     Print version information     -H, --hostname=ADDRESS   Host name argument for servers using host headers (virtual host)     Append a port to include it in the header (eg: example.com:5000)     -I, --IP-address=ADDRESS   IP address or name (use numeric address if possible to bypass DNS lookup).     -p, --port=INTEGER   Port number (default: 80)     -4, --use-ipv4     Use IPv4 connection     -6, --use-ipv6     Use IPv6 connection     -S, --ssl     Connect via SSL. Port defaults to 443     -C, --certificate=INTEGER   Minimum number of days a certificate has to be valid. Port defaults to 443     (when this option is used the url is not checked.)     -e, --expect=STRING   String to expect in first (status) line of server response (default:     HTTP/1.)     If specified skips all other status line logic (ex: 3xx, 4xx, 5xx processing)     -s, --string=STRING   String to expect in the content     -u, --url=PATH   URL to GET or POST (default: /)     -P, --post=STRING   URL encoded http POST data     -N, --no-body     Don’t wait for document body: stop reading after headers.     (Note that this still does an HTTP GET or POST, not a HEAD.)     -M, --max-age=SECONDS   Warn if document is more than SECONDS old. the number can also be of     the form "10m" for minutes, "10h" for hours, or "10d" for days.     -T, --content-type=STRING   specify Content-Type header media type when POSTing     -l, --linespan     Allow regex to span newlines (must precede -r or -R)     -r, --regex, --ereg=STRING   Search page for regex STRING     -R, --eregi=STRING   Search page for case-insensitive regex STRING     --invert-regex     Return CRITICAL if found, OK if not     -a, --authorization=AUTH_PAIR   Username:password on sites with basic authentication     -A, --useragent=STRING   String to be sent in http header as "User Agent"     -k, --header=STRING   Any other tags to be sent in http header. Use multiple times for additional headers     -L, --link     Wrap output in HTML link (obsoleted by urlize)     -f, --onredirect=     How to handle redirected pages     -m, --pagesize=INTEGER<:INTEGER>   Minimum page size required (bytes) : Maximum page size required (bytes)     -w, --warning=DOUBLE   Response time to result in warning status (seconds)     -c, --critical=DOUBLE   Response time to result in critical status (seconds)     -t, --timeout=INTEGER   Seconds before connection times out (default: 10)     -v, --verbose     Show details for command-line debugging (Nagios may truncate output)   1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.35.36.37.38.39.40.41.42.43.44.45.46.47.48.49.50.51.52.53.54.55.56.57.58.59.60.61.62.63.64.65.66.67.68.69.70.71.72.73.74.75.76.77.78.79.80.81.82.83.84.85.86.87.88.89.90.91.92.93.94.95.96.97.98.99.100.101.102.103.104.105.106.107.108.109.110.111.112.113.114.115.116.117.118.119.120.121.122.123.124.125.126.127.128.129.130.131.132.133.134.135.136.137.138.139.140.141.142.143.144.145.146.147.148.

    热门排行

    友情链接