Jump to content

Recommended Posts

I have a piece of php code that uses the snmpwalk to poll info from several different servers.  The code polls 4 different OIDS in a row on a server, logs the info to a DB and then moves on to the next server.

 

I developed the code on an old POS machine, and everything worked fine.  I migrate the code over to a faster machine, taking it out of the dev stage, and suddenly snmpwalk starts to fail on me.  The two machines are identical in terms of OS and file structure.  One is just significantly faster then the other.

 

Since the code doesn't fail in the same place every time (and sometimes it actually finishes), I'm wondering if it is trying to start the next snmpwalk before the previous has time to fully exit and complete.  It didn't do it before because the old machine was much slower.  Does this sound about right?  Is there a trick to make php wait (like the sleep shell command)?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.