[Orca-users] Procallator - script addtion issue
honey bajaj
honeybajaj1 at rediffmail.com
Tue Mar 30 15:11:27 PDT 2010
Hi All,
I am trying to incorporate tomcat monitoring through procallator on linux hosts, but am unable to pass my variables to put_output sub routing as I receive 'use of uninitialized value in print' error message, following is the script,I am trying to incorporated , kindly suggest
my $host = 10.10.10.10:8808;
my $username = abcd;
my $password = xyz;
my $connector = jk-9239;
my $url = "http://$username:$password"."\@$host/manager/status?XML=true";
my $xml = `GET $url`;
my $tomstatus = XMLin($xml);
if( $Tomcat == 0 ){
($jvm_memory_free) = ($tomstatus->{jvm}->{memory}->{free});
($jvm_memory_max) = ($tomstatus->{jvm}->{memory}->{max});
}
else {
($jvm_memory_free) = ($tomstatus->{jvm}->{memory}->{free});
($jvm_memory_max) = ($tomstatus->{jvm}->{memory}->{max});
}
put_output("JVM_MEMORY_FREE", $jvm_memory_free,
"JVM_MEMORY_MAX", $jvm_memory_max
);
Thanks for all your help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/orca-users/attachments/20100330/40c8449e/attachment.html>
More information about the Orca-users
mailing list