On Fri, Sep 10, 2010 at 05:29:21PM +0200, Karsten Suehring wrote:
> I'm using OMSA on different PowerEdge machines with Ubuntu Linux (64-bit)
> as my OS.
[...]
> Then I tried upgrading the Ubuntu release on one machine to 10.04 (lucid)
> and noticed that the> dsm_sa_snmpd process memory usage grew about 30 MByte
> on each SNMP call from the check_openmanage script.
[...]
> Does anybody have an idea how to solve this problem?
I posted about this to the list a few weeks ago. Someone from Dell said
they were looking into it. My temporary solution is inelegant, but
functional:
r...@elided:~# cat /etc/cron.hourly/dell-restart-snmp
#!/usr/bin/perl -w
use strict;
my $trace = 0;
my $restart;
if (-e "/etc/init.d/dataeng") {
my $status = `/usr/sbin/service dataeng status | grep snmpd`;
print "status is $status" if $trace;
$restart = "not running" if ($status =~ m/stopped/);
if ($status =~ m/.*pid (\d+)/) {
print "PID $1\n" if $trace;
my $mem = `cut -f1 -d' ' /proc/$1/statm`;
print "Pid is $1 mem is $mem\n" if $trace;
# 524288 4k pages is 2 GB
$restart = "too much memory: $mem" if ($mem > 524288);
}
if ($restart) {
`/usr/sbin/service dataeng restart`;
print "Restarted due to $restart\n";
}
}
_______________________________________________
Linux-PowerEdge mailing list
[email protected]
https://lists.us.dell.com/mailman/listinfo/linux-poweredge
Please read the FAQ at http://lists.us.dell.com/faq