09-08-2008
Quote:
Originally Posted by
BMDan
Er... something like this:
if [ $(pidof httpd | awk '{print $2}') -gt 50 ]; then
echo Too many httpd processes.
fi
Again, if you have any actual input/output, we can help.
, its giving me process id of httpd is above 50 but i asked
i want to calculate threshold for users on apache, if it exceed than 100 so it generate mail, cron will run after 10 minute, and also need to calculate apache instance if it exceed than 50 so it generate email.
Is it possible to calculte apache process swap taking currently and how much it taking in MB, how much apache process taking memory, in MB.
can anyone shed a light on it plsssss................
Thanks,
Bash
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I am trying to make a script in which the user is notified once the disk space of the environment increases a particular threshold.
I have made a script for it but I am facing an error while executing it.
Could any one here guide me further??
Script
#!/bin/sh
warninglimit=350000... (22 Replies)
Discussion started by: Taranjeet Singh
22 Replies
2. UNIX for Dummies Questions & Answers
What should be the threshold for load average of a quad core processor? What constitutes "good" and "bad" load average values? (2 Replies)
Discussion started by: proactiveaditya
2 Replies
3. Solaris
Hello,
how can we determine alarm threshold from sysedge in a solaris box? can anybody please help me?
Thanks, (1 Reply)
Discussion started by: Pouchie1
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I have a table with 14 columns. How can I filter the columns 2-14, so that I get only those rows back in which the data values are >= 6 in 5 or more columns. :confused:
E.g.
A 6 6 3 6 7 8
B 1 2 3 4 5 5
C 2 2 2 6 7 8
Here I should only get back the row A.
I would like to work from... (5 Replies)
Discussion started by: danieladna
5 Replies
5. Solaris
Hi there,
Root filesystem is above threshold, I have search and cleared unwanted files which are filling up space. But the root fs is still above threshold.
I don't know about veritas volume management. Can anyone show me how to solve this. Du shows /proc is occupying a lot of space. Most of the... (2 Replies)
Discussion started by: sundar63
2 Replies
6. Shell Programming and Scripting
HI Guys
Below is my file structure and now I want if % is equal and above 95% then I will get the mail with the name of that filesystem and threshold value.
Is someone help me ?
55G 33G 22G 61% /mnt/projects/stp2int4_web_runtime
16G 14G 1.7G 90%... (2 Replies)
Discussion started by: anuragpgtgerman
2 Replies
7. Shell Programming and Scripting
i have two big file which have thousand of line.
i have to sort on two key fields then diff the file.
if the interger value of one of the column is less then or greater then 1 it should ignore it.
for example
File1
abc|7000|jhon|2.3
xyz|9000|sam|6.7
pqr|8000|kapi|4.6
File2... (11 Replies)
Discussion started by: Nishi2011
11 Replies
8. AIX
I'm writing an application that should display whether a system is running “fine” (normal activity) or if it has reached a critical level and thus indicate through a graphical interface using a green-yellow-red color scheme. The server machines in question are running AIX (but it shouldn't differ... (4 Replies)
Discussion started by: ttl_aix
4 Replies
9. Solaris
If I understand your question correctly, you are asking for an explanation of Solaris memory manager. You'd better ask Oracle that question because you are talking about Solaris kernel internals.
The operating system kernel has no reason to kick a process's memory set out of real memory until... (4 Replies)
Discussion started by: hicksd8
4 Replies
LEARN ABOUT DEBIAN
apache::testhandler
Apache::TestHandler(3pm) User Contributed Perl Documentation Apache::TestHandler(3pm)
NAME
Apache::TestHandler - a few response handlers and helpers
SYNOPSIS
package My::Test;
use Apache::TestHandler ();
sub handler {
my ($r) = @_;
my $result = do_my_test;
Apache::TestHandler::ok1 $r, $result;
}
sub handler2 {
my ($r) = @_;
my $result = do_my_test;
Apache::TestHandler::ok $r, $result;
}
DESCRIPTION
"Apache::TestHandler" provides 2 very simple response handler.
FUNCTIONS
ok $r, $boolean
The handler simply prints out "ok" or "not ok" depending on the optional $boolean parameter.
If $boolean is omitted "true" is assumed.
ok1 $r, $boolean
This handler implements a simple response-only test. It can be used on its own to check if for a certain URI the response phase is
reached. Or it can be called like a normal function to print out the test result. The client side is automatically created as described
in <http://perl.apache.org/docs/general/testing/testing.html#Developing_Response_only_Part_of_a_Test>.
$boolean is optional. If omitted "true" is assumed.
same_interp_counter
same_interp_fixup
TODO
SEE ALSO
The Apache-Test tutorial: <http://perl.apache.org/docs/general/testing/testing.html>.
Apache::Test.
AUTHOR
Doug MacEachern, Geoffrey Young, Stas Bekman, Torsten Foertsch and others.
Questions can be asked at the test-dev <at> httpd.apache.org list For more information see: http://httpd.apache.org/test/.
perl v5.14.2 2011-04-19 Apache::TestHandler(3pm)