<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3020" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Dear All,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have written a scripts which we will give the
output like top command </FONT></DIV>
<DIV><FONT face=Arial size=2>but on nagios screen it shows me only one line
status information also in mail notification.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I want to print all output of this file on mail as
well as on Nagios status Information screen</FONT></DIV>
<DIV><FONT face=Arial size=2>The current status shows me like this.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>
<TABLE border=0>
<TBODY>
<TR>
<TD class=dataVar>Current Status:</TD>
<TD class=dataVal>
<DIV class=serviceOK> OK </DIV></TD></TR>
<TR>
<TD class=dataVar>Status Information:</TD>
<TD class=dataVal>%Mem %CPU Command User PID
Time</TD></TR></TBODY></TABLE></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I want in fromat </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Current Status OK </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Status Information:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>%Mem
%CPU
Command
User
PID Time<BR>7.1
0.3 MailScanner
root
20492 00:00:01</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>7.1
0.3 MailScanner
root
19144 00:00:01</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>7.1
0.2 MailScanner
root
19652 00:00:01</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>7.1
0.2 MailScanner
root
19388 00:00:01</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>7.0
0.2 MailScanner
root
19617 00:00:01</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>4.3
0.0
clamd
clamav
3919 00:00:03</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>3.9
0.0 rhn-applet-gui
root
5587 00:00:03</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>3.6
0.5
X
root
4921 00:00:29</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>3.5
0.0
mysqld
mysql
5725 00:00:00</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>3.5
0.0 MailScanner
root
19143 00:00:00</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>3.0
0.0
nautilus
root
5563 00:00:00</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>2.5
0.6 gnome-terminal
root
10650 00:00:07</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>2.3
0.0 gnome-panel
root
5558 00:00:00</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>2.1
6.9 gnome-system-mo
root
23128 00:00:19</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>2.1
0.0 gnome-session
root
5225 00:00:00</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>2.0
0.0 wnck-applet
root
5782 00:00:00</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>1.8
0.0 mixer_applet2
root
5840 00:00:00</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>1.5
0.0 clock-applet
root
5843 00:00:00</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>1.4
0.0
gconfd-2
root
5292 00:00:01</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>1.4
0.0
eggcups
root
5583 00:00:00</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>1.3
0.0 notification-ar
root
5845 00:00:00</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>1.3
0.0
metacity
root
5390 00:00:00</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>1.3
0.0 gnome-settings-
root
5362 00:00:00</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>1.2
0.0 gnome-volume-ma
root
5570 00:00:00</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>0.8
0.0 pam-panel-icon
root
5585 00:00:00</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>0.8
0.0
hald
root
4222 00:00:00</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>0.6
0.0 gnome-vfs-daemo
root
5735 00:00:00</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>0.5
0.0
httpd
apache
5604 00:00:00</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>0.5
0.0
httpd
apache
5603 00:00:00</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>0.5
0.0
httpd
apache
5602 00:00:00</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>0.5
0.0
httpd
apache
5601 00:00:00</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>0.5
0.0
httpd
apache
5600 00:00:00</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>0.5
0.0
httpd
apache
5599 00:00:00</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>0.5
0.0
httpd
apache
5598 00:00:00</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>0.5
0.0
httpd
apache
5597 00:00:00</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>0.5
0.0 gdm-binary
root
4900 00:00:00</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>0.5
0.0 bonobo-activati
root
5327 00:00:00</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>0.4
0.0
sshd
root
14828 00:00:00</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>If I run the command on shell the above output will
show me</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[root@centos4 ~]# ksh
check_top_process.sh.old<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Could someone help me or is there other plugin
which will give the all process list with details</FONT></DIV>
<DIV><FONT face=Arial size=2>also I have attached the script for
reference.</FONT></DIV>
<DIV><FONT face=Arial size=2>Thanks </FONT></DIV>
<DIV><FONT face=Arial size=2>Nilesh</DIV></FONT></BODY></HTML>