This is goign to be a long post I'm afraid - I've been struggling with
this for many hours now.
I'm trying to get systemStats working. I have tried with versions 5.4,
5.4.1, and 5.3.1. The software is running on a custom linux distro, on
kernel 2.6.18. The system is running on Xen. The compile options are:
--enable-mini-agent \
--enable-ucd-snmp-compatibility \
--with-mib-modules="host ucd-snmp/dlmod ucd-snmp/diskio
ip-mib/ipv4InterfaceTable agentx/subagent agentx/master agentx
ucd-snmp/loadave ucd-snmp/memory ucd-snmp/file ucd-snmp/logmatch
ucd-snmp/extensible agent/extend ucd-snmp/pass ucd-snmp/pass_persist
ucd-snmp/proc ucd-snmp/disk" \
--disable-manuals \
--disable-debugging \
--with-default-snmp-version=3 \
--with-sys-contact="[EMAIL PROTECTED]" \
--with-sys-location="Unknown" \
--enable-shared \
--with-logfile=/var/log/snmpd.log \
--with-persistent-directory="/var/lib/net-snmp" \
--disable-ipv6 --disable-internal-md5 --with-openssl
--without-libwrap --without-rpm --without-bzip2 --without-zlib
--without-elf \
--sysconfdir=/etc
Below is two sets of output, one from my system that isn't working, and
then one from one that is.
remote_host # snmpwalk -v 2c -c public 10.200.201.15 .1.3.6.1.4.1.2021.11.11
UCD-SNMP-MIB::ssCpuIdle = No Such Object available on this agent at this OID
# strace -p 3232
Process 3232 attached - interrupt to quit
select(7, [4 6], [], [], {2, 750000}) = 0 (Timeout)
gettimeofday({1193925931, 145129}, NULL) = 0
gettimeofday({1193925931, 145192}, NULL) = 0
gettimeofday({1193925931, 145243}, NULL) = 0
open("/proc/stat", O_RDONLY) = 8
read(8, "cpu 200076 0 244 87168460 1429 "..., 1280) = 1224
close(8) = 0
open("/proc/vmstat", O_RDONLY) = 8
read(8, "nr_anon_pages 1173\nnr_mapped 111"..., 768) = 761
close(8) = 0
gettimeofday({1193925931, 145927}, NULL) = 0
gettimeofday({1193925931, 145982}, NULL) = 0
gettimeofday({1193925931, 146031}, NULL) = 0
select(7, [4 6], [], [], {4, 999261}) = 1 (in [6], left {4, 610000})
recvfrom(6, "0*\2\1\1\4\6public\241\35\2\4-\371v\357\2\1\0\2\1\0000"...,
65536, 0, {sa_family=AF_INET, sin_port=htons(51552),
sin_addr=inet_addr("10.200.201.200")}, [16]) = 44
gettimeofday({1193925931, 540016}, NULL) = 0
write(3, "Received SNMP packet(s) from UDP"..., 57) = 57
write(3, " GETNEXT message\n", 18) = 18
write(3, " -- iso.3.6.1.4.1.2021.11.11\n", 32) = 32
sendto(6, "0-\2\1\1\4\6public\242 \2\4-\371v\357\2\1\0\2\1\0000\022"...,
47, 0, {sa_family=AF_INET, sin_port=htons(51552),
sin_addr=inet_addr("10.200.201.200")}, 16) = 47
gettimeofday({1193925931, 540641}, NULL) = 0
gettimeofday({1193925931, 540694}, NULL) = 0
gettimeofday({1193925931, 540743}, NULL) = 0
select(7, [4 6], [], [], {4, 604549}) = 1 (in [6], left {4, 604549})
recvfrom(6, "0*\2\1\1\4\6public\240\35\2\4-\371v\360\2\1\0\2\1\0000"...,
65536, 0, {sa_family=AF_INET, sin_port=htons(51552),
sin_addr=inet_addr("10.200.201.200")}, [16]) = 44
gettimeofday({1193925931, 541143}, NULL) = 0
write(3, "Received SNMP packet(s) from UDP"..., 57) = 57
write(3, " GET message\n", 14) = 14
write(3, " -- iso.3.6.1.4.1.2021.11.11\n", 32) = 32
sendto(6, "0*\2\1\1\4\6public\242\35\2\4-\371v\360\2\1\0\2\1\0000"...,
44, 0, {sa_family=AF_INET, sin_port=htons(51552),
sin_addr=inet_addr("10.200.201.200")}, 16) = 44
gettimeofday({1193925931, 541688}, NULL) = 0
gettimeofday({1193925931, 541765}, NULL) = 0
gettimeofday({1193925931, 541834}, NULL) = 0
select(7, [4 6], [], [], {4, 603478} <unfinished ...>
Process 3232 detached
# cat /proc/stat
cpu 200076 0 244 87212213 1429 0 7 23224
cpu0 200076 0 244 87212213 1429 0 7 23224
intr 7452012 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0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r_file_pages 10191
nr_slab 1714
nr_page_table_pages 39
nr_dirty 0
nr_writeback 0
nr_unstable 0
nr_bounce 0
pgpgin 17728
pgpgout 102820
pswpin 0
pswpout 0
pgalloc_dma 2687261
pgalloc_dma32 0
pgalloc_normal 0
pgalloc_high 0
pgfree 2689310
pgactivate 34283
pgdeactivate 11878
pgfault 620578
pgmajfault 394
pgrefill_dma 15066
pgrefill_dma32 0
pgrefill_normal 0
pgrefill_high 0
pgsteal_dma 0
pgsteal_dma32 0
pgsteal_normal 0
pgsteal_high 0
pgscan_kswapd_dma 6368
pgscan_kswapd_dma32 0
pgscan_kswapd_normal 0
pgscan_kswapd_high 0
pgscan_direct_dma 3520
pgscan_direct_dma32 0
pgscan_direct_normal 0
pgscan_direct_high 0
pginodesteal 0
slabs_scanned 3712
kswapd_steal 6162
kswapd_inodesteal 0
pageoutrun 146
allocstall 55
pgrotated 1
Now for the working host, this is a debian 4.1 install, running on xen.
remote_host # snmpwalk -v 2c -c public 192.169.108.46
.1.3.6.1.4.1.2021.11.11
UCD-SNMP-MIB::ssCpuIdle.0 = INTEGER: 99
# strace -p 22785
Process 22785 attached - interrupt to quit
select(13, [3 5 7 11 12], [], [], {25, 440000}) = 1 (in [12], left {23,
970000})
recvfrom(12,
"0*\2\1\1\4\6public\241\35\2\4f\35Tx\2\1\0\2\1\0000\017"..., 65536, 0,
{sa_family=AF_INET, sin_port=htons(51551),
sin_addr=inet_addr("192.170.210.201")}, [16]) = 44
open("/etc/hosts.allow", O_RDONLY) = 13
fstat64(13, {st_mode=S_IFREG|0644, st_size=677, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f5d000
read(13, "# /etc/hosts.allow: list of host"..., 4096) = 677
read(13, "", 4096) = 0
close(13) = 0
munmap(0xb7f5d000, 4096) = 0
open("/etc/hosts.deny", O_RDONLY) = 13
fstat64(13, {st_mode=S_IFREG|0644, st_size=901, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f5d000
read(13, "# /etc/hosts.deny: list of hosts"..., 4096) = 901
read(13, "", 4096) = 0
close(13) = 0
munmap(0xb7f5d000, 4096) = 0
write(9, "Connection from UDP: [192.168.21"..., 45) = 45
time([1193925915]) = 1193925915
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
send(10, "<30>Nov 1 14:05:15 snmpd[22785]"..., 79, MSG_NOSIGNAL) = 79
gettimeofday({1193925915, 787969}, NULL) = 0
time([1193925915]) = 1193925915
open("/proc/stat", O_RDONLY) = 13
read(13, "cpu 500220 468 78389 78588416 3"..., 1280) = 1236
close(13) = 0
open("/proc/vmstat", O_RDONLY) = 13
read(13, "nr_anon_pages 70762\nnr_mapped 10"..., 1024) = 794
close(13) = 0
sendto(12, "0,\2\1\1\4\6public\242\37\2\4f\35Tx\2\1\0\2\1\0000\021"...,
46, 0, {sa_family=AF_INET, sin_port=htons(51551),
sin_addr=inet_addr("192.168.210.201")}, 16) = 46
gettimeofday({1193925915, 789403}, NULL) = 0
gettimeofday({1193925915, 789529}, NULL) = 0
gettimeofday({1193925915, 789628}, NULL) = 0
select(13, [3 5 7 11 12], [], [], {23, 958583}) = 1 (in [12], left {23,
958583})
recvfrom(12,
"0+\2\1\1\4\6public\241\36\2\4f\35Ty\2\1\0\2\1\0000\020"..., 65536, 0,
{sa_family=AF_INET, sin_port=htons(51551),
sin_addr=inet_addr("192.168.210.201")}, [16]) = 45
open("/etc/hosts.allow", O_RDONLY) = 13
fstat64(13, {st_mode=S_IFREG|0644, st_size=677, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f5d000
read(13, "# /etc/hosts.allow: list of host"..., 4096) = 677
read(13, "", 4096) = 0
close(13) = 0
munmap(0xb7f5d000, 4096) = 0
open("/etc/hosts.deny", O_RDONLY) = 13
fstat64(13, {st_mode=S_IFREG|0644, st_size=901, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f5d000
read(13, "# /etc/hosts.deny: list of hosts"..., 4096) = 901
read(13, "", 4096) = 0
close(13) = 0
munmap(0xb7f5d000, 4096) = 0
write(9, "Connection from UDP: [192.168.21"..., 45) = 45
time([1193925915]) = 1193925915
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
send(10, "<30>Nov 1 14:05:15 snmpd[22785]"..., 79, MSG_NOSIGNAL) = 79
gettimeofday({1193925915, 792990}, NULL) = 0
time([1193925915]) = 1193925915
sendto(12,
"0.\2\1\1\4\6public\242!\2\4f\35Ty\2\1\0\2\1\0000\0230\21"..., 48, 0,
{sa_family=AF_INET, sin_port=htons(51551),
sin_addr=inet_addr("192.168.210.201")}, 16) = 48
gettimeofday({1193925915, 793538}, NULL) = 0
gettimeofday({1193925915, 793644}, NULL) = 0
gettimeofday({1193925915, 793729}, NULL) = 0
select(13, [3 5 7 11 12], [], [], {23, 954468} <unfinished ...>
Process 22785 detached
Many Thanks,
Ian
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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