LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-30-2008, 11:35 AM   #1
velvel
LQ Newbie
 
Registered: Mar 2008
Posts: 4

Rep: Reputation: 0
nagios plug-in to monitor apache


i have to create nagios plugin to monitor the apache web server ,particularly the number of active and passive connections from client and number of threads active at any instant. So how can get the needed datas from the apache web server... Suggest me way to get those datas
 
Old 03-30-2008, 10:07 PM   #2
zmanea
Member
 
Registered: Sep 2003
Location: Colorado
Posts: 85

Rep: Reputation: 15
The following should give you the number of current connections:

netstat -anp | grep httpd | grep -c EST

This should give you the number of threads:

ps aux | grep -v grep | grep -c httpd
 
Old 05-23-2008, 11:02 AM   #3
sgm277
LQ Newbie
 
Registered: Apr 2008
Posts: 13

Rep: Reputation: 0
Quote:
Originally Posted by zmanea View Post
The following should give you the number of current connections:

netstat -anp | grep httpd | grep -c EST

This should give you the number of threads:

ps aux | grep -v grep | grep -c httpd
what is the difference "LISTEN,SYN_RECV,SYN_SENT,ESTABLISHED,ITMED_WAIT,TIME_WAIT...", "netstat -anp | grep httpd | grep -c EST" is the number of current connections, but I think currnet connections is not the number that how many people access apache same time (simultaneously)" ,if I want to know "how many people access apache on the same time (simultaneously)" , what should I do ?
 
Old 05-23-2008, 12:47 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,017
Blog Entries: 54

Rep: Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764
Quote:
Originally Posted by velvel View Post
i have to create nagios plugin to monitor the apache web server ,particularly the number of active and passive connections from client and number of threads active at any instant. So how can get the needed datas from the apache web server.
Apache has it's own status URIs, maybe look into getting info out of those. Even better check the Nagios Plugin Exchange first. Maybe somebody already invented this wheel.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios plug-in doubts velvel Linux - Software 1 03-26-2008 03:11 PM
Apache, nagios and 403 forbidden gfem Fedora 1 10-04-2007 02:43 PM
Monitor Plug-n-play wood@addanc Linux - Desktop 2 03-11-2007 11:27 AM
Can I replace pin in monitor plug? General Linux - Hardware 2 12-16-2006 11:15 AM
non Plug and Play monitor Maver Linux - Hardware 3 04-23-2004 05:06 PM


All times are GMT -5. The time now is 01:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration