Questions tagged [cacti]

Cacti is an open source, web-based graphing tool, written in PHP, using RRD as storage, and RRDtool for graphing. It allows to poll services at intervals and graph resulting data, such as CPU load, network bandwidth ulitization, temperature data and others, usually, using data from SNMP OID's.

Courtesy Wikipedia, Cacti (Software):

Cacti is an open source, web-based graphing tool designed as a frontend to RRDtool's data storage and graphing functionality. Cacti allows a user to poll services at predetermined intervals and graph the resulting data. It is generally used to graph time-series data of metrics such as CPU load and network bandwidth utilization. A common usage is to monitor network traffic by polling a network switch or router interface via SNMP.

The frontend is written in PHP; it can handle multiple users, each with their own graph sets, so it is sometimes used by web hosting providers (especially dedicated server, virtual private server, and colocation providers) to display bandwidth statistics for their customers. It can be used to configure the data collection itself, allowing certain setups to be monitored without any manual configuration of RRDtool. Cacti can be extended to monitor any source via shell scripts and executables.

Cacti can use one of two backends - "cmd.php" a PHP script suitable for smaller installations or "spine" (formerly cactid) a C-based poller which can scale to thousands of hosts.

A large and quite active community has formed around the Cacti forums and Plugin Sites providing valuable scripts, templates, advice on writing plugins and documentation.


Useful links

118 questions
0
votes
1 answer

Use Cacti to Monitor HTTP Status Codes of Request Responses?

I have a proxy script that makes HTTP GET requests to other pages using cURL through PHP. Is it possible to monitor what response codes are returned to those cURL requests, using Cacti? If not Cacti, possible with any similar monitoring system? For…
Ian
  • 11,920
  • 27
  • 61
  • 77
0
votes
0 answers

Cacti change template to print half of current value

How to create a graph template in cacti that would show the graph with half of their values (divided by 2). I.e: Current, Average, Maximum I m currently using the default Interface bit/sec 64-bit counters. With regards, Jan
janbegjan
  • 1
  • 1
0
votes
1 answer

cacti - multi cpu util - multi line OID

I have the OID: .1.3.6.1.2.1.25.3.3.1.2 I got 24 rows (I have 24 core server), I want to create one graph with all the rows to see the utilization. Please help me :) Thanks...
gabi
  • 1,003
  • 5
  • 12
  • 30
0
votes
1 answer

Cacti - Changing environment variables at runtime.

I'm using the Cacti script/command method to collect data. I have a perl script that connects to an Oracle database and returns two numbers. This script works perfectly when run on the command line (Unix). For this perl script to work properly I…
mscccc
  • 2,190
  • 6
  • 25
  • 39
0
votes
1 answer

Different graphs between MRTG and CACT

Hi guys I need your help, in a few words I have one node installed in CACTI and MRTG but after few months I saw and my graphs is not working properly en MRTG. Why I have this big different? Attached the logs. Thanks I hope you can help me. Logs:…
0
votes
1 answer

Moved database dir | Can't acess mysql through default port 3306 from localhost or poller

WORK: The only way I can localy acess is to specify the locaction dir of the database in DATABASE_PORT ex: $database_type = 'mysql'; $database_default = 'database'; $database_hostname = 'localhost'; $database_username =…
Jhonatan M
  • 31
  • 2
0
votes
1 answer

cacti automation tool creates devices in folders

I have a problem configuring my Cacti 1.2.11. I created an automation rule for discovered devices, it finds the proper info and creates devices and graphs for them. The only problem is that it creates device folder and device in it, instead of…
Роман
  • 11
  • 1
0
votes
1 answer

Simple script to put snmpbulkwalk results into variables, how can I put all data in 2 arrays?

I made a simple script for representing a Cacti Graph, and it works, but obviously it's not really optimized, because I'm doing 8 queries with snmpbulkwalk and splitting by line number (FNR==x), while I could have done just 2 queries, using 2…
Andrea
  • 35
  • 6
0
votes
1 answer

cacti - issue on using one graph template for different devices

I created a bash script to get the disk usage of a linux ubuntu server. After that, I created a graph template (using the data source which contains the bash script to get the disk usage of a server). Then I created 2 different devices which points…
vanir
  • 349
  • 3
  • 11
0
votes
1 answer

Data retrieval/storage & graphing solution selection

Our company have a need to set up some solution, that would allow us to grap almost live (1 second interval) data, from electrical equipment. Currently, the thing we are using, is Cacti, which allows lowest read interval to 1 minute. What would be…
Deele
  • 3,728
  • 2
  • 33
  • 51
0
votes
2 answers

Cacti is not generating the graphics

I have the cacti installed on the ubuntu 18.04 server and it is not generating the graphics. All information is -nan (not a number). I need to help solve it. Ask for the configuration files that I'm adding to the post.
Lucas Catani
  • 37
  • 1
  • 11
0
votes
1 answer

Get Maximum and Minimum value from rrd file generated by Cacti

I have an rrd file in which traffic_in and out stats of interfaces are stored. What i want is that i want Max and min values in certain time period. I'm trying this command but it is giving me error ERROR: invalid rpn expression in: v,MAX rrdtool…
Terminator
  • 117
  • 7
0
votes
0 answers

cacti rrd file - NaN values

I have a small problem with my rrd file, I am trying to put it on cacti graph but is not working properly. 1. I tried to rrdtool update manualy rrd file and last_ds is modified but values not. 2. Poller is setup on crontab at 5 min so I have setup…
Slashlinux
  • 57
  • 11
0
votes
0 answers

How to read Cacti RRD Files and save it to CSV file using python

I currently use cacti as the monitory platform. I need to read the collected data saved in rrd files and put it in a CSV to transform it to JSON format (It will be put in a map) using Python. How could I get the data from the rrd using python? Thank…
0
votes
1 answer

Updating values in an existing RRD file

I have an rrd file working fine under cacti, drawing a graph for me for more than a year from one data source. Today, I discovered that the data in the rrd file is not correct. I have corrected the data source and fixed problem for the future.…
takobaba
  • 306
  • 1
  • 4
  • 15