I have a command called "remstat" that I run:
root> more remstat
echo
echo -- ServletExec - Remedy Mid-Tier --
echo
ps -ef |grep newatlanta | grep servletexec
echo
echo -- AR Server Daemon ----------------------------------
echo
ps -ef |grep arserverd | grep <servername>
echo
echo -- AR Monitor ----------------------------------------
echo
ps -ef |grep armonitor | grep <servername>
echo
echo -- AR Fork Daemon ------------------------------------
echo
ps -ef |grep arforkd | grep <servername>
echo
echo -- AR Services ---------------------------
echo
ps -ef |grep arsvcdsp | grep <servername>
echo
echo -- AR Plugins ----------------------------------------
echo
ps -ef |grep arplugin | grep <servername>
echo
echo -- AR E-mail Engine ----------------------------------
echo
ps -ef |grep AREmail | grep <servername>
echo
echo -- Oracle Processes ----------------------------------
echo
ps -ef | grep pmon | grep oracle
ps -ef | grep tnslsnr | grep oracle
echo
echo -- Check via arsignal - OK if nothing is returned ----
arsignal -g <servername>
echo
It outputs something like this:
root> remstat
-- ServletExec - Remedy Mid-Tier --
root 2716 1 0 Jan 18 ? 224:25 /usr/java/bin/java
-Djava.naming.factory.initial=com.newatlanta.servletexec.Ini
-- AR Server Daemon ----------------------------------
root 2405 2404 0 Jan 18 ? 833:46 ./arserverd -s
<servername> -i /usr/ar -l /etc/arsystem/<servername>
-- AR Monitor ----------------------------------------
root 2404 1 0 Jan 18 ? 0:00 ./armonitor -s
<servername> -c /etc/arsystem/<servername>/armonitor.conf
-- AR Fork Daemon ------------------------------------
root 2674 2405 0 Jan 18 ? 14:16 ./arforkd -s
<servername> -l /usr/ar/db/arfork.log
-- AR Services -----------------------------------------
root 2693 2404 0 Jan 18 ? 3:27 ./arsvcdsp -s
<servername> -d /usr/ar
-- AR Plugins ----------------------------------------
root 2694 2404 0 Jan 18 ? 124:23 ./arplugin -s
<servername> -i /usr/ar
-- AR E-mail Engine ----------------------------------
root 2747 2404 0 Jan 18 ? 3904:25 /usr/java/bin/java
-Djava.library.path=/usr/ar/AREmail/<servername> -cp /usr/ar/AREm
-- Oracle Processes ----------------------------------
oracle 2338 1 0 Jan 18 ? 232:25 ora_pmon_REMEDY
oracle 2334 1 0 Jan 18 ? 37:45
/oracle/app/oracle/product/10.2.0/bin/tnslsnr LISTENER -inherit
-- Check via arsignal - OK if nothing is returned ----
HTH,
Kelvin
From: Action Request System discussion list(ARSList)
[mailto:[email protected]] On Behalf Of Amey Bhosale
Sent: Tuesday, July 20, 2010 2:50 PM
To: [email protected]
Subject: Monitoring Process like Arserver , Apache , Tomcat using Remedy
**
Hi All,
I have requirement where i need to monitor the process like Arserver ,
Email Engine , Apache , Tomcat using Remedy.
The plan is to have a form which will display a table with records like
Arserver , Email Engine , Apache , Tomcat .
So the table would have column like Component Name , Component
Status.The Component Status is a radio button created on the form which
will have value Running or Stopped.
So when the process is Running the record will be displayed in green and
if stopped then red.
So do i need to use an Escalation where i will use a Run Process to run
the grep command to check whether the process individually are running
for Arserver , Email Engine , Apache , Tomcat
The grep command does return a long string output e.g. ps -ef | grep ars
would return 4 - 6 process running i.e. arserverd , armonitor etc.
But then this long output how will store in Remedy and confirm the
Component status to be set as Running or Stopped ?
So can someone please suggest me as how should i approach with this
requirement ?
Regards,
Amey Bhosale
_attend WWRUG10 www.wwrug.com ARSlist: "Where the Answers Are"_
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
attend wwrug10 www.wwrug.com ARSlist: "Where the Answers Are"