- 论坛徽章:
- 0
|
<html>
<body>
<?php
function get_server_info($host,$community,$objectid)
{
$a = snmpget($host,$community,$objectid);
$tmp = explode ( ":" , $a < 鸟哥的linux私房菜/span>);
if ( count ( $tmp ) > 1) {
$a = trim( $tmp [1]);
}
return $a ;
}
$host = "192.16.1.219" ;
$community = "public" ;
//获取$host服务器的1分钟均匀负载
$load1 = get_snmp_server( $host , $community , ".1.3.6.1.4.1.2021.10.1.3.1" );
?>
</body>
</html>
为什么提示:Parse error: syntax error, unexpected '>' in /usr/local/apache2/htdocs/info.php on line 7
请高手指点。谢谢。 |
|