Process Information Plugin
Nilesh Shastrakar
nilesh at extenprise.com
Wed Mar 14 08:18:54 CET 2007
Dear All,
I have written a scripts which we will give the output like top command
but on nagios screen it shows me only one line status information also in mail notification.
I want to print all output of this file on mail as well as on Nagios status Information screen
The current status shows me like this.
Current Status: OK
Status Information: %Mem %CPU Command User PID Time
I want in fromat
Current Status OK
Status Information:
%Mem %CPU Command User PID Time
7.1 0.3 MailScanner root 20492 00:00:01
7.1 0.3 MailScanner root 19144 00:00:01
7.1 0.2 MailScanner root 19652 00:00:01
7.1 0.2 MailScanner root 19388 00:00:01
7.0 0.2 MailScanner root 19617 00:00:01
4.3 0.0 clamd clamav 3919 00:00:03
3.9 0.0 rhn-applet-gui root 5587 00:00:03
3.6 0.5 X root 4921 00:00:29
3.5 0.0 mysqld mysql 5725 00:00:00
3.5 0.0 MailScanner root 19143 00:00:00
3.0 0.0 nautilus root 5563 00:00:00
2.5 0.6 gnome-terminal root 10650 00:00:07
2.3 0.0 gnome-panel root 5558 00:00:00
2.1 6.9 gnome-system-mo root 23128 00:00:19
2.1 0.0 gnome-session root 5225 00:00:00
2.0 0.0 wnck-applet root 5782 00:00:00
1.8 0.0 mixer_applet2 root 5840 00:00:00
1.5 0.0 clock-applet root 5843 00:00:00
1.4 0.0 gconfd-2 root 5292 00:00:01
1.4 0.0 eggcups root 5583 00:00:00
1.3 0.0 notification-ar root 5845 00:00:00
1.3 0.0 metacity root 5390 00:00:00
1.3 0.0 gnome-settings- root 5362 00:00:00
1.2 0.0 gnome-volume-ma root 5570 00:00:00
0.8 0.0 pam-panel-icon root 5585 00:00:00
0.8 0.0 hald root 4222 00:00:00
0.6 0.0 gnome-vfs-daemo root 5735 00:00:00
0.5 0.0 httpd apache 5604 00:00:00
0.5 0.0 httpd apache 5603 00:00:00
0.5 0.0 httpd apache 5602 00:00:00
0.5 0.0 httpd apache 5601 00:00:00
0.5 0.0 httpd apache 5600 00:00:00
0.5 0.0 httpd apache 5599 00:00:00
0.5 0.0 httpd apache 5598 00:00:00
0.5 0.0 httpd apache 5597 00:00:00
0.5 0.0 gdm-binary root 4900 00:00:00
0.5 0.0 bonobo-activati root 5327 00:00:00
0.4 0.0 sshd root 14828 00:00:00
If I run the command on shell the above output will show me
[root at centos4 ~]# ksh check_top_process.sh.old
Could someone help me or is there other plugin which will give the all process list with details
also I have attached the script for reference.
Thanks
Nilesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070314/dda404fb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_top_process.sh
Type: application/octet-stream
Size: 1828 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070314/dda404fb/attachment.obj>
-------------- next part --------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list