Fatal Error Call To Undefined Function Snmpwalk
Contents |
Call to undefined function: snmpwalk() in C:\Program Files\Apache Group\ The SitePoint Forums have moved. You can now find them here. This forum is now closed to new posts, but you can browse
Fatal Error Call To Undefined Function Snmpget
existing content. You can find out more information about the move and how to php call to undefined function snmpget open a new account (if necessary) here. If you get stuck you can get support by emailing forums@sitepoint.com If this is your
Php Snmp
first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. SitePoint Sponsor User Tag List Results 1 to 6 of 6 Thread: Fatal error: Call to undefined function: snmpwalk() in C:\Program Files\Apache Group\ Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Oct 8, 2004,21:44 #1 ifilxh View Profile View Forum Posts SitePoint Member Join Date Oct 2004 Location melbourne Posts 3 Mentioned 0 Post(s) Tagged 0 Thread(s) Fatal error: Call to undefined function: snmpwalk() in C:\Program Files\Apache Group\ What should I do to make my php working. Much appreciated. Oct 8, 2004,21:58 #2 shenkong View Profile View Forum Posts SitePoint Zealot Join Date Sep 2004 Location China Posts 132 Mentioned 0 Post(s) Tagged 0 Thread(s) modify your php.ini file ;extension=php_snmp.dll to extension=php_snmp.dll restart server My website: http://www.openphp.cn Oct 8, 2004,22:16 #3 ifilxh View Profile View Forum Posts SitePoint Member Join Date Oct 2004 Location melbourne Posts 3 Mentioned 0 Post(s) Tagged 0 Thread(s) Thanks, shenkong I have modified the php.ini file, but the message is still the same Fatal error: Call to undefined function: snmpwalk() in C:\Program Files\Apache Group\Apache2\htdocs\phpinfo.php on line 2 Somebody told me that it means the --with-snmp part of ./configure didn't really work. But i don't know how to run ./configure. Could you give some advice? Oct 8, 2004,22:47 #4 shenkong View Profile View Forum Posts SitePoint Zealot Join Date Sep 2004 Location China Posts 132 Mentioned 0 Post(s) Tagged 0 Thread(s) use *nuix ? you need to reinstall PHP .. see the PHP manual I use windows , sorry , i can't help y
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > PHP Fatal error: Call to undefined function snmpwalk() Want to Advertise Here? Solved PHP Fatal error: Call to undefined function http://www.sitepoint.com/forums/showthread.php?201202-Fatal-error-Call-to-undefined-function-snmpwalk()-in-C-Program-Files-Apache-Group snmpwalk() Posted on 2006-08-14 PHP 1 Verified Solution 3 Comments 2,198 Views Last Modified: 2012-05-05 Starting out playing with the PHPCLI and snmp functionality. --Running php 5.0.4, phpinfo displays '--enable-ucd-snmp-hack' '. --Downloaded net-snmp 5.3.1 rpm and upgraded via rpm -u as older version already existed on system. Wrote short script to just test things out... ---------------------------------------------------- #!/usr/bin/php https://www.experts-exchange.com/questions/21953976/PHP-Fatal-error-Call-to-undefined-function-snmpwalk.html $sysname = snmpwalk('hostname', 'community', 'system.sysName.0'); print '$sysname'; ?> ---------------------------------------------- On running script I get the above error.....kinda stuck...any ideas?? 0 Question by:lourite Facebook Twitter LinkedIn Google LVL 8 Best Solution byRytmis You need to compile or install the snmp extension for PHP as well (eg. sudo apt-get install php5-snmp on Debian/Ubuntu, not sure about RH/Fedora). Go to Solution 3 Comments LVL 8 Overall: Level 8 PHP 5 Message Accepted Solution by:Rytmis2006-08-14 You need to compile or install the snmp extension for PHP as well (eg. sudo apt-get install php5-snmp on Debian/Ubuntu, not sure about RH/Fedora). 0 Message Author Comment by:lourite2006-08-15 Thanks......that got me one step closer...BTW on Fedora it's yum install php-snmp.i386 Ok now I am getting this error.... ----------------------- No log handling enabled - turning on stderr logging Cannot find module (LM-SENSORS-MIB): At line 1 in (none) $sysname ---------------------- What else do I need to do?? I am doubling the points sense this has turned into 2 questions...or should I post a new question?? 0 LVL 8 Overall:
question and get tips & solutions from a community of 418,550 IT Pros & Developers. It's quick & easy. Call to undefined function snmpget() P: 4 achalsaraiya https://bytes.com/topic/php/answers/883917-call-undefined-function-snmpget I am using "PHP 5.2.4 (cli) (built: Nov 17 2009 16:22:15)" build, apache 2. when i am executing the php script with snmpget() function it works fine, while when i ran it through web it gives "Call to undefined function snmpget()" error. Mar 22 '10 #1 Post Reply Share this Question 3 Replies Expert 5K+ P: 5,058 Atli Hey. The server that is giving you that error call to most likely doesn't have the SNMP extension installed. To use the function you need to install the extension. See the manual for installation instructions. If you are using a hosting service, you will have to ask your host to install this. Mar 22 '10 #2 reply P: 4 achalsaraiya Hi Atli, thanks for quick reply, in my machine we have installed using rpm, so i installed one call to undefined rpm relevent to snmp and php, then also it gave same problem as before, it runs fine when php script is executed from terminal, but gives call to undefine function snmpget() when it is run from browser its web.. So what i belive that snmp package of php is running fine, but is it possible that the problem is between interface with apache and php, or like apache has not appropriate rights to call this function? Thanks ones gain for your reply... Mar 23 '10 #3 reply P: 4 achalsaraiya Hi, My problem is resolved, i had build php using new source code and build using following parameters ./configure --enable-ucd-snmp-hack --with-openssl=/usr --with-snmp and my problem got solve, previously i was building only with ./configure --enable-ucd-snmp-hack --with-openssl=/usr Thanks Atli for your quick response.. Mar 25 '10 #4 reply Message Cancel Changes Post your reply Join Now >> Sign in to post your reply or Sign up for a free account. Similar topics Replace HP OV SNMP call to Perl SNMP API Function call and type promotion call of variadic function call function with inadequate args (via function pointer) regarding pointer operation in a printf function call call to undefined functio