Re: Monitoring disk usage

Dale Botkin <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
[email protected] wrote:
> I can't get these traps to fire.  Then again, when I try to walk
> dskTable, I get a failiure response so maybe that MIB isn't in my agent.
>  But I tried with memTotalFree and nothing happens.
>   
I was unable to get monitor to send traps until I added and used a 
SNMPv3 user. 

In /usr/local/share/snmp/snmpd.conf:

    createUser dummy md5 PassPhrase

In /etc/snmp/snmpd.conf:

    rouser dummy auth
    logmatch PANIC /var/log/messages 300 PANIC
    monitor -r 300 -u dummy -i -o logMatchName.1 -o logMatchRegEx.1 
"PANIC" logMatchCurrentCount.1 != 0

Now I finally get traps.  Only took me a few days to figure it out.  
They key was slogging through Google searches for hours and finally 
finding a response to someone else's semi-related question.  The 
response indicated that the monitor directive pretty much requires a v3 
auth user, and won't work without it.  I don't use v3, so it hadn't 
occurred to me.  Hope this helps.

Regards,
Dale


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.