Appropriate usage of SNMP and Monitor configuration

Alexander Hartner <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi all,

My aim is to configure SNMPD to send a trap to SNMPTRAPD which in  
turn will generate an email for me. I managed to configure SNMPTRAPD  
to send the emails and SNMPD to generate the traps. My problem is  
that SNMPD only generates the traps once on startup and then never  
again. On the man page is says that the proc (proc java 100 40) will  
not generate the trap and that one should refer to the MIB section. I  
haven't found the right place to configure where / when the traps are  
generated. I guess that the defaultMonitors parameter does that, but  
I am not sure. I see the traps are being generated, because I receive  
an email when there are more then 100 java processes, but only on  
startup. Once SNMPD is started and subsequently this barrier (100  
java processes) is breached no additional traps are being generated.

I am guessing that the defaultMonitors parameters would be checked on  
the default cycle being 600 seconds (10 mins) as the -r option is not  
specified on the default monitors. Yet even after waiting for 10 mins  
it still did not generate the traps.

Here is my snmpd.conf file :

master  yes
syslocation  Cholsey
rocommunity  public
authtrapenable  1
informsink      localhost public
proc  java 100 40
disk  / 20%
disk  /backup 20%
load  10 10 10

createUser    snmpmonitor MD5 "the first sign of madness"
iquerySecName snmpmonitor
rouser        snmpmonitor

defaultMonitors         yes
linkUpDownNotifications yes

notificationEvent  linkUpTrap    linkUp   ifIndex ifAdminStatus  
ifOperStatus
notificationEvent  linkDownTrap  linkDown ifIndex ifAdminStatus  
ifOperStatus
monitor  -r 10 -e linkUpTrap   "Generate linkUp" ifOperStatus != 2
monitor  -r 10 -e linkDownTrap "Generate linkDown" ifOperStatus == 2

Maybe I am missing the whole point of SNMP. All I really want for now  
is just to generate emails when a specific parameter meets a certain  
criteria. SNMP seems to be capable of this very nicely. I am not sure  
I fully appreciate the point of SNMPGET. It would be very nice though  
to have a central console. There are  a number of these online, but i  
am guessing MTRG is the best / most common. Any other suggestions.

Thanks for your help and a great product.

Alexander Hartner
[email protected]

Does a good farmer neglect a crop he has planted?
Does a good teacher overlook even the most humble student?
Does a good father allow a single child to starve?
Does a good programmer refuse to maintain his code?
   - The Tao of Programming

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

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