skipif.inc 378 B

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