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: [email protected] 
  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
  [email protected]
  http://mail.blueonyx.it/mailman/listinfo/blueonyx
_______________________________________________
Blueonyx mailing list
[email protected]
http://mail.blueonyx.it/mailman/listinfo/blueonyx

Reply via email to