1 --- cacti-0.8.6j/lib/ping.php 2007-01-17 19:23:10.000000000 -0500
2 +++ cacti-0.8.6j-patch/lib/ping.php 2007-01-20 19:45:55.015625000 -0500
5 /* poll sysUptime for status */
8 + /* getnext does not work in php versions less than 5 */
9 + if (version_compare("5", phpversion(), "<")) {
11 + }else{
\r $oid = ".1.3.6.1.2.1.1.3.0";
15 if ($retry_count >= $this->retries) {
16 $this->snmp_status = "down";
21 + /* getnext does not work in php versions less than 5 */
22 + if (version_compare("5", phpversion(), "<")) {
23 $output = cacti_snmp_getnext($this->host["hostname"],
24 $this->host["snmp_community"],
27 $this->host["snmp_port"],
28 $this->host["snmp_timeout"],
30 + }else{
\r $output = cacti_snmp_get($this->host["hostname"],
31 + $this->host["snmp_community"],
33 + $this->host["snmp_version"],
34 + $this->host["snmp_username"],
35 + $this->host["snmp_password"],
36 + $this->host["snmp_port"],
37 + $this->host["snmp_timeout"],
41 /* determine total time +- ~10% */
42 $this->time = $this->get_time($this->precision);