Re: Please help! disk usage no effecting

"yin zhang" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
>
> Hi Net-SNMP gurus,
>
>    I have installed the net-snmp5.4 in redhat AS4.0, and I copied the
> example.conf file(in the install package) to the /usr/local/share/snmp/,
> and renamed it to snmpd.conf.
>
>     Then I added something to the snmpd.conf for monitoring the disk
> space, the snmp.conf is below :
>
>      …
>
> disk / 30%
>
> …
>
> authtrapenable 1
>
> trapcommunity   whatever
>
> trap2sink       localhost:162
>
> defaultMonitors          yes
>
>
>
> and the snmptrapd.conf in /var/net-snmp/ is like this :
>
> authcommunity execute|log|net whatever
>
> traphandle .1.3.6.1.6.3.1.1.5.1        page_me up
>
> traphandle .1.3.6.1.4.1.2021.251.1   page_me up
>
> traphandle .1.3.6.1.4.1.2021.251.2   page_me down
>
> traphandle default                   log_it
>
>
>
> then I run the snmptraped in the localmachine the command is :
>
> /usr/local/sbin/snmptrapd -d -f CLo
>
>
>
> Last I run the snmpd :
>
> /usr/local/sbin/snmpd
>
>
>
> I can received the trap info in the server :
>
> 2007-09-18 16:42:02 <UNKNOWN> [UDP: [ 127.0.0.1]:32788]:
>
> DISMAN-EVENT-MIB:ysUpTimeInstance = Timeticks: (57) 0:00:00.57
> SNMPv2-MIB:nmpTrapOID.0 = OID: SNMPv2-MIB::coldStart  SNMPv2-MIB:
> nmpTrapEnterprise.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
>
> sh: line 1: page_me: command not found
>
>
>
>
>
> but there is not disk error info ,I run the df command the / is :
>
> Filesystem            1K-blocks      Used Available Use% Mounted on
>
> /dev/hda2              18564112  16374796   1246304  93% /
>
>
>
> Is just 7% available, I set is 30%,but there is no error trap send .
>
> Thank you!
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
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.