[problem] PHP & SNMP - Tree of Souls - An Avatar Community Forum
Tree of Souls - An Avatar Community Forum
Tree of Souls has now been upgraded to an all-new forum platform and will be temporarily located at tree-of-souls.net. This version of the forum will remain for archival reasons, but is locked for further posting. All existing accounts and posts have been moved over to the new site, so please go to tree-of-souls.net and log in with your regular credentials!
Go Back   Tree of Souls - An Avatar Community Forum » General Forums » Development

Reply
 
Thread Tools Display Modes
  #1  
Old 01-30-2011, 01:29 PM
MGCJerry MGCJerry is offline
Avatar Driver
 
Join Date: Mar 2010
Location: Ohio
Posts: 21
Default Php & snmp

Irrelevant. Thanks for the help sight.

Last edited by MGCJerry; 01-16-2013 at 04:03 AM.
Reply With Quote
  #2  
Old 02-02-2011, 09:18 PM
Sight Unseen's Avatar
Sight Unseen Sight Unseen is offline
Karyu
 
Join Date: Mar 2010
Location: Silicon Valley
Posts: 1,373
Default

I'll bite, even though I've never done anything like this. I've never had to deal too much with managed switches, or snmp for that matter, but I'll try to help. Most of the time when I have problems like this that google won't fix, it's something obvious.

Network cable plugged in all the way on both ends?
Unblocked the ports in both directions that SNMP uses in windows firewall? (UDP 161 and 162)
Switch isn't dropping your SNMP requests/ SNMP disabled on switch?
Might have to run apache as root (gasp!) if you're in windows and need an obscene amount of simultaneous connections
No network hardware in between that's screwing with your packet headers?
Using correct ip/subnet mask?
Both manager and agent use same version of SNMP? (SNMPv2 will work with SNMPv1, but just to be absolutely certain this isn't your problem)
Reply With Quote
  #3  
Old 02-05-2011, 05:28 AM
Sight Unseen's Avatar
Sight Unseen Sight Unseen is offline
Karyu
 
Join Date: Mar 2010
Location: Silicon Valley
Posts: 1,373
Default

Jesus... Thats one Gordian Knot of a network.

Are you sure the switch supports the variables you're trying to read? Are you querying too fast? Are you querying more than one variable at a time with different sessions?

As for #4, its a limitation of the windows xp kernel iirc. Actually, running as root won't help either. If your number of connections is in the thousands, this may be your problem.

Last edited by Sight Unseen; 02-05-2011 at 05:36 AM.
Reply With Quote
  #4  
Old 02-06-2011, 04:54 AM
Sight Unseen's Avatar
Sight Unseen Sight Unseen is offline
Karyu
 
Join Date: Mar 2010
Location: Silicon Valley
Posts: 1,373
Default

I think 2003 runs the xp kernel.

Also, make sure you're not making more than one read at a time. Like for instance calling the read method, then calling it immediately again before the switch has a chance to respond to the first request. I guess what I'm saying is make sure your code queries everything at once instead of sending a seperate query for each read request... or something. I'm just making a shot in the dark really.

Last edited by Sight Unseen; 02-06-2011 at 05:01 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Visit our partner sites:

   



All times are GMT +1. The time now is 09:38 PM.

Based on the Planet Earth theme by Themes by Design


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
All images and clips of Avatar are the exclusive property of 20th Century Fox.