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)
Getting Apache Stats and Virtualhost Traffic Stats via SNMP
Moderators: Developers, Moderators
graphs by virtualhost
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.
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.
- TheWitness
- Developer
- Posts: 17061
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Yes, I will send a note to someone I know is doing so for comment.
TheWitness
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?
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?
Re: Getting Apache Stats and Virtualhost Traffic Stats via S
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.mikeq wrote:is it possible 2 get apache stats (number of processes etc) via net-snmp?
Code: Select all
exec /usr/local/bin/apache_processes.sh
Code: Select all
snmpwalk -v1 -c public localhost .1.3.6.1.4.1.2021.8.1
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.mikeq wrote:is it possible 2 retrieve traffic stats by apache virtualhosts? (like mod_watch and mrtg)
-Ian
Who is online
Users browsing this forum: No registered users and 6 guests