PDA

View Full Version : How to Install SNMP support in PHP



nick1
April 7th, 2006, 02:12 AM
Greetings,

I hope I have the right forum. I'm a bit of a newbie to Linux in general.
I have Apache and PHP installed on my Ubuntu 5.10 computer.
I'm trying to use the snmpwalk function in PHP5.
When I try to run my simple snmpwalk script, I receive the following error:


Fatal error: Call to undefined function: snmpwalk() in <filename_here>

I've looked around on google and it appears that PHP doesn't come with support for SNMP by default. How do I go about adding SNMP support to PHP? Like I said, I'm a bit of a newbie to Linux so I don't know much of anything about compiling things, if that's what it takes to gain SNMP support in PHP.

Any help would be much appreciated. Thanks,

Nick

John.Michael.Kane
April 7th, 2006, 02:35 AM
http://us3.php.net/snmp
http://phpbuilder.com/manual/en/function.snmpwalk.php
http://www.enseirb.fr/~kadionik/embedded/snmp/english/net-snmp_english.html

nick1
April 7th, 2006, 03:43 AM
I found a package in Synaptic called "php5-snmp." Description reads: SNMP module for php5. I installed it and rebooted the server. Seems to be working so far.

Nick