- sudo raspi-config
- Expand File system to use entire SD card
- Memory Split to 16
****NOTE: From here down, the instructions are not Raspberry Specific. Should work on Debian, ubuntu, etc
- sudo apt-get update
- sudo apt-get upgrade -y
- sudo apt-get install -y cacti
#Set a password for mysql if you want or leave it blank
#Hit ok a couple times
#Which kind of web-server should be used by cacti?
#meanwhile back on the qnap…
On your pc:
- Go to Network Services and Select SNMP Settings
- Enable SNMP Service
- Enter your raspberry’s IP in Trap 1
- You can leave the Community field or change it. This is your snmp “password”. You will need to enter it in the Cacti page.
#Back at the Raspberry pi, eventually you will be asked if you want to “configure database for cacti with dbconfig-common” on the raspberry.
#When it is done it will drop you back to the command prompt. You are now done with the PI.
#Back at your computer:
- Next >>
- Next >>
- Admin / Admin
- Make a new password
#Add the Qnap in the Cacti webpage
- Choose Devices
- Click on ADD
- Description: Some name
- Hostname: IP or Hostname of NAS
- Host Template: Linux Server
- SNMP version 2
- SNMP community: whatever you entered in the QNAP above
- If successful you should see some info at the top like the picture below:
#Now its time to make some graphs
Select Create Graphs in the top right
You will see a list of things you can monitor. You probably want CPU, memory, eth0, and the disk partitions. Select the things you want to monitor and “create”
#Now we just need to add it to the Graph Tree
On the left, select Graph Tree and than Default Tree
Click Add on the right.
Change Item type to HOST and find your Device Name
#No go to Graphs on the top and open the Default Tree to verify that it is showing up. It will take 5-10 minutes to show any graphs.
#Take a break