Getting Apache Stats and Virtualhost Traffic Stats via SNMP

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
mikeq

Getting Apache Stats and Virtualhost Traffic Stats via SNMP

Post by mikeq »

is it possible 2 get apache stats (number of processes etc) via net-snmp?

is it possible 2 retrieve traffic stats by apache virtualhosts? (like mod_watch and mrtg)
tenkawa69
Posts: 5
Joined: Wed Jun 29, 2005 5:25 am

graphs by virtualhost

Post by tenkawa69 »

hi everybody ,

i would like to know if it is possible to get graphs of apache by virtualhost.

i know that mod_watch and mrtg can do it.

i hope you can help me

thx in advance.
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Yes, I will send a note to someone I know is doing so for comment.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
tenkawa69
Posts: 5
Joined: Wed Jun 29, 2005 5:25 am

Post by tenkawa69 »

thanks in advance thewitness for you help

everybody do a great job

thx again.
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Re: Getting Apache Stats and Virtualhost Traffic Stats via S

Post by raX »

mikeq wrote:is it possible 2 get apache stats (number of processes etc) via net-snmp?
If these statistics can be gathered using a shell command, you can use net-snmp's 'exec' syntax to allow remote monitoring of this data. For instance, if you had a script on your webserver that returned the number of running Apache processes, you could put the following in your snmpd.conf file.

Code: Select all

exec /usr/local/bin/apache_processes.sh
To graph this data, you need to look at the UCD-SNMP-MIB::ext table and pick the correct OID that grabs the value from your script.

Code: Select all

snmpwalk -v1 -c public localhost .1.3.6.1.4.1.2021.8.1
mikeq wrote:is it possible 2 retrieve traffic stats by apache virtualhosts? (like mod_watch and mrtg)
Again yes, but it's really a matter of finding out how MRTG was able to grab these statistics from mod_watch. I have never used mod_watch, but I do know that Cacti can graph anything that MRTG can.

-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests