Hi OK, I've fixed my problem with PHP not compiling, it was an issue with 'elfutils-devel', I've done my make and make install with no errors. How can I verify if JFFNMS is using the new, compiled PHP, or the one I installed originally via RPM? Thanks very much
-----Original Message----- From: Anders Karlsson (X:et) [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 22, 2004 10:35 AM To: Jason Humes Subject: Re: [jffnms-users] 64 bit snmp counters -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sounds like a linking problem... libsnmp is missing a reference to AES_cfb128_encrypt ( Openssl ? libcrypto ) I suggest google... Redhat has always had it quirks.. search around for tips building php on redhat... //Anders On Tuesday 22 June 2004 16.29, you wrote: > Ok > I've been working through this compile of PHP...here is my configure > string so far... > > > ./configure --prefix=/var/www/html > --with-config-file-path=/var/www/php > --with-sockets=/root/downloads/php-4.3.7/ext/sockets --with-mysql=/usr > --with-zlib-dir=/root/downloads/php-4.3.7/ext/zlib --with-gd > --with-snmp=/usr/lib --enable-ucd-snmp-hack > > I've been trying all sorts of combinations, but it seems to fail with > an snmp sanity check error and says to check config.log and this is > the bottom of that file... > > > /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libsnmp.so: > undefined reference to `AES_cfb128_encrypt' > collect2: ld returned 1 exit status > configure: failed program was: > #line 76877 "configure" > #include "confdefs.h" > /* Override any gcc2 internal prototype to avoid an error. */ > /* We use char because int might match the return type of a gcc2 > builtin and then its argument prototype would still apply. */ > char init_snmp(); > > int main() { > init_snmp() > ; return 0; } > ~ > > > Does anyone have any hints as to what I may be doing wrong. > > -----Original Message----- > From: Anders Karlsson (X:et) > [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 22, 2004 8:57 AM > To: Jason Humes > Subject: Re: [jffnms-users] 64 bit snmp counters > > > you should use the patch command, guessing something in line widht: > > cd <phpsr>/ext/snmp > patch -p0 < <path to patch file> > > //anders > > On Tuesday 22 June 2004 14.58, you wrote: > > How do I apply this patch to PHP, I'm not quite sure how this is > > done. I've downloaded the most recent PHP source and untared > > it...Maybe you > > could > > > send me the commandline on how to compile and install PHP properly > > too. Thanks again. > > > > -----Original Message----- > > From: Anders Karlsson (X:et) > > [mailto:[EMAIL PROTECTED] > > Sent: Monday, June 21, 2004 4:47 PM > > To: Jason Humes > > Subject: Re: [jffnms-users] 64 bit snmp counters > > > > > > Hi Jason, > > sorry for late response, I have been tied up into other projects. > > > > I'm attaching a diff file for php to enable it to use version 2c if > > specified. > > > > I'm also sending snipets of the jffnms code that you need to change. > > > > You will need to change in lib/api.network.inc.php > > and in engine/poller/snmp_counter > > > > > > api.network.inc.php: > > function snmp_get($host,$comm,$oid) { > > > > $aux = @snmpget($host,$comm,$oid,(1000000*1),2,"2c"); > > if ( ! $aux || stristr($aux,"No Such") ) { > > $aux = @snmpget($host,$comm,$oid,(1000000*1),2); > > } > > $aux = snmp_netsnmp_fix($aux); > > if (strpos($aux,"=")) $aux = > > substr($aux,strpos($aux,"=")+2,strlen($aux)); > > //echo "$oid = $aux\n"; > > return $aux; > > } > > > > snmp_counter.php > > > > <? > > function poller_snmp_counter ($options) { > > extract($options); > > > > $oid = $poller_parameters; > > > > /** > > * Support multiple oids, try first, if no valid response, > > try next, > > > > and so on i.e ( to automaticly support 64 bit counters ) > > */ > > > > $oids = explode(";",$oid); > > foreach ( $oids as $oid ) { > > if ($ro_community) { //dont do anything if we dont > > have the community > > $value = trim(get_snmp_counter($host_ip, > > $ro_community,$oid)); > > if ($value=="") $value = > > trim(get_snmp_counter($host_ip,$ro_community,$oid)); > > > > if (strpos($value," ")!==FALSE) $value = > > substr($value,0,strpos($value," ")); > > } > > if ( ! empty($value) ) { > > return $value; > > } > > } > > return $value; > > } > > ?> > > > > You need to change the arguments to the poller for input and output > > rate in the DB ( this can be done through the web interface ) > > > > I'm using the following ( DB Output ) > > > > | 2 | input | SNMP Input Rate | snmp_counter > > | .1.3.6.1.2.1.31.1.1.1.6.<interfacenumber>;.1.3.6.1.2.1.2.2.1.10.<i > > | nt > > | er > > | facenumber> > > | > > | 10 | output | SNMP Output Rate | snmp_counter > > | .1.3.6.1.2.1.31.1.1.1.10.<interfacenumber>;.1.3.6.1.2.1.2.2.1.16.< > > | in > > | te > > | rfacenumber> > > > > I hope my mailclient haven't fucked up the formating totaly, let me > > know if it looks really strange, I'll make a text file for you in > > that case :) > > > > > > Let me know how your results are, send me an email if something > > doesnt work > > > > :) > > > > Good Luck :) > > > > //Anders > > > > On Monday 21 June 2004 22.29, you wrote: > > > Hi > > > I am just getting JFFNMS off the ground and also need 64bit > > > counter support to properly graph the 10gige links from our cisco > > > GSR. Could you point me in the right direction on how to > > > accomplish this. How difficult was this to get going. Thanks very > > > much. > > > > > > jason > > > > > > -----Original Message----- > > > From: Anders Karlsson (X:et) > > > [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, June 15, 2004 10:12 AM > > > To: [EMAIL PROTECTED] > > > Subject: Re: [jffnms-users] 64 bit snmp counters > > > > > > > > > Hi guys, > > > > > > I ran into the same problem earlier this week :( > > > > > > I have made a patch for the snmp module in php to allow choosing > > > between 1 and 2c versions ( defaults to 1c), diff file is sent to > > > the PHP-DEV maillist.. > > > > > > I've also made patches to the api.network.inc.php to allow it to > > > first try version 2c, and if it doesnt get a reply, try version > > > 1.. > > > > > > I also made modifications to the snmp_counter.php to allow it to > > > take multiple oids to try like this: > > > > > > > > >.1.3.6.1.2.1.31.1.1.1.6.<interfacenumber>;.1.3.6.1.2.1.2.2.1.10.<in > > >te > > >rface > > >n u mber> > > > > > > > > > These changes are not made against the newest version of jffnms... > > > put if anyone feel brave enough to patch php and then incorporate > > > my changes, i can > > > > > > post them to the list :) > > > > > > > > > Cheers > > > Anders > > > > > > On Monday 14 June 2004 21.14, Javier Szyszlican wrote: > > > > php supports SNMPv3 with the snmpv3_* functions, check the php > > > > site. > > > > > > > > You will need to create a new poller using those functions. > > > > > > > > Javier > > > > > > > > Tjerk Nan wrote: > > > > > On Jun 14, 2004, at 16:27, Javier Szyszlican wrote: > > > > >> Hi, > > > > >> > > > > >> Support for this is not currently incorporated in JFFNMS, > > > > >> User request for this is minimal. > > > > >> > > > > >> You can't just put in the OIDs, because the standard PHP snmp > > > > >> functions are snmp v1, the V3 use a different name. > > > > >> > > > > >> But you could create a new poller that uses the new PHP SNMP > > > > >> functions. > > > > > > > > > > I see that php is compiled with support for using v1. Is > > > > > changing the default snmp version and recompiling snmp enough, > > > > > in combination with the new oid's? > > > > > > > > > > Tjerk Nan > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This SF.Net email is sponsored by The 2004 JavaOne(SM) > > > > > Conference Learn from the experts at JavaOne(SM), Sun's > > > > > Worldwide Java Developer Conference, June 28 - July 1 at the > > > > > Moscone Center in San Francisco, CA REGISTER AND SAVE! > > > > > http://java.sun.com/javaone/sf Priority Code NWMGYKND > > > > > _______________________________________________ > > > > > jffnms-users mailing list [EMAIL PROTECTED] > > > > > https://lists.sourceforge.net/lists/listinfo/jffnms-users - -- SongNetworks [EMAIL PROTECTED] CDTT (Certified Duct Tape Technician) Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rich Cook -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA2EOxi30A6pYsr0wRAuT1AJwKsDNwviPpuCuJZSlseNJ+2PJldACglhCc zaqezK8WunYkjfYVzp791aU= =0nA/ -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ jffnms-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jffnms-users
