<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML> <HEAD> <TITLE>NMIS - Network Management Information System</TITLE> <META HTTP-EQUIV="Content-Language" CONTENT="en-us"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252"> <STYLE TYPE="text/css"> TD { border-width : 1px; border-style : solid; border-color : #aaaaaa; font-family : Arial; } TABLE { color : Black; background : White; border-width : 1px; border-style : solid; border-color : #aaaaaa; width : 100%; font-family : Arial; } P { font-family : Arial; } BODY { font-style : normal; font-variant : normal; font-size : small; color : white; background-color : #190032; text-decoration : none; font-family : Arial; } A:active { color : red; background-color : White; text-decoration : none } A:link { color : blue; background-color : White; text-decoration : underline } A:visited { color : blue; background-color : White; text-decoration : underline } A:hover { color : red; background-color : White; text-decoration : underline } .heading { font-style : normal; font-weight : bold; font-size : x-large; font-family : "Arial Rounded MT Bold"; background-color : #190032; color : White; } #rrdtool { position : absolute; left : 200px; top : 150px; } </STYLE> </HEAD> <BODY> <div class="heading">NET-SNMP</div> <table> <tr> <td width="33%">Last updated 21 June 2001</td> <td width="33%"> <p align="center"><a href="http://www.sins.com.au/nmis/net-snmp.html">Online Version</a></p> </td> <td width="33%"> <p align="center"><a href="http://www.sins.com.au/nmis/">NMIS Home Page</a></p> </td> </tr> <tr> <td width="100%" colspan="3"><b>Setting up NET-SNMP (nee UCD-SNMP)</b> <ul> <li><a href="http://sourceforge.net/project/showfiles.php?group_id=12694">Download NET-SNMP</a> or more info is available on the <a href="http://net-snmp.sourceforge.net">NET-SNMP Home Page</a> </li> <li>Download SINS MIB Archive</li> <li>set the environment "MIBS=ALL"</li> <li>Setup the trap daemon to log to syslog or to a file.</li> </ul> <p><b>Setting up TRAPS to be put into syslog</b></p> <p>Create or edit the file /usr/local/share/snmp/snmptrapd.conf and add the following entry:</p> <pre>traphandle default /usr/local/bin/traplog.pl </pre> <p><b>Start the trap daemon and put into syslog</b></p> <p>The command to start the NET-SNMP trap daemon and put the results in syslog:</p> <pre>export MIBS=ALL /usr/local/sbin/snmptrapd -s -l0 -Of -c/usr/local/share/snmp/snmptrapd.conf </pre> <p>Add the following entry to syslog.conf, touch the file and restart the syslog daemon.</p> <pre>local0.debug /var/log/trap.log</pre> <p> </td> </tr> </table> </BODY> </HTML>