Xymon Mailing List Archive search

alerting on percentage of memory a process is using

3 messages in this thread

list Paul Root · Fri, 3 Jan 2014 04:24:40 +0000 ·
Hi,
                We have a server that has some software that has a memory leak. Upgrading is a long and arduous task. In the meantime, we want to watch the processes so that when they hit 15% or something, we can get alerted. The PROC line in analysis.cfg is just for quantity. So I was thinking I could pull the data out of xymon, and check the process table on the server. I was thinking it was something with xymondboard, but that doesn't seem to be it. Can someone point me in the right direction for this?

                Or maybe it would be better to just have an external script run the ps directly?

Paul Root
Lead Engineer
CenturyLink Network Reliability Operations Center

600 Stinson Blvd, N.E.
Flr 2N
Minneapolis, MN 55413
Direct: (651)312-5207
user-76fdb6883669@xymon.invalid
list Thomas Eckert · Fri, 3 Jan 2014 08:10:15 +0100 ·
Hi Paul,

have a look at `clientlog`, <http://xymon.com/xymon/help/manpages/man1/xymon.1.html>;

You can use the `ps` or `top` section to grep-sed-awk-perl your data from it:

xymon 127.0.0.1 “clientlog your.host section=ps” | grep-sed-awk-perl-magic

Cheers
Thomas

— 
http://www.it-eckert.com/
quoted from Paul Root

On 03 Jan 2014, at 05:24, Root, Paul T <user-76fdb6883669@xymon.invalid> wrote:
Hi,
                We have a server that has some software that has a memory leak. Upgrading is a long and arduous task. In the meantime, we want to watch the processes so that when they hit 15% or something, we can get alerted. The PROC line in analysis.cfg is just for quantity. So I was thinking I could pull the data out of xymon, and check the process table on the server. I was thinking it was something with xymondboard, but that doesn’t seem to be it. Can someone point me in the right direction for this?
 
                Or maybe it would be better to just have an external script run the ps directly?
 
Paul Root
Lead Engineer
CenturyLink Network Reliability Operations Center
 
600 Stinson Blvd, N.E.
Flr 2N
Minneapolis, MN 55413
Direct: (651)312-5207
user-76fdb6883669@xymon.invalid
 
list Paul Root · Fri, 3 Jan 2014 14:15:04 +0000 ·
That's the one. Thanks.

I probably would have found it this morning. The end of a maintenance hour gone bad is not the time to try to read a man page.
quoted from Thomas Eckert

From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Thomas Eckert
Sent: Friday, January 03, 2014 1:10 AM
To: xymon at xymon.com
Subject: Re: [Xymon] alerting on percentage of memory a process is using

Hi Paul,

have a look at `clientlog`, <http://xymon.com/xymon/help/manpages/man1/xymon.1.html>;

You can use the `ps` or `top` section to grep-sed-awk-perl your data from it:

xymon 127.0.0.1 "clientlog your.host section=ps" | grep-sed-awk-perl-magic

Cheers
Thomas

• http://www.it-eckert.com/

On 03 Jan 2014, at 05:24, Root, Paul T <user-76fdb6883669@xymon.invalid<mailto:user-76fdb6883669@xymon.invalid>> wrote:


Hi,
                We have a server that has some software that has a memory leak. Upgrading is a long and arduous task. In the meantime, we want to watch the processes so that when they hit 15% or something, we can get alerted. The PROC line in analysis.cfg is just for quantity. So I was thinking I could pull the data out of xymon, and check the process table on the server. I was thinking it was something with xymondboard, but that doesn't seem to be it. Can someone point me in the right direction for this?

                Or maybe it would be better to just have an external script run the ps directly?

Paul Root
Lead Engineer
CenturyLink Network Reliability Operations Center

600 Stinson Blvd, N.E.
Flr 2N
Minneapolis, MN 55413
Direct: (651)312-5207

user-76fdb6883669@xymon.invalid<mailto:user-76fdb6883669@xymon.invalid>