[PHP] UCD-SNMP 4.2.5 and PHP-SNMP

2002-09-17 Thread Brian E. Seppanen

I have an application that uses php's snmp support to gather some 
information.   I run several servers that are using this application and 
all of the servers are running redhat-7.2.   In redhat 7.2 the OS 
initially ships with ucd-snmp-4.2.1-7.i386.rpm.   This works fine with 
my applications.   I make every effort to keep these servers patched and 
up to date, and unfortunately redhat has released some ucd-snmp patches 
that bring the version up to ucd-snmp-4.2.5-7.72.0.i386.rpm.   When I 
try to install that version of snmp, the snmp support breaks in php. 
The output is completely whacked, and I wish I could explain more, but 
generally output that used to poll correctly now shows 0 and certain 
items show the OIDspacevalue instead of just the value.   So I'll have 
a column in the app that has
(ucd-snmp 4.2.1 output)
valuea  25
(ucd-snmp 4.2.5 output)
valuea  transmission.1.3.5.blah 2

The output is all over the place.   One thing that I do know has changed 
with this release of ucd-snmp is that it now comes with libwrap support. 
Any way that could affect it.   I've tried recompiling php with the 
new includes.

Of course there are some patches that are dependent upon this working, 
so if anyone has any insight on how to proceed I would appreciate it. 
Any suggestions on how to get the most up to date ucd-snmp patches.   At 
this time my option is not to upgrade and it doesn't appear that there 
is a bug fix or anything else that is required in that newest release, 
however, the new redhat-7.3 boxes that I need to deploy in place of the 
redhat-7.2 boxes are going to probably have the same problem.

Thanks,

Brian Seppanen
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] SNMP Queries and Leftover Sockets

2002-05-23 Thread Brian E. Seppanen

We recently implemented a snmp polling utility using PHP4.0.6 on RedHat 
Linux 7.2 with an Apache webserver.   When people using the polling 
utility do a poll we get leftover sockets that do not seem to go away, 
and after a while the webserver needs to be restarted.   Is there any 
way in PHP to force these connections closed after a while?   Has anyone 
else seen this.   I've got several boxes all exhibiting the same 
behavior after this utility was put in place.

here's some example lsof output, which I got doing
lsof -i -n | grep httpd | grep UDP


httpd 27987 root8u  IPv4 16889303   UDP *:3865
httpd 27987 root9u  IPv4 16889304   UDP *:3866
httpd 27987 root   10u  IPv4 16891398   UDP *:4054
httpd 27987 root   11u  IPv4 16895660   UDP *:1826
httpd 27987 root   12u  IPv4 16897200   UDP *:1904

On this particular box I have 731 open UDP sockets, and this is after 
the webserver was started yesterday.   Restarting the webserver does 
resolve the issue.

Thanks for any insight.

Brian Seppanen
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php