Quantcast
Channel: VMware Communities : Popular Discussions - Hyperic User Forums
Viewing all articles
Browse latest Browse all 52618

Apache 2.0 vhost and mod_rt trouble.

$
0
0
Hello,
I'm new to Hyperic so my question can be obvius but I can't find documentation or other forum about that.
I'have an apache with 4 virtual host (in separate config files included by httpd.conf) on a centOs 5.x system.
I have configured snmp e mod_rt as documentationa and in hyperchq the service is discovered and all virtualhost seen.


The first problem was about rt_log files that in httpd.conf don't contains any data, so i add in any vhost definition the lines:

CustomLog logs/rt_log  rt_log
CustomLog logs/enduser enduser

And now the logs is write at any http call but  the traffic data is not send in virtualhost metric but only in the general metric. I look in the log format and no domainname is found so I suppose that the rt_log is for general and I must write a rt_log for domain. In internet I found that on redhat mod_rt installation the name on virtualhost must be <domain><port>rt_log but don't work.

What is the right configuration to allow metric data on vhost?

My httpd.config part:

# Hyperic SMNP module
LoadModule snmpcommon_module modules/libsnmpcommon.so
LoadModule snmpagt_module modules/libsnmpmonagt.so

SNMPConf conf
SNMPVar var

LoadModule rt_module modules/mod_rt.so

LogFormat "%S" rt_log
LogFormat "%R" enduser
CustomLog logs/rt_log  rt_log
CustomLog logs/enduser enduser


An example of my vhost.conf

<VirtualHost *:80>
  ServerName test.localhost:80

   DocumentRoot "/home/www/combo/"

  <Directory /home/www/combo>
    Options Includes FollowSymLinks
    AllowOverride AuthConfig Limit FileInfo
    DirectoryIndex home.html
    order allow,deny
    allow from all
  </Directory>

        CustomLog logs/rt_log  rt_log
        CustomLog logs/test.localhost80rt_log rt_log
        CustomLog logs/enduser enduser

</VirtualHost>



An example of my logs/rt_log

/core/js/A_scriptLayout.js 1295520443284 2726 200 93.148.242.199
/core/js/cuwa/xtcore.js 1295520443288 1601 200 79.48.123.101
/core/js/B_scriptForms.js 1295520443301 653 200 93.148.242.199
/core/media/img/bg_spriteCD.png 1295520443307 367 200 79.48.123.101
/promozioni-sconti/offerte/e-coupon/101213-wb.html 1295520443341 5483 200 82.49.203.189
/core/media/img/bg_spriteBoxSpec1.png 1295520443347 286 2



Any halp is welcome.

Regards
Lucio

Viewing all articles
Browse latest Browse all 52618

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>