Hello, I am trying to generate trap from net-snmp for disk statistics. I have a monitor declared like this monitor -t -r 15 -o dskPath -o dskDevice dskPercent > 80 I am monitory disk as disk / disk /boo I am succesfully getting snmpget values snmpget localhost -v 2c -c public .1.3.6.1.4.1.2021.9.1.10.1 UCD-SNMP-MIB::dskPercentNode.1 = INTEGER: 1 However if I try to set value snmpset localhost -v 2c -c private .1.3.6.1.4.1.2021.9.1.10.1 i 90 -v: Bad object type: 2 I checked my snmpd.conf. It has two entries rwcommunity private rocommunity public authtrapenable 1 What I am missing?
dskPercentNode is read only object type, so you cannot modify it.
From UCD-SNMP-MIB.txt file:
.
.
dskPercentNode OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Percentage of inodes used on disk"
::= { dskEntry 10 }
.
.
Hope it clears your problem.
Thanks,
rajOn Dec 18, 2009, at 11:06 AM, rangeli nepal wrote:
> Hello,
>
> I am trying to generate trap from net-snmp for disk statistics. I have a monitor declared like this
>
> monitor -t -r 15 -o dskPath -o dskDevice dskPercent > 80
>
> I am monitory disk as
> disk /
> disk /boo
>
> I am succesfully getting snmpget values
>
> snmpget localhost -v 2c -c public .1.3.6.1.4.1.2021.9.1.10.1
> UCD-SNMP-MIB::dskPercentNode.1 = INTEGER: 1
>
> However if I try to set value
>
> snmpset localhost -v 2c -c private .1.3.6.1.4.1.2021.9.1.10.1 i 90
> -v: Bad object type: 2
>
> I checked my snmpd.conf. It has two entries
>
> rwcommunity private
> rocommunity public
> authtrapenable 1
>
> What I am missing?
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev _______________________________________________
> Net-snmp-users mailing list
>
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/...
Thank you Raj.On Fri, Dec 18, 2009 at 2:22 PM, Raj Gurung wrote: > dskPercentNode is read only object type, so you cannot modify it. > > From UCD-SNMP-MIB.txt file: > . > . > dskPercentNode OBJECT-TYPE > SYNTAX Integer32 > MAX-ACCESS read-only > STATUS current > DESCRIPTION > "Percentage of inodes used on disk" > ::= { dskEntry 10 } > . > . > Hope it clears your problem. > > Thanks, > raj > > On Dec 18, 2009, at 11:06 AM, rangeli nepal wrote: > > Hello, > > I am trying to generate trap from net-snmp for disk statistics. I have a > monitor declared like this > > monitor -t -r 15 -o dskPath -o dskDevice dskPercent > 80 > > I am monitory disk as > disk / > disk /boo > > I am succesfully getting snmpget values > > snmpget localhost -v 2c -c public .1.3.6.1.4.1.2021.9.1.10.1 > UCD-SNMP-MIB::dskPercentNode.1 = INTEGER: 1 > > However if I try to set value > > snmpset localhost -v 2c -c private .1.3.6.1.4.1.2021.9.1.10.1 i 90 > -v: Bad object type: 2 > > I checked my snmpd.conf. It has two entries > > rwcommunity private > rocommunity public > authtrapenable 1 > > What I am missing? > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev__________... > Net-snmp-users mailing list > > Please see the following page to unsubscribe or change other options: > https://lists.sourceforge.net/lists/listinfo/... > > > -- > sysAdmin > Evryx Technologies, Inc. > 412 W. Broadway, Suite 201 | Glendale, CA 91204 > T: +1.818.552.3568 F: +1.818.552.3587 > C: +1 818.720.9504 > www.linkmemobile.com > >