[BlueOnyx:11042] Re: swatch and system monitoring
Richard Morgan
richard at morgan-web.co.uk
Sun Jul 29 20:01:53 -05 2012
Hi
The script you want is: /usr/sbin/swatch
By the time the Perl script gets to line 170, there may be a $body variable containing data which is emails.
You could probably add some output to this just after the if ($body) { line... maybe $body .= `top -b -n1`; (untested)
I would expect to see this file get updated from time to time, so any changes may get wiped when there is an update.
HTH.
----- Original Message -----
From: Will Nordmeyer
To: blueonyx at mail.blueonyx.it
Sent: Monday, July 30, 2012 1:19 AM
Subject: [BlueOnyx:11041] swatch and system monitoring
Hi
I'm running on a BlueOnyx 5106R and am trying to modify the cpu monitor. For the past week or so, I am regularly getting emails that the CPU is moderately utilized, but then it drops back.
Unfortunately, by the time I can access the server, I don't generally see the problem. What I'd like is to modify that email so that when the CPU is moderately, or heavily utilized (or memory, etc.) the email contains a top report, or something else that would give me some indication as to what's taking up the CPU/Memory/Network.
Any advice/assistance/recommendations would be greatly appreciated.
------------------------------------------------------------------------------
_______________________________________________
Blueonyx mailing list
Blueonyx at mail.blueonyx.it
http://mail.blueonyx.it/mailman/listinfo/blueonyx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20120730/0fa64e8e/attachment.html>
More information about the Blueonyx
mailing list