Hello, sir

           Below is my snmpd.conf file. When I am start my service "snmpd"
as I have configure with DISMAN mib, It is generating "coldstart" trap. I am
able to see it on remote machine. snmpv3 queries are also working fine with
GET/WALK requests.

As I read in  snmpd.conf(5) disman event mib, I have tried to configure it
But I am facing following issues.

 

1)  disk  / 80% : here "/" is mounted as a partition which contains about
25% usage area, so It should generate trap . But It is not generating any
trap at all !

2) .1.3.6.1.4.1.21067.3.1.2.1 : By default value of this OID is 2. When I am
running this sub-agent I am not getting any trap from this file !!!

 

Please help me where it is going wrong and what can be the reasons behind
it.

 

Thanks in advance.  

 

 

*and also I created snmptrapd.conf file* which contains a line as

below

authCommunity   log,execute,net    public

 

#************************snmpd.conf file *****************

 

# snmpd.conf

 

syslocation  eli

syscontact  jatin.boda...@eli.com

sysservices 79

 

 

###########################################################################

# SECTION: Monitor Various Aspects of the Running Host

 

proc  "proc snmpd 1 1"  

proc  snmpd 1 1

 

# disk: Check for disk space usage of a partition.

 

disk  / 80%

disk  /dev 20%

 

# load: Check for unreasonable load average values.

 

load  3 2 1.5

 

###########################################################################

 

trap2sink  10.104.1.128 public 162

trap2sink  localhost public 162

 

trapcommunity  public

 

authtrapenable  1

 

###########################################################################

# SECTION: User Creation

 

createUser jatin MD5 jatin2012

###########################################################################

# SECTION: Access Control Setup

#

rwuser  jatin auth 

 

rocommunity  public 10.104.1.128 

rocommunity  public localhost

 

# rwcommunity: a SNMPv1/SNMPv2c read-write access community name

 

rwcommunity  public 10.104.1.128 

 

############################################################################
SECTION: sec name

 

iquerySecName jatin

 

############################################################################
SECTION: AgentX support

 

master agentx

############################################################################
SECTION: monitor

 

notificationEvent  cpuPercentUsageTrap IONLINE-MIB::cpuPercentUsage
.1.3.6.1.4.1.21067.3.1.2.1 

monitor  -r 15 -s -u user -e cpuPercentUsageTrap  "Warn: High Disk Usage"
.1.3.6.1.4.1.21067.3.1.2.1 != 0

 

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to