1 ) { $args = $_SERVER["argv"]; array_shift($args); return call_user_func_array("ss_host_cpu", $args); } function ss_host_cpu($hostname, $snmp_community, $snmp_version, $cmd, $arg1, $arg2 = "", $snmp_port = 161, $snmp_timeout = 500) { $oids = array( "index" => ".1.3.6.1.2.1.25.3.3.1", "usage" => ".1.3.6.1.2.1.25.3.3.1" ); if (($cmd == "index") && (func_num_args() == "4")) { $arr_index = ss_host_cpu_get_indexes($hostname, $snmp_community, $snmp_version, $snmp_port, $snmp_timeout); for ($i=0;($i