Sponsored Content
Top Forums UNIX for Dummies Questions & Answers snmptrapd uses all the CPU and 4 Go memory Post 302305962 by Gino_75 on Friday 10th of April 2009 09:48:49 AM
Old 04-10-2009
Question snmptrapd uses all the CPU and 4 Go memory

Hello all,


Below what I saw on my solaris 10 box :

$ prstat
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU
PROCESS/NLWP
683 root 4082M 91M run 10 0 41:45:39 96% snmptrapd/1


syslog gives a lot of :
[...] snmptrapd[683]: [ID 702911 daemon.error] illegal
data attempted to be added to table nlmLogVariableTable (no index)
[...]snmptrapd[683]: [ID 702911 daemon.crit] no memory in netsnmp_set_row_column

After restart of snmptrapd, everything went normal again. Any idea what went wrong?

Thank you,
 

10 More Discussions You Might Find Interesting

1. AIX

Utilization for memory and cpu

Hi all I need command to give me the utilization for memory and cpu,and how can I know if the utilization ok or no? for example in hp unix #top it is give me utilize for cpu and memory and also I can know if utilize ok or no. thanks (2 Replies)
Discussion started by: magasem
2 Replies

2. UNIX for Dummies Questions & Answers

CPU & Memory value for scripts...!

Hi All, I want to calculate CPU utlization and memory utilization on solaris box..! could some one help me out on this topic..! right now i am using TOP command for both the values..! i want this to automated..! script should some thing like CPU utilization = (100-ideal value)%... (2 Replies)
Discussion started by: bullz26
2 Replies

3. UNIX for Dummies Questions & Answers

cpu, memory and virtual memory usage

Hi All, Does anyone know what the best commands in the UNIX command line are for obtaining this info: current CPU usage memory usage virtual memory usage preferably with date and time parameters too? thanks ocelot (4 Replies)
Discussion started by: ocelot
4 Replies

4. UNIX for Dummies Questions & Answers

CPU/Memory utilization

hi guys I just want to know how to get the cpu/memory utilization of a running script? Well i know that I can use the sar command but it shows the whole system's statistics. Is it possible to get the stats of a single scirpt or a single running service? (6 Replies)
Discussion started by: khestoi
6 Replies

5. Solaris

OS is not detected CPU and memory

Hi, Server AIBVRFCC failed POST while booting on 06/28/2009. Server is up, but OS cannot see two CPUs (CPU 0 and CPU 2) and half of the installed system memory (8 GB is physically installed but only 4 GB is seen by OS now). bld00016:root psrinfo 1 on-line since 06/28/09 05:51:36 3 on-line... (1 Reply)
Discussion started by: arumsun
1 Replies

6. Solaris

Regarding cpu & memory utilize

Dear all, i am not getting the exact things what i am expecting from these commands . just clarify this things , 1. cpu utilization (min)% 2.peak load cpu utilization (max) % 3.cpu utilization(avg) 4. peak disk busy % 5. peak kb read 6.peak kb write 7.free memory for... (3 Replies)
Discussion started by: masthan25
3 Replies

7. Solaris

Memory or CPU size

Is there a command or file I can look at that tells me how much real memory a machine has? A little background. In my shop we run a bunch of java programs, sometimes some of these jobs have config definitions that call for 2G. I would like to know how many I can run before I exhaust rescources. Any... (12 Replies)
Discussion started by: Harleyrci
12 Replies

8. Shell Programming and Scripting

Get the memory and cpu usage

what is the best way to get the memory and cpu usage of a process on any system? this is relatively simple. however, i'm looking for a unified method that would work on linux, sunos, hpux, aix. ps -ef | egrep myprocess | awk '{print $4}' ---> there could be several instances of 'myprocess'... (3 Replies)
Discussion started by: SkySmart
3 Replies

9. UNIX for Advanced & Expert Users

Timeout procedure for using to much memory or cpu

How hard is it to create some kind of timeout procedure for using to much memory or cpu on a linux/unix server? What would you have to do to do this? (8 Replies)
Discussion started by: cokedude
8 Replies

10. Shell Programming and Scripting

Cpu and memory usage scripts

All I am writing a script to generate an email when cpu and memory usage is high for 5 min continuously help me urgent I wrote below scritpt LOAD=75.00 CPU_LOAD= 'sar -P all 300 5 |grep 'Average.all* '| awk -F " " '(print 100.0 -$NF)'' IF }; ECHO "pLEASE CHECK YOUR PROCESS ON YOUR... (1 Reply)
Discussion started by: anil529
1 Replies
SNMPTRAPD(8)							     Net-SNMP							      SNMPTRAPD(8)

