Our VPS Cloud Community
|
#1
|
|||
|
|||
We recently launched the VPS.NET server monitoring product. You can read about it here: http://vps.net/forum/forums/announce...r-monitoring-2
It is based on Serverdensity.com's product, so we will link there for further info and documentation below. Here are the instructions needed to install it on your server. It is a 3-5 min job. Instructions Agent instructions link When you add a new server, the instructions for installing the agent will be displayed. You can access this page again by clicking the Agent link in the options on the server list table from the Servers tab in the Server Density interface. This is important because it shows the configuration details for that specific server. 1. Download The agent must be installed onto the server you wish to monitor, but it can be installed as any regular user - it does not need root privileges. As such, you need to log into your server via SSH as the user you wish to install/run the agent under. Once logged in, you need to download the agent package using a command such as wget: 2. Extract Once downloaded, you need to extract the agent files. They will be extracted to the current directory and create an sd-agent directory: Code:
tar xvfz sd-agent.tar.gz 3. Configure Agent configuration table Within the sd-agent directory that has been created, you need to edit the config.cfg file. This is where you need the configuration details as displayed on the agent installation instructions for your server inside Server Density (Agent link from the list table on the Servers tab). See the Apache status instructions for more details on configuring this metric. An editor such as nano will suffice for this: Code:
nano -w sd-agent/config.cfg Options
Code:
[Main] sd_url: https://example.serverdensity.com agent_key: fd103d1018c3e7c26b52aab1f44d704c apache_status_url: http://www.example.com/server-status/?auto Change the current directory to the sd-agent directory and then issue the start command. The agent runs as a daemon so you can then close the SSH session and the agent will continue to run. Code:
cd sd-agent/ python agent.py start Daemon control The agent daemon works like any other *nix daemon in that it will accept the commands start, stop and restart. Just remember you need to execute it using Python from within the directory the files are in. You can confirm it is running by the existence of the PID file at /tmp/sd-agent.pid. Code:
python agent.py start|stop|restart|update Linux startup By default the monitoring agent will not start on boot. We provide a Linux startup script that can be quickly installed to allow the agent to be automatically started on boot. Follow the instructions here to install this script. Note The usual PID file location /tmp/sd-agent.pid changes when using the init.d script to /var/run/sd-agent.pid. Ports and firewalls The agent will need to be able to communicate with our servers. Data is only sent one way - from your server to our servers - over standard HTTP port 80. For added security, you can set the agent to use SSL by entering https as part of the sd_url in the agent config.cfg file. If you do this, port 443 must be open on your firewall. Ask below if you have questions!
__________________
a node a day keeps the doctor away... ![]() http://twitter.com/ditlev/ <- follow me on Twitter! Join the VPS.NET group on LinkedIN |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to access remote MySQL Server from Apache Web Server? | bestvpscloud | General Discussion | 19 | 11-06-2009 01:07 PM |
| Request: Setup Mumble-Server On Ubuntu | Instinct | Tutorials and How-To's | 0 | 07-27-2009 03:57 PM |
| Simple Email Server Setup (Debian 5.0, Rails) | cbl2001 | Technical discussions | 1 | 07-05-2009 01:41 PM |








