From: Jatin Bodarya [mailto:[email protected]] 
Sent: 17 September 2012 18:50
To: '[email protected]'
Subject: snmpd.conf: trap generation errors !!!

 

Hello, Prashant..Can you help me with this ??

 

           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.also when I first starts the agent "snmpd" it generates a
trap, than It never generates again !!! I want to generate trap when the
value goes above some threshold..

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 getting a trap once than never. !!!

 

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  [email protected]

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  cpuPercentUsage IONLINE-MIB::cpuPercentUsage
.1.3.6.1.4.1.21067.3.1.2.1

monitor  -r 15 -s -u jatin -e cpuPercentUsage  "Warn: High Disk Usage"
.1.3.6.1.4.1.21067.3.1.2.1 !=

 

 

notificationEvent tcpRtoMax.0 TCP-MIB::tcpRtoMax.0  1.3.6.1.2.1.6.3

monitor -u root -S -t -r 25 "Warn: High Disk Usage" -e tcpRtoMax.0
1.3.6.1.2.1.6.3 != 90000

 

 

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

Reply via email to