Net-Snmp

Alles, was PHP betrifft, kann hier besprochen werden.

Net-Snmp

Postby darkho » 09. December 2008 18:36

Hi,

Is there a way to make snmp (or net-snmp) to work with XAMPP ?
darkho
 
Posts: 5
Joined: 09. December 2008 18:15

Re: Net-Snmp

Postby Wiedmann » 09. December 2008 18:58

Which XAMPP version?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Net-Snmp

Postby darkho » 09. December 2008 19:28

I've installed the newest version avalible for download - XAMPP 1.6.8
darkho
 
Posts: 5
Joined: 09. December 2008 18:15

Re: Net-Snmp

Postby Wiedmann » 09. December 2008 19:45

Which OS?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Net-Snmp

Postby darkho » 09. December 2008 19:50

Windows XP.
darkho
 
Posts: 5
Joined: 09. December 2008 18:15

Re: Net-Snmp

Postby Wiedmann » 09. December 2008 20:18

Like every other extension, you can enable this extension in the file "php.ini" (\xampp\apache\bin):
http://de.php.net/manual/en/install.win ... nsions.php

For this extension (php_snmp) you have also to copy some files:
http://de.php.net/manual/en/snmp.installation.php
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Net-Snmp

Postby darkho » 09. December 2008 21:21

I did all those things:
* enabled php_snmp.dll in php.ini
* run php with option --with-snmp (it created the directory where i copied the mibs)

But when i run a snmp function i still get:
Fatal error: Call to undefined function snmpget() in E:\workspace-php\PG\include\classes\test.php on line 6
darkho
 
Posts: 5
Joined: 09. December 2008 18:15

Re: Net-Snmp

Postby Wiedmann » 09. December 2008 21:33

run php with option --with-snmp

What's this? IMHO "--with-snmp" is only for compiling PHP?

* enabled php_snmp.dll in php.ini

- The correct "php.ini"?
- Something in Apaches' error.log?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Net-Snmp

Postby darkho » 09. December 2008 22:06

Yeah, You were right. Not the right php.ini. I found 5 different php.inis and it turns out it was in the 6th one ;]

Many thanx for Your help :)
darkho
 
Posts: 5
Joined: 09. December 2008 18:15


Return to PHP

Who is online

Users browsing this forum: No registered users and 1 guest