apache threshold


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting apache threshold
# 1  
Old 09-04-2008
apache threshold

Hi folks,

how can i check apache threshold values via shell scripting and what factors need to check via shell scripting process or number of users or what.

pls do advice me.

Thanks,
Bash
# 2  
Old 09-04-2008
Hi,

can any one help?

Thanks,
Bash
# 3  
Old 09-04-2008
What are your inputs? How are they generated?

What are your (desired) outputs?
# 4  
Old 09-04-2008
Hi,

Thanks for reply, 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.

Thanks,
Bash
# 5  
Old 09-07-2008
Quote:
Originally Posted by learnbash
Hi,

Thanks for reply, 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.

Thanks,
Bash
Er... something like this:
Code:
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.
# 6  
Old 09-08-2008
Do you have a different version of pidof? Mine just prints a list of PIDs, not the number of instances in $2. Or perhaps you mean '{print NF}'?
# 7  
Old 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.

Smilie, 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
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

How the free memory threshold?

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

2. AIX

Determine threshold for CPU

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

3. Shell Programming and Scripting

Diff two files with threshold value

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

4. Shell Programming and Scripting

get mail when matching with threshold value

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

5. Solaris

Rootvol above threshold

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. UNIX for Dummies Questions & Answers

threshold

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

7. Solaris

Sysedge alarm threshold

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

8. UNIX for Dummies Questions & Answers

Load Average threshold

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

9. UNIX for Advanced & Expert Users

Quota threshold

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
Login or Register to Ask a Question