Comments on How to Install Cacti SNMP Monitoring Tool on Debian 9

Cacti is a web-based network monitoring tool, completely open source, designed to display network and system graphics via RRDtool. This tutorial will show you how to install and configure Cacti network monitoring tool from source to ensure that you get the latest version on Debian 9.

16 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: H.Z.

Forget the netstat, please! It is deprecated. Use ss instead, for exapmle

ss -tlp instead of netstat -tnlp

By: Lukas

Thanks for the guide. Implemented now on my RPi and Debian-based NAS.

Appreciated!

By: garba

Hello i want a help to install cacti.. i am a new user of linux and i will like to have someone who will asisst me..

By: Anonymous

Great tutorial!!

By: Djago

Hi!

Thanks for the tutorial! I'm having a strange problem with SNMP. I'm stuck when running systemctl status snmpd.service. The output is:

Output

The strange part is that sometimes I get Unknown token: defaultMonitors, but then I restart snmpd and the token is ok, but I still can't start the service.

Any clues?

By: Djago

I thinkg I hit the nail!

When you said:

Uncomment the line to listen for connections on all interfaces

agentAddress udp:161,udp6:[::1]:161

but on the screenshot you also commented the previous agentAddress

So I simply commented:

#agentAddress udp:127.0.0.1:161

And then the service started OK!

Thanks for the tutorial!

By: Djago

Suggestion:

When using wget the user can get the not trusted error, so you can advice to get it using --no-check-certificate or installing ca-certificates!

 

Regards,

Djago

By: djago

* When issuing the line mysql -u cacti_user cacti -p < /var/www/html/cacti.sql I get an error (1227) telling me that "you need (at least one of) the SUPER privilege(s) for this operation", so I had to run the command with the root user.

* Following the tutorial, when I get to the point of the installation, in the screen when you choose to install a New Primary Server, the line reading the Database: I get a %s instead of cacti, even when the config.php file reads 'cacti'. Seems to work ok even with the %s displayed.

* Maybe you should separate the example "In order to add a new device to be monitored" from the rest of the tutorial leaving it to the end and stating that this is a tutorial on how to use it, and put the "Finally, in order for Cacti poller to start collecting data about monitored devices,..." near the configuration.

* I want to thank you again for your clear and concise tutorial. I've managed to follow it almost verbatim and you not only give directions but also explain briefly!

* Have you ever considered to upload a virtual machine preconfigured with Debian+Cacti? I've found 2 (I didn't look much, only the first google results). One of them is REALLY old: Cacti 0.8.8a running on a Centos 6 x64; it's fast and small, but very old, and upgrading Centos to 7 it's not an easy task. The other is newer, Centos 7 and Cacti 1.1.30, but the VM is BIG (2.0Gb) and runs slow (about 10 seconds every click on the webgui). I've managed to follow your tutorial from a clean minimal debian netinstall but it took me some time to do it.

By: maxime

when i put my http://ip_address/install :

FATAL: Connection to Cacti database failed. Please ensure the database is running and your credentials in config.php are valid.

i'm lost...

By: B.B.

Great tutorial! thanks!

By: Benjamin Padilla Romero

Hello, the guide works perfectly, I would only add one detail:

Once Cacti was installed, I had a problem showing the graphics made by the crone and also the status of the machines was always unknown. to solve it, they must only give write and read permissions to the user in the folder: "/ var / www / html / rra" that way the crone job could write the graphics in the specific directory.

By: shinrei

this what i do when following this tutorial.

 

1.      chmod -R 755 /var/www/html/rra2.     nano /etc/cron.d/cacti     and add    */5 * * * * root /usr/bin/php /var/www/html/poller.php > /var/www/html/log/cron.log 2>&13.     cd /etc/cron.d/    chown root:root cacti

 

Thank you

By: Nick ODell

The directive

innodb_additional_mem_pool_size

is deprecated, and was removed in MySQL 5.7.4. Using it causes an error in Debian Buster.

 

When installing Cacti via the web interface, access the system's IP address or domain name from a browser and open the following URL. http://192.168.1.14/install I don't have access to that address ... What can I do?

When installing Cacti via the web interface, access the system's IP address or domain name from a browser and open the following URL. http://192.168.1.14/install I don't have access to that address ... What can I do?

By: luis oliva

cuando ejecuto el comando mysql -u cacti_user cacti -p < /var/www/html/cacti.sql me aparede un ERORO 1045 (28000): Access denied for user ´cacti_user´@´localhost´ (using password: YES), cual es el error?

By: Farizi

Hi sir, i have trouble while entering last command " mysql -u cacti_user cacti -p < /var/www/html/cacti.sql ".

The output say ERROR 1045 (28000): Access Denied for user 'cacti_user'@'localhost' (using passowrd: YES)

 

Please help me