Thanks for all the help and suggestions. Using the advice I received here and another list I was able to figure out how to get Disk Space and other traps from Net-SNMP on Solaris. In summary here is what I did for reference:
Compile net-snmp on with these configure flags: (note you don't need all of them but you need the DISMAN one for sure) __________________________ --prefix=/opt/snmp --enable-shared --with-embedded-perl \ '--with-transports=UDPIPv6 TCPIPv6' \ '--with-mib-modules=host disman/event-mib ucd-snmp/diskio smux agentx mibII/mta_sendmail' __________________________ After compiling and make, make install find snmpd.conf and add the following: __________________________ agentSecName internal rouser internal __________________________ To monitor a disk like /home put this in: __________________________ Disk /home 90% monitor -o dskPath -o dskErrorMsg "dskTable" dskErrorFlag != 0 __________________________ I used 90% to generate a trap right away. Set this to whatever value you like. In this example a trap is generated whenever /home has less than 90% available. Once you restart the agent check the log. If you are getting token errors then the DISMAN mib is not compiled in. To finish it off create and clean up your rules file. In my case I made the Summary = $7 This is only for Solaris. The Net-SNMP version in RHEL 4 it looks like the DISMAN mib is missing. I can only guess this because when I compile my own I do not get the missing token errors. On RHEL there is also an issue with SELinux interfering with the SNMP agent so even if you compile it yourself you'll get SELinux errors similar to this: __________________________ Dec 15 14:45:20 w72l-tux kernel: audit(1134675920.917:0): avc: denied { getattr } for pid=9101 exe=/usr/sbin/snmpd path=/home dev=hda4 ino=2 scontext=root:system_r:snmpd_t tcontext=system_u:object_r:home_root_t tclass=dir __________________________ To fix that you have to edit the SELinux policy. RedHat has a howto someplace on their site. Jack -----Original Message----- From: Radek Vokál [mailto:[EMAIL PROTECTED] Sent: Friday, December 16, 2005 3:54 AM To: Palmadesso Jack IT743 Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Frustration with Disk Monitoring On Thu, 2005-12-15 at 14:50 -0500, Palmadesso Jack IT743 wrote: > Hello all, > I've been messing around with the RHEL 4 installation of Net-SNMP and > after reading the docs ( man snmpd.conf ) I've tried to monitor the > disks on my system. Its been failing miserably with "token" errors. > I guessed that I need to compile my own version of net-snmp so I did > and did so with these options. > > ./configure --with-perl-modules --with-mib-modules="disman/event-mib" > > I was hoping that by using this it would work but now I'm getting > slightly different errors. Seems like progress though. > > Dec 15 14:45:20 w72l-tux kernel: audit(1134675920.917:0): avc: denied > { getattr } for pid=9101 exe=/usr/sbin/snmpd path=/home dev=hda4 > ino=2 scontext=root:system_r:snmpd_t > tcontext=system_u:object_r:home_root_t tclass=dir > > I really have no idea what it is complaining about. Can anybody tell > me ? Here is my snmpd.conf SELinux issue. Next RHEL4 update is coming out soon and some of the SELinux issue will be fixed there, trying your settings on my RHEL4 box, it's seems that this one will disappear. If the problem persist, please report it to RH bugzilla for component selinux-policy-(the policy you're using - use `getenforce`) -- Radek Vokál <[EMAIL PROTECTED]> ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users