Monitoring OID Error
"Markus Gibson" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hello all, I am somewhat new to using SNMP with Linux. I have looked through the Net-SNMP site and I have found that it isn't comprehensive, so I am hoping that someone can help me with this. Here are my stats: Red Hat Enterprise Linux 4 Net-SNMP 5.3.1 -- Compiled From Source I am trying to use the Disman monitoring, to monitor changes in specific values (The documentation says that it can do this), however I am getting this error when starting SNMP: Nov 7 23:05:44 vmtadclx04 snmpd[23505]: /usr/local/share/snmp/snmpd.conf: line 42: Error: unknown monitor OID Nov 7 23:05:44 vmtadclx04 snmpd[23505]: net-snmp: 1 error(s) in config file(s) Nov 7 23:05:44 vmtadclx04 snmpd[23505]: NET-SNMP version 5.3.1 Here is my config file: #Create the groups, communities, and security groups # sec.name source community com2sec QTS localhost vmtadc com2sec QTS xxx.xxx.xxx.xxx vmtadc # Only return v2c to the poller # group.name sec.model sec.name group ReadOnly v2c QTS # inc/excl subtree mask view all included .1 80 # context sec.model sec.level match read write notif access ReadOnly "" any noauth exact all none none #access MyROGroup "" any noauth exact all none none #access MyRWGroup "" any noauth exact all all none #List of processes to monitor: proc httpd 3 2 proc mysql #load averages for one, five, and fifteen minute values load 30 15 5 authtrapenable 1 #Set up internal monitor for the agent to check specific values # you must specify createUser, iquerySecName, rouser for this directive createUser _internal MD5 nextel0079! iquerySecName _internal rouser _internal # Here are the OID's that we want to monitor, when things go over these variables, we should get a trap!! #monitor -u _internal -o hrSWRunName "high process memory" hrSWRunPerfMem > 10000 #monitor -u _internal -o memErrorName -o memSwapErrorMsg "memory" memSwapError != 5 monitor -u _internal -r 60 -e SwapUsage -o hrStorageType.3 -o hrStorageDescr.3 -o hrStorageUsed.3 !=0 #<-- This is the line where the error occurs notificationEvent SwapUsage hrStorageUsed.3 #set up the trap community, and where to send the traps. trapcommunity vmtadc trapsink xxx.xxx.xxx.xxx:xxx What I am trying to do here is monitor the change in Swap Usage so that the agent will send a trap when a server starts using it's swap. If I uncomment the other monitor directives, I get the trap alerts, interesting huh? I am also interested in using the "monitor" command to find a process that is using to much CPU and either kill it and restart it. If anyone has an example config file that uses the Disman extensions (i.e. monitor, etc ... ) please send me some examples. Also, I have yet to find decent examples or documentation on Net-SNMP that is complete and consise, could someone point me to a site that could explain a little better than the Net-SNMP site? Please help if at all possible, as I am completely lost, what I have come up with so far is from what I have found from either the net-snmp site or bits and pieces scattered around the internet including this mail group. Thanks in advance for your help!!! Mark -- M. ------------------------------------------------------------------------- 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