Including Apache mod_status data in N2
It is possible to see which vhosts are generating Apache requests at the moment the N2 deamon sends out an update regarding the server status. After you implement the below instructions you can find the output at the bottom of the "Details" screen in the N2 viewer.
This output will only be shown if Apache is dealing with any vhost-related-requests at the exact moment of the N2 status update. These N2 updates happen once a minute so it could very well happen there is no output if the server is not too busy.
No controlpanel installed
Create a mod_status url that is available from localhost with ExtendedStatus On.
Given the mod_status url of '/server-status', add at the top of the /etc/n2/n2txd.conf file:
encoding-options modstatus http://127.0.0.1/server-status
server 10.0.0.2 port 4444
key storpeldoor
!
Restart n2txd.
Direct Admin
In /etc/httpd/conf/extra/httpd-info.conf, change the config to:
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost
</Location>
ExtendedStatus On
In /etc/n2/n2txd.conf, add at the top:
encoding-options modstatus http://127.0.0.1/server-status
server 10.0.0.2 port 4444
key storpeldoor
!
Restart n2txd and Apache.
