snmpd and php script

GET THE HANG [ SNMPD AND PHP ]

$ 4.2.36 28 528---> php snmp.php
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/suhosin.so' - /usr/lib/php5/20100525/suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 0
STRING: "Linux debian 3.2.0-3-amd64 #1 SMP Mon Jul 23 02:45:17 UTC 2012 x86_64"
OID: iso.3.6.1.4.1.8072.3.2.10
Timeticks: (2932) 0:00:29.32
STRING: "Me "
STRING: "debian"
STRING: "Sitting on the Dock of the Bay"
INTEGER: 72
Timeticks: (10) 0:00:00.10
OID: iso.3.6.1.6.3.10.3.1.1
OID: iso.3.6.1.6.3.11.3.1.1
OID: iso.3.6.1.6.3.15.2.1.1
OID: iso.3.6.1.6.3.1
OID: iso.3.6.1.2.1.49
OID: iso.3.6.1.2.1.4
OID: iso.3.6.1.2.1.50
OID: iso.3.6.1.6.3.16.2.2.1
STRING: "The SNMP Management Architecture MIB."
STRING: "The MIB for Message Processing and Dispatching."
STRING: "The management information definitions for the SNMP User-based Security Model."
STRING: "The MIB module for SNMPv2 entities"
STRING: "The MIB module for managing TCP implementations"
STRING: "The MIB module for managing IP and ICMP implementations"
STRING: "The MIB module for managing UDP implementations"
STRING: "View-based Access Control Model for SNMP."
Timeticks: (10) 0:00:00.10
Timeticks: (10) 0:00:00.10
Timeticks: (10) 0:00:00.10
Timeticks: (10) 0:00:00.10
Timeticks: (10) 0:00:00.10
Timeticks: (10) 0:00:00.10
Timeticks: (10) 0:00:00.10
Timeticks: (10) 0:00:00.10
Timeticks: (2758738) 7:39:47.38
Hex-STRING: 07 DC 0A 1A 02 06 23 00 2B 05 1E
INTEGER: 1536
STRING: "BOOT_IMAGE=/boot/vmlinuz-3.2.0-3-amd64 root=UUID=26cca090-8a72-4443-859f-7a67b7188357 ro printk.time=1 initcall_debug quiet
"
Gauge32: 2
Gauge32: 145
INTEGER: 0
$ 4.2.36 29 529--->

CODE RELATED


$a = snmp2_walk("127.0.0.1", "public", "");

foreach ($a as $val) {
    echo "$valn";
}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s