title: SNMP in laravel
body: <p>i've search google, php manual, github, and of course stackoverflow, founded many many ways, tried some, but none of them worked. </p>
  
  <p>So what i want to ask is, how to use php SNMP in laravel? for now i'm using <a href="https://github.com/nelisys/snmp" rel="nofollow">nelisys/snmp</a> library but its not working, the return value was always array(0){ } , even after using the example code. i installed the source code using composer on my laravel, and there were no errors at all. feels so hopeless as any links i found on google were so outdated. here is my code for now:</p>
  
  <pre><code>use Nelisys\Snmp;    
  $snmp = new Snmp($vd-&gt;ip, 'my_community');
  if(!is_null($snmp) &amp;&amp; $oid){
      $snmp_data = $snmp-&gt;get($oid);
  }
  </code></pre>
  
  <p>when i var_dump the $snmp , it printed this:</p>
  
  <pre><code>object(Nelisys\Snmp)#2434 (5) {
    ["hostname":protected]=&gt;
    string(10) "xx.xx.xx.xx"
    ["community":protected]=&gt;
    string(7) "my_community"
    ["version":protected]=&gt;
    string(1) "1"
    ["output_options":protected]=&gt;
    string(6) "0efnqt"
    ["snmpget_max_oids":protected]=&gt;
    int(10)
  }
  </code></pre>
  
  <p>can someone help me ? thank you very much. </p>
  
  <p><strong>UPDATES</strong>:</p>
  
  <p>I tried to make sure that the net-snmp and net-snmp-utils were installed and configured successfully, by following <a href="http://kb.juniper.net/InfoCenter/index?page=content&amp;id=KB25949&amp;actp=search" rel="nofollow">this</a> tutorial, yet still, not working like i expected. what should i do now?</p>