All,
I don't have the script you asked for, but we also use a script to get
the memory status of our jrun instances. we feed this into snmp which
allows us to graph it over time using cacti. Here's the juicy part:
<snip>
#!/bin/bash
tail -n 1 /opt/jrun4/logs/instancename-metrics.log | cut -d"=" -f 2,3 |
perl -e'
$input = <STDIN>;
if ($input =~ m/.*?(\d+).+?(\d+).*/g)
{print $1-$2 . "\n";
}'
</snip>
-----Original Message-----
From: mac jordan [mailto:[EMAIL PROTECTED]
Sent: Friday, December 07, 2007 2:02 AM
To: CF-Linux
Subject: Re: Bash script cfmonitor.sh
On Jun 1, 2007 4:23 AM, Wil Genovese <[EMAIL PROTECTED]> wrote:
> I've already done this. My bash script does two things. It checks a
> specified URL for a certain string to see if CF is still responsive
> and it also calls a cf script which reports back an integer that is
> the amount of free JVM memory left.
>
>
Ooh - I'd love a copy of this!
--
mac jordan
www.webhorus.net
www.nibblous.com
www.photocena.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf
Archive: http://www.houseoffusion.com/groups/CF-Linux/message.cfm/messageid:4344
Subscription: http://www.houseoffusion.com/groups/CF-Linux/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.14