- 论坛徽章:
- 0
|
回复 #1 bun 的帖子
Nagios官方的哦plugins就可以做到:
1. http
[cl@nagios libexec]$ ./check_http -H www.baidu.com -s baidu
HTTP OK HTTP/1.1 200 OK - 0.703 second response time |time=0.703169s;;;0.000000 size=3883B;;;0
[cl@nagios libexec]$ ./check_http -H www.baidu.com -s sohu
HTTP CRITICAL - string not found|time=0.070211s;;;0.000000 size=3883B;;;0
[cl@nagios libexec]$
2. dns
[cl@nagios libexec]$ ./check_dns -H www.baidu.com -a 119.75.213.61,119.75.216.30
DNS OK: 0.005 seconds response time. www.baidu.com returns 119.75.213.61,119.75.216.30|time=0.004786s;;;0.000000
[cl@nagios libexec]$ ./check_dns -H www.baidu.com -a 202.106.0.20
DNS CRITICAL - expected '202.106.0.20' but got '119.75.216.30,119.75.213.61' |
|