NAME
snmptrapd - Receive and log SNMP trap messages. SYNOPSIS
snmptrapd [OPTIONS] [LISTENING ADDRESSES] DESCRIPTION
snmptrapd is an SNMP application that receives and logs SNMP TRAP and INFORM messages. Note: the default is to listen on UDP port 162 on all IPv4 interfaces. Since 162 is a privileged port, snmptrapd must be typically be run as root. OPTIONS
-a Ignore authenticationFailure traps. -c FILE Read FILE as a configuration file. -C Do not read any configuration files except the one optionally specified by the -c option. -d Dump (in hexadecimal) the sent and received SNMP packets. -D TOKEN[,...] Turn on debugging output for the given TOKEN(s). Try ALL for extremely verbose output. -e Print event numbers (rising/falling alarm etc.). -f Do not fork() from the calling shell. -F FORMAT When logging to standard output, use the format in the string FORMAT. See the section FORMAT SPECIFICATIONS below for more details. -h, --help Display a brief usage message and then exit. -H Display a list of configuration file directives understood by the trap daemon and then exit. -l d|0-7 Specifies the syslog facility to use when logging to syslog. 'd' means LOG_DAEMON and 0 through 7 mean LOG_LOCAL0 through LOG_LOCAL7. LOG_LOCAL0 is the default. -m MIBLIST Specifies a colon separated list of MIB modules to load for this application. This overrides the environment variable MIBS. -M DIRLIST Specifies a colon separated list of directories to search for MIBs. This overrides the environment variable MIBDIRS. -n Do not attempt to translate source addresses of incoming packets into hostnames. -o FILE Log formatted incoming traps to FILE. -P Print formatted incoming traps to stderr. -s Log formatted incoming traps to syslog. These syslog messages are sent with a level of LOG_WARNING and facility as determined by the -l flag (LOG_LOCAL0 by default). This is the default unless the -o or -P flag is used. -u FILE Save the process ID of the trap daemon in FILE. -v, --version Print version information for the trap daemon and then exit. In addition, snmptrapd takes the same output formatting (-O) options as the other Net-SNMP commands. See the section OUTPUT OPTIONS in the snmpcmd(1) manual page. FORMAT SPECIFICATIONS
snmptrapd interprets format strings similarly to printf(3). It understands the following formatting sequences: %% a literal % %t decimal number of seconds since the operating system's epoch (as returned by time(2)) %y current year on the local system %m current (numeric) month on the local system %l current day of month on the local system %h current hour on the local system %j current minute on the local system %k current second on the local system %T the value of the sysUpTime.0 varbind in seconds %Y the year field from the sysUpTime.0 varbind %M the numeric month field from the sysUpTime.0 varbind %L the day of month field from the sysUpTime.0 varbind %H the hour field from the sysUpTime.0 varbind %J the minute field from the sysUpTime.0 varbind %K the seconds field from the sysUpTime.0 varbind %a the contents of the agent-addr field of the PDU (v1 TRAPs only) %A the hostname corresponding to the contents of the agent-addr field of the PDU, if available, otherwise the contents of the agent- addr field of the PDU (v1 TRAPs only). %b PDU source address (Note: this is not necessarily an IPv4 address) %B PDU source hostname if available, otherwise PDU source address (see note above) %N enterprise string %w trap type (numeric, in decimal) %W trap description %q trap sub-type (numeric, in decimal) %P security information from the PDU (community name for v1/v2c, user and context for v3) %v list of trap's variable-bindings In addition to these values, you may also specify an optional field width and precision, just as in printf(3), and a flag value. The fol- lowing flags are legal: - left justify 0 use leading zeros # use alternate form The "use alternate form" flag changes the behavior of some format flags. Normally, the fields that display time information base it on the local timezone, but this flag tells them to use GMT instead. Also, the variable-binding list is normally a tab-separated list, but this flag changes it to a comma-separated one. The alternate form for the uptime is similar to "3 days, 0:14:34.65" Examples: To get a message like "14:03 TRAP3.1 from humpty.ucd.edu" you could use something like this: snmptrapd -P -F "%02.2h:%02.2j TRAP%w.%q from %A " If you want the same thing but in GMT rather than local time, use snmptrapd -P -F "%#02.2h:%#02.2j TRAP%w.%q from %A " LISTENING ADDRESSES
By default, snmptrapd listens for incoming SNMP TRAP and INFORM packets on UDP port 162 on all IPv4 interfaces. However, it is possible to modify this behaviour by specifying one or more listening addresses as arguments to snmptrapd. See the snmpd(1) manual page for more information about the format of listening addresses. NOTIFICATION-LOG-MIB SUPPORT As of net-snmp 5.0, the snmptrapd application supports the NOTIFICATION-LOG-MIB. It does this by opening an AgentX subagent connection to the master snmpd agent and registering the notification log tables. As long as the snmpd application is started first, it will attach itself to it and thus you should be able to view the last recorded notifications via the nlmLogTable and nlmLogVariableTable. See the snmptrapd.conf file and the "dontRetainLogs" token for turning off this support. See the NOTIFICATION-LOG-MIB for more details about the MIB itself. EXTENSIBILITY AND CONFIGURATION
See the snmptrapd.conf(5) manual page. SEE ALSO
snmpcmd(1), snmpd(1), printf(3), snmptrapd.conf(5), syslog(8), variables(5) 4th Berkeley Distribution 07 Feb 2002 SNMPTRAPD(8)
All times are GMT -4. The time now is 04:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy