Graph Settings Installation Cacti and all of its dependencies can by installed through apt-get on Ubuntu This guide will also install cacti-spine, which is a faster way to poll servers for information than the default php script. In this guide, we will only be graphing the VPS where cacti is installed.
The configuration of the snmpd daemon will happen later in the article. This installation will pull in quite a few packages that require user-intervention. If you have not set up MySQL, you will be prompted for a root user password.
Make your selection and confirm the password to continue. While not mandatory, it is highly recommended that you set a password? If this field is left blank, the password will not be changed. New password for the MySQL "root" user: Please update your php. Maybe you must also change your? The initial configuration of Cacti also happens during installation. There are a few questions you need to answer. Please select the webserver type for which cacti should be automatically? The cacti package must have a database installed and configured before?
This can be optionally handled with dbconfig-common. If you are an advanced database administrator and know that you want to? Otherwise, you should probably choose this option. Configure database for cacti with dbconfig-common? Provide the password for the administration of the Cacti database that you set up during the MySQL configuration. Please provide the password for the administrative account with which? Password of the database's administrative user: Next, it asks for a password for Cacti to use with the database.
Please provide a password for cacti to register with the database? If left blank, a random password will be generated. MySQL application password for cacti: The installation should complete as expected. Make sure you are editing the snmpd. Comment out the line for "connections from the local system only" and uncomment the line for listening for "connections on all interfaces". Listen for connections from the local system only agentAddress udp: We will be changing this to reference our specific Cacti server.
Use either your cloud server's domain name or its IP address. You can add the physical location of your server and a contact email.
These may be helpful for distinguishing machines if you are monitoring a large number of cloud servers. These are not the passwords you entered during installation. Instead, enter the following default values. You are now on your Cacti page. General Configuration A few options must be changed to ensure that Cacti produces data correctly. In the General tab, we want to change some parameters.
Change these settings to match what is shown here. Change these options and match what is shown here. Every Minute Whenever the Poller Interval is changed, the cache must be emptied. Creating Devices and Graphs Device Settings To begin graphing, we need to set up device profiles and tell Cacti what to graph.
Confirm the delete on the following page. Now, you need to fill out some information that describes your device. Fill out the following fields. Ubuntu Cacti Server Hostname: Select each of the right-hand boxes in the light-blue subheadings to select all of the graphs. On the next page, you can change the color of some of the graphing choices.
Click on the last tab in the top-right corner. It should look like a graph. Your VPS will take a while to generate values for these graphs. It might be five or ten minutes before you even see an empty graph. Sometimes, it will appear that there is a broken image until there is enough data to graph.
If you come back in a few hours, you will have some colorful graphs showing some important system statistics. Click on each graph to show daily, weekly, monthly, and yearly graphs for that same resource. Now you have access to Cacti's graphing capabilities. Cacti becomes more useful with every new cloud server you tell it to monitor, so explore the possibility of adding more servers as Cacti devices.