Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20396

Re: Monitoring Services in Red Hat 6 with Solarwinds SAM

$
0
0

An update on the above.  I have found a script that will do what I want HOWEVER for some reason it's only working on very limited services.  When I run it against the mysqld or httpd services on the red Hat machines it works fine.  However when I then run it against tomcat or tomcat2 it doesn't seem to be able to find the script even though on the Red Hat machine itself I can prove that they are running.  The script returns that the services are in a critical condition when they are actually up.  Any help appreciated...

 

perl ${SCRIPT} tomcat2

 

 

#!/usr/bin/perl

#use strict

 

 

if (scalar(@ARGV) < 1 )

{

  exit(0);

}

 

 

$service = $ARGV[0];

$host = "/bin/hostname";

chomp $host;

 

 

$result = sprintf("/bin/ps cax | /bin/grep -w \'.*%s$\'", $service);

 

 

system($result);

 

 

printf "Statistic.proc: %d\n", $?;


Viewing all articles
Browse latest Browse all 20396

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>