1<?php 2extension_loaded('snmp') or die('skip snmp extension not available in this build'); 3 4require_once (dirname(__FILE__).'/snmp_include.inc'); 5 6//test server is available 7// this require snmpget to work ... 8//snmpget ( string $hostname , string $community , 9//string $object_id [, int $timeout [, int $retries ]] ) 10 11if (snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout) === false) 12 die('NO SNMPD on this host or community invalid'); 13