[problem] PHP & SNMP - Tree of Souls - An Avatar Community Forum
Tree of Souls - An Avatar Community Forum
Go Back   Tree of Souls - An Avatar Community Forum » General Forums » Development

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 01-30-2011, 02:29 PM
Avatar Driver
MGCJerry is the unwanted black sheep of ToS
 
Join Date: Mar 2010
Location: Ohio
Posts: 20
Default Php & snmp

Irrelevant. Thanks for the help sight.

Last edited by MGCJerry; 01-16-2013 at 05:03 AM.
Reply With Quote
  #2  
Old 02-02-2011, 10:18 PM
Sight Unseen's Avatar
Karyu
Sight Unseen is a perfectly ordinary magical unicorn.
 
Join Date: Mar 2010
Location: Silicon Valley
Posts: 1,349
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, 06:28 AM
Sight Unseen's Avatar
Karyu
Sight Unseen is a perfectly ordinary magical unicorn.
 
Join Date: Mar 2010
Location: Silicon Valley
Posts: 1,349
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 06:36 AM.
Reply With Quote
  #4  
Old 02-06-2011, 05:54 AM
Sight Unseen's Avatar
Karyu
Sight Unseen is a perfectly ordinary magical unicorn.
 
Join Date: Mar 2010
Location: Silicon Valley
Posts: 1,349
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 06: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
Trackbacks are On
Pingbacks are On
Refbacks are On



Visit our partner sites:

      pandoraworld.ru



All times are GMT +1. The time now is 06:55 PM.

Based on the Planet Earth theme by Themes by Design


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO ©2011, Crawlability, Inc.
All images and clips of Avatar are the exclusive property of 20th Century Fox.