1 ) { $args = $_SERVER["argv"]; array_shift($args); return call_user_func_array("ss_host_disk", $args); } function ss_host_disk($hostname, $snmp_community, $snmp_version, $host_id, $cmd, $arg1, $arg2 = "", $snmp_port = 161, $snmp_timeout = 500) { $oids = array( "total" => ".1.3.6.1.2.1.25.2.3.1.5", "used" => ".1.3.6.1.2.1.25.2.3.1.6", "failures" => ".1.3.6.1.2.1.25.2.3.1.7", "index" => ".1.3.6.1.2.1.25.2.3.1.1", "description" => ".1.3.6.1.2.1.25.2.3.1.3", "sau" => ".1.3.6.1.2.1.25.2.3.1.4" ); if ((func_num_args() == "10") || (func_num_args() == "7") || (func_num_args() == "6")) { if ($cmd == "index") { $return_arr = ss_host_disk_reindex(cacti_snmp_walk($hostname, $snmp_community, $oids["index"], $snmp_version, "", "", $snmp_port, $snmp_timeout)); for ($i=0;($i