Nagios 监控Squid 的脚本
#!/usr/local/bin/php -q
<?php
function check_squid($url,$proxy){
$http = curl_init();
curl_setopt($http,CURLOPT_PROXY,$proxy);
curl_setopt($http,CURLOPT_URL,$url);
$result = curl_exec($http);
curl_close($http);
return $result;
}
?>
相关推荐
furongwei 2020-04-20
丁丁爸爸的技术 2020-03-04
王继敏 2020-01-15
huangzonggui 2020-01-18
leodengzx 2020-01-14
hygbuaa 2019-12-16
baynkbtg 2019-12-15
vanturman 2019-12-11
wannagonna 2008-05-10
wozijisunfly 2007-12-14
miaoheping 2007-11-20
thone00 2007-04-19
boante 2007-04-18
lyonte 2008-04-19
weblym 2011-06-16
guoddoutlookcom 2011-05-21
SoarFly00 2011-03-30
attcat 2010-12-03
81971834 2010-09-30