

If you get a 404 error or a different page loads when you access the server status, you may have some. Restart the agent to start the monitoring Problems with server-status not being found Edit your agent config file to add the following 2 lines, specifying your credentials appropriately: apache_status_user:
Mac apache restart password#
If you have password protected your status URL, as of agent 1.11.4 you can provide the agent with a username and password to log in with. Note the ?auto at the end - this is required. If your server's IP was 127.0.0.1 then this URL would be. You need to enter the URL into the agent /etc/sd-agent/config.cfg file for the apache_status_url option. You will now need to restart your Apache web server to allow the changes to take effect. If you wish to access it from your browser, you need to add your IP address in (separated by a space). This means you will have 2 IPs listed (127.0.0.1 and your public IP). This is so the status output can only be accessed from the server itself. You should replace PUBLICIP with your server's public IP address.

This will allow the status output to be accessed from (localhost only works on the server itself - replace localhost with your server IP and it will be accessible externally to the IPs you specify in the Allow list, see below). You then need to add in the following lines to set up the location from which the status output can be parsed by the agent: Look in your Apache error_log for details. If you restart Apache after adding this line and get an error, check that mod_status has been installed correctly. On packaged Ubuntu Apache installations you can enable the mod_status module by using the a2enmod command: sudo a2enmod status 2) mod_status configurationĪdding the following line to your nf file will enable the mod_status output. Removing the # will uncomment the line and enable mod_status. This is usually compiled in by default but you may need to uncomment a line in your nf file: #LoadModule status_module modules/mod_status.so You first need to ensure the mod_status module is installed.

If you do not wish to monitor Apache then leave the default value in the /etc/sd-agent/config.cfg file and the agent will ignore it. This article is outdated and will eventually be removed. See v2 agent Apache monitoring It also requires some additional configuration of your Apache server. This metric is only available for paid accounts. The agent can parse the Apache mod_status output to show the current requests per second, idle and busy workers.
