title: SNMP Trap In PHP/Linux
body: <p>Is there anyone know how to send SNMP Trap using php? Or How to send SNMP traps in Linx? I used Net-SNMP to send Traps from the terminal. But it doesn't tell where exactly the MIB need to be placed and I am unable to send traps using 'snmptrap' command. I need to employ it in RedHat Linux server.</p>
  
  <blockquote>
    <p>MIB search path: /home/user/.snmp/mibs:/usr/local/share/snmp/mibs
    Cannot find module (MY-MIB): At line 1 in (none)
    MY-MIB::clientrap: Unknown Object Identifier</p>
  </blockquote>
  
  <p>This is the error I am getting. I am sure that I put the MIB file in the  <strong>/home/user/.snmp/mibs</strong> and <strong>/usr/local/share/snmp/mibs</strong> as NET-SNMP suggests. Then I don't know how the error come. Is there any other MIB search path? I don't know.</p>