GithubHelp home page GithubHelp logo

cacti / cacti Goto Github PK

View Code? Open in Web Editor NEW
1.6K 120.0 390.0 221.35 MB

Cacti ™

Home Page: http://www.cacti.net

License: GNU General Public License v2.0

PHP 60.53% JavaScript 23.62% CSS 11.33% Perl 0.07% Shell 0.36% HTML 0.05% Ruby 0.02% Less 1.92% SCSS 2.11%
cacti graph cacti-community rrdtool php network-discovery data-gathering rrd-files graph-templating cacti-framework

cacti's Introduction

Cacti ™

Cacti Commit Audit Project Status Translation Status Average time to resolve an issue Percentage of open issues


Welcome to the Cacti GitHub Site!

Introduction

We currently have two functioning versions of Cacti on this site, and several Cacti plugins supported by The Cacti Group. Our current long lived version of Cacti in the 1.2.x branch. The current release version of this branch is Cacti 1.2.22. Sometime in December 2022, we will release Cacti 1.2.23.

This pending maintenance release has several bugs fixes, and significantly more welcomed feature enhancements. You can review the CHANGELOG for the 1.2.x branch for more information on that.

Additionally, we have the develop branch. This is now an active Development Branch. In this branch, we as a team have re-grouped and are introducing several new features. We hope to be able to deliver a Christmas present for Cacti enthusiasts, which will be a Cacti 1.3.0-beta release. If you want to get involved earlier, you can simply download the development release and knock yourselves out. The 1.3.0 release will include everything in the pending 1.2.23 release, as well as several additional features from our roadmap.

System requirements vary from Cacti point release to point release. The matrix below documents the minimum tool levels for each version. With our source distribution, all the vendor included packages are pre-packeged and tested by the Cacti group, so there is no reason to use package management tools to install those dependencies.

Dependency Cacti 1.2.x Cacti 1.3.x
MariaDB 5.5+ 10.2.x+
MySQL 5.5+ 5.7+
PHP 5.4+ 8.0+
RRDtool 1.4+ 1.8+
Net-SNMP 5.5+ 5.8+

For Cacti 1.2.x, it is reasonable to run with RHEL/CentOS 7 or equivalent. However, for Cacti 1.3.x, it would be better to run on RHEL/CentOS/Rocky 8 or equivalent as this OS version makes PHP8.0 available via a DNF Stream.

However, if you wish to run Cacti 1.3.x on the RHEL/CentOS 7 distribution you can do so if you use the REMI distributions of PHP. You will also in this case have to build RRDtool 1.8+ from source, which is straightforward.

In the sections below, you can find some important first steps before installing either the Cacti 1.2.x version of the pending Cacti 1.3.x version. Good luck and enjoy Cacti.

Most modern browsers are supported with the exception of ALL Internet Explorer versions as of Cacti version 1.2.x. Do NOT attempt to use Internet Explorer of any version with Cacti 1.2.x and above.

Running Cacti from the develop Branch

IMPORTANT

When using source or by downloading the code directly from the repository, it is important to note that periodically, you may have to rerun the database upgrade cli script to bring in new columns. You can use the --forcever=1.2.22 option to assume you are upgrading from an earlier cacti version:

php -q upgrade_database.php --forcever=1.2.22

If you experience SQL errors in your Cacti log, please open a case in our Cacti issue tracker here.

Upgrading from Pre-Cacti 1.x Releases

When Cacti was first developed nearly 20 years ago, MySQL was not as mature as it is now. When The Cacti Group went about engineering Cacti 1.x, a decision was made to force users to use the InnoDB storage engine for many of the Tables. This was done as the InnoDB storage engine provides a better user experience when your web site has several concurrent logins. Though a little slower, it also provides greater resiliency for the developers.

With that said, there are several changes that you MUST perform to MySQL/MariaDB before you upgrade, and a service restart is required. Depending on your release of MariaDB or MySQL, the following settings will either be required, or already enabled as default:

[mysqld]

# required for multiple language support
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci

# Memory tunables - Cacti provides recommendations at upgrade time
max_heap_table_size = XXX
max_allowed_packet = 500M
tmp_table_size = XXX
join_buffer_size = XXX
sort_buffer_size = XXX

# important for compatibility
sql_mode=NO_ENGINE_SUBSTITUTION

# innodb settings - Cacti provides recommendations at upgrade time
innodb_buffer_pool_instances = XXX
innodb_flush_log_at_trx_commit = 2
innodb_buffer_pool_size = XXX
innodb_sort_buffer_size = XXX
innodb_doublewrite = ON

# required
innodb_file_per_table = ON
innodb_file_format = Barracuda
innodb_large_prefix = 1

# not all version support
innodb_flush_log_at_timeout = 3

# for SSD's/NVMe
innodb_read_io_threads = 32
innodb_write_io_threads = 16
innodb_io_capacity = 10000
innodb_io_capacity_max = 20000
innodb_flush_method = O_DIRECT

The required settings are very important. Otherwise, you will encounter issues upgrading. The settings with XXX, Cacti will provide a recommendation at upgrade time. It is not out of the ordinary to have to restart MySQL/MariaDB during the upgrade to tune these settings. Please make special note of this before you begin your upgrade.

Before you upgrade, you should make these required changes, then restart MySQL/MariaDB. After that, you can save yourself some time and potential errors by running the following scripts (assuming you are using bash):

for table in `mysql -e "SELECT TABLE_NAME FROM information_schema.TABLES WHERE table_schema='cacti' AND engine!='MEMORY'" cacti | grep -v TABLE_NAME`;
do
   echo "Converting $table";
   mysql -e "ALTER TABLE $table ENGINE=InnoDB ROW_FORMAT=Dynamic CHARSET=utf8mb4" cacti;
done

This will convert any tables that are either InnoDB or MyISAM to Barracuda file format, dynamic row format and utf8mb4. Note, that if you have been using MySQL or MariaDB without innodb_file_per_table set to on, you might be better in backing up your database, resetting InnoDB by removing your ib* files in the /var/lib/mysql directory, and after which restoring your database and MySQL/MariaDB tables and permissions. Before you take such a step, you should always practice on a test server until you feel comfortable with the change.

Good luck, and enjoy Cacti!

Running Database Upgrade Script

sudo -u cacti php -q cli/upgrade_database.php --forcever=`cat include/cacti_version`

Updating Cacti Version in Database

update version set cacti = '1.1.38';

Note: Change the above version to the correct version or risk the installer upgrading from a previous version.


About Cacti

Cacti is a complete network graphing solution designed to harness the power of RRDtool's data storage and graphing functionality providing the following features:

  • Remote and local data collectors

  • Device discovery

  • Automation of device and graph creation

  • Graph and device templating

  • Custom data collection methods

  • User, group and domain access controls

All of this is wrapped in an intuitive, easy to use interface that makes sense for both LAN-sized installations and complex networks with thousands of devices.

Developed in the early 2000s by Ian Berry as a high school project, it has been used by thousands of companies and enthusiasts to monitor and manage their Enterprise Networks and Data Centers.

Requirements

Cacti should be able to run on any Linux, UNIX, or Windows based operating system with the following requirements:

  • PHP 7.4+

  • MySQL 5.6+

  • RRDtool 1.3+, 1.5+ recommended

  • NET-SNMP 5.5+

  • Web Server with PHP support

PHP Must also be compiled as a standalone cgi or cli binary. This is required for data gathering via cron.

php-snmp

We mark the php-snmp module as optional. So long as you are not using ipv6 devices, or using snmpv3 engine IDs or contexts, then using php-snmp should be safe. Otherwise, you should consider uninstalling the php-snmp module as it will create problems. We are aware of the problem with php-snmp and looking to get involved in the php project to resolve these issues.

RRDtool

RRDtool is available in multiple versions and a majority of them are supported by Cacti. Please remember to confirm your Cacti settings for the RRDtool version if you having problem rendering graphs.

Documentation

Documentation is available with the Cacti releases and also available for viewing on the Documentation Repository.

Contribute

Check out the main Cacti web site for downloads, change logs, release notes and more!

Community forums

Given the large scope of Cacti, the forums tend to generate a respectable amount of traffic. Doing your part in answering basic questions goes a long way since we cannot be everywhere at once. Contribute to the Cacti community by participating on the Cacti Community Forums.

GitHub Documentation

Get involved in creating and editing Cacti Documentation! Fork, change and submit a pull request to help improve the documentation on GitHub.

GitHub Development

Get involved in development of Cacti! Join the developers and community on GitHub!


Functionality

Data Sources

Cacti handles the gathering of data through the concept of data sources. Data sources utilize input methods to gather data from devices, hosts, databases, scripts, etc... The possibilities are endless as to the nature of the data you are able to collect. Data sources are the direct link to the underlying RRD files; how data is stored within RRD files and how data is retrieved from RRD files.

Graphs

Graphs, the heart and soul of Cacti, are created by RRDtool using the defined data sources definition.

Templating

Bringing it all together, Cacti uses and extensive template system that allows for the creation and consumption of portable templates. Graph, data source, and RRA templates allow for the easy creation of graphs and data sources out of the box. Along with the Cacti community support, templates have become the standard way to support graphing any number of devices in use in today computing and networking environments.

Data Collection (The Poller)

Local and remote data collection support with the ability to set collection intervals. Check out Data Source Profile with in Cacti for more information. Data Source Profiles can be applied to graphs at creation time or at the data template level.

Remote data collection has been made easy through replication of resources to remote data collectors. Even when connectivity to the main Cacti installation is lost from remote data collector, it will store collected data until connectivity is restored. Remote data collection only requires MySQL and HTTP/HTTPS access back to the main Cacti installation location.

Network Discovery and Automation

Cacti provides administrators a series of network automation functionality in order to reduce the time and effort it takes to setup and manage devices.

  • Multiple definable network discovery rules

  • Automation templates that specify how devices are configured

Plugin Framework

Cacti is more than a network monitoring system, it is an operations framework that allows the extension and augmentation of Cacti functionality. The Cacti Group continues to maintain an assortment of plugins. If you are looking to add features to Cacti, there is quite a bit of reference material to choose from on GitHub.

Dynamic Graph Viewing Experience

Cacti allows for many runtime augmentations while viewing graphs:

  • Dynamically loaded tree and graph view

  • Searching by string, graph and template types

  • Viewing augmentation

  • Simple time span adjustments

  • Convenient sliding time window buttons

  • Single click realtime graph option

  • Easy graph export to csv

  • RRA view with just a click

User, Groups and Permissions

Support for per user and per group permissions at a per realm (area of Cacti), per graph, per graph tree, per device, etc... The permission model in Cacti is role based access control (RBAC) to allow for flexible assignment of permissions. Support for enforcement of password complexity, password age and changing of expired passwords.

RRDtool Graph Options

Cacti supports most RRDtool graphing abilities including:

Graph Options

  • Full right axis

  • Shift

  • Dash and dash offset

  • Alt y-grid

  • No grid fit

  • Units length

  • Tab width

  • Dynamic labels

  • Rules legend

  • Legend position

Graph Items

  • VDEFs

  • Stacked lines

  • User definable line widths

  • Text alignment


Copyright (c) 2004-2024 - The Cacti Group, Inc.

cacti's People

Contributors

ablyler avatar arjanoosting avatar bmfmancini avatar browniebraun avatar chilek avatar cigamit avatar coool avatar davidliedke avatar ddb4github avatar earendilfr avatar gan-dalf avatar iankberry avatar kim-fitness avatar linegod avatar marcbanyard avatar micke2k avatar netniv avatar paulgevers avatar purplegrape avatar rb83 avatar reboot1983 avatar riversdev0 avatar ronytomen avatar sjonhortensius avatar thewitness avatar thurban avatar weblate avatar xmacan avatar yongboliu avatar zersh01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cacti's Issues

rerun upgrade_database.php issue

i did now (to be save with the updates of the Database changes) a rerun of the command 'php upgrade_database.php --forcever=0.8.8h'.

root@bmk-cacti-01:/usr/share/cacti/cli# php upgrade_database.php --forcever=0.8.8h
Upgrading to 1.0.0
root@bmk-cacti-01:/usr/share/cacti/cli#

Looks perfekt - but in the Logfile i see one Error!

2016-12-29 21:34:46 - ERROR PHP NOTICE: Undefined index: reindex_method in file: /usr/share/cacti/lib/poller.php on line: 174
2016-12-29 21:34:46 - CMDPHP PHP ERROR NOTICE Backtrace: (/poller_commands.php: 112 run_data_query)(/lib/data_query.php: 93 update_reindex_cache)(/lib/poller.php: 174 CactiErrorHandler)(/lib/functions.php: 4189 cacti_debug_backtrace)

Cacti is working - this post exists only, to check if there is a bug in the procedure of upgrading the Database. I see that the first poller-event after upgrade do many things (not only standard polling)?

Reporting: Duplicate Graph

Choosing duplicate report option in drop down menu gives HTTP 500 error with this in the apache error log:

[Wed Nov 16 09:54:22.396052 2016] [:error] [pid 18278] [client 192.168.11.140:57265] PHP Fatal error: Call to undefined function duplicate_report() in /var/www/html/cacti/lib/html_reports.php on line 596, referer: http://192.168.11.15/cacti/reports_admin.php

Script/Command with multiple output fields not working

Me again! ;)

It seems that data input methods with multiple output fields doesn't work.
In the log their output seem fine like this for "Unix - Get Load Average":
2016-12-29 05:51:04 - POLLER: Poller[1] Device[1] DS[65] CMD: perl /var/www/cacti/scripts/loadavg_multi.pl, output: 1min:0.01 5min:0.03 10min:0.00
But the rrd-file is not being created and I get his warning in the log:
WARNING: Poller Output Table not Empty. Issues Found: 2, Data Sources: (DS[64]), (DS[65])
([64] is also one which is not working which is a input method I've made for myself).
It seems there is no other error or warning related to that.

Methods with a single output field like "Unix - Ping Host" are working fine.

Cacti clog

When You choose 10000 lines there is a message
>>>> LINE LIMIT OF 1000 LINES REACHED!! <<<<
and You don't see lines 1001-10000 of cacti log.

Realtime Graphs Errors

#cacti log
2016-12-23 20:49:09 - ERROR PHP WARNING: include_once(): Failed opening '/var/www/html/cacti/lib/graph_export.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in file: /var/www/html/cacti/poller_realtime.php on line: 38
2016-12-23 20:49:09 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_realtime.php: 38 include_once)(/poller_realtime.php: 38 CactiErrorHandler)(/lib/functions.php: 4167 cacti_debug_backtrace)

#apache2 log
PHP Warning: include_once(): Failed opening '/var/www/html/cacti/lib/graph_export.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/cacti/poller_realtime.php on line 38

I get errors when using this function.

Poller Errors:

2016-12-27 11:55:30 - POLLER: Poller[1] Time: 27.3367 s, Poller: , Theads: N/A, Devices: 43
2016-12-27 11:55:31 - CMDPHP SQL Backtrace: (/poller.php: 496 process_poller_output)(/lib/poller.php: 384 db_fetch_assoc_prepared)(/lib/database.php: 348 cacti_debug_backtrace)

Poller Errors after todays git upgrade

2016-12-28 12:15:30 - CMDPHP SQL Backtrace: (/cmd.php: 725 db_execute)(/lib/database.php: 110 db_execute_prepared)(/lib/database.php: 174 cacti_debug_backtrace)
2016-12-28 12:15:30 - 5 ERROR: A DB Exec Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '12:15:03, 2), (7675, cpu, 2016-12-28 12:15:03, 11), (7676, uptime, 2016-12-28 12' at line 1
2016-12-28 12:15:30 - CMDPHP SQL Backtrace: (/cmd.php: 725 db_execute)(/lib/database.php: 110 db_execute_prepared)(/lib/database.php: 174 cacti_debug_backtrace)
2016-12-28 12:15:30 - 5 ERROR: A DB Exec Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '12:15:03, 793), (4843, cpu, 2016-12-28 12:15:03, 2), (4844, uptime, 2016-12-28 1' at line 1
2016-12-28 12:15:26 - CMDPHP SQL Backtrace: (/cmd.php: 725 db_execute)(/lib/database.php: 110 db_execute_prepared)(/lib/database.php: 174 cacti_debug_backtrace)
2016-12-28 12:15:26 - 5 ERROR: A DB Exec Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '12:15:03, 2), (5519, cpu, 2016-12-28 12:15:03, 1), (5520, uptime, 2016-12-28 12:' at line 1

[patch] upgrade_database.php fails

The upgrade_database.php script fails for multiple reasons:

  • db_install_execute is defined twice and the update script run from the web page is normally using the one in install/index.php.
  • the update script to 0.8.8h is missing
  • the update script to 1.0.0 is called differently

I am going to try to attach a patch (generated with commit 4ad6ed as base)

Illegal string offset

When I switch to the Graph tab these errors are being triggering:

2016-09-02 10:43:23 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php: 229 api_tree_get_main)(/lib/api_tree.php: 556 draw_dhtml_tree_level_graphing)(/lib/html_tree.php: 394 CactiErrorHandler)(/lib/functions.php: 4137 cacti_debug_backtrace)
2016-09-02 10:43:23 - ERROR PHP WARNING: Illegal string offset 'id' in file: /www/cacti/lib/html_tree.php on line: 394
2016-09-02 10:43:23 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php: 229 api_tree_get_main)(/lib/api_tree.php: 556 draw_dhtml_tree_level_graphing)(/lib/html_tree.php: 394 CactiErrorHandler)(/lib/functions.php: 4137 cacti_debug_backtrace)
2016-09-02 10:43:23 - ERROR PHP WARNING: Illegal string offset 'id' in file: /www/cacti/lib/html_tree.php on line: 394
2016-09-02 10:43:23 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php: 229 api_tree_get_main)(/lib/api_tree.php: 556 draw_dhtml_tree_level_graphing)(/lib/html_tree.php: 394 CactiErrorHandler)(/lib/functions.php: 4137 cacti_debug_backtrace)
2016-09-02 10:43:23 - ERROR PHP WARNING: Illegal string offset 'id' in file: /www/cacti/lib/html_tree.php on line: 394
2016-09-02 10:43:23 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php: 229 api_tree_get_main)(/lib/api_tree.php: 556 draw_dhtml_tree_level_graphing)(/lib/html_tree.php: 400 CactiErrorHandler)(/lib/functions.php: 4137 cacti_debug_backtrace)
2016-09-02 10:43:23 - ERROR PHP WARNING: Illegal string offset 'id' in file: /www/cacti/lib/html_tree.php on line: 400
2016-09-02 10:43:23 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php: 229 api_tree_get_main)(/lib/api_tree.php: 556 draw_dhtml_tree_level_graphing)(/lib/html_tree.php: 400 CactiErrorHandler)(/lib/functions.php: 4137 cacti_debug_backtrace)
2016-09-02 10:43:23 - ERROR PHP WARNING: Illegal string offset 'id' in file: /www/cacti/lib/html_tree.php on line: 400
2016-09-02 10:43:23 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php: 229 api_tree_get_main)(/lib/api_tree.php: 556 draw_dhtml_tree_level_graphing)(/lib/html_tree.php: 400 CactiErrorHandler)(/lib/functions.php: 4137 cacti_debug_backtrace)
2016-09-02 10:43:23 - ERROR PHP WARNING: Illegal string offset 'id' in file: /www/cacti/lib/html_tree.php on line: 400
2016-09-02 10:43:23 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php: 229 api_tree_get_main)(/lib/api_tree.php: 556 draw_dhtml_tree_level_graphing)(/lib/html_tree.php: 400 CactiErrorHandler)(/lib/functions.php: 4137 cacti_debug_backtrace)
2016-09-02 10:43:23 - ERROR PHP WARNING: Illegal string offset 'id' in file: /www/cacti/lib/html_tree.php on line: 400
2016-09-02 10:43:23 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php: 229 api_tree_get_main)(/lib/api_tree.php: 556 draw_dhtml_tree_level_graphing)(/lib/html_tree.php: 400 CactiErrorHandler)(/lib/functions.php: 4137 cacti_debug_backtrace)
2016-09-02 10:43:23 - ERROR PHP WARNING: Illegal string offset 'id' in file: /www/cacti/lib/html_tree.php on line: 400
2016-09-02 10:43:23 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php: 229 api_tree_get_main)(/lib/api_tree.php: 556 draw_dhtml_tree_level_graphing)(/lib/html_tree.php: 400 CactiErrorHandler)(/lib/functions.php: 4137 cacti_debug_backtrace)
2016-09-02 10:43:23 - ERROR PHP WARNING: Illegal string offset 'id' in file: /www/cacti/lib/html_tree.php on line: 400
2016-09-02 10:43:23 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php: 229 api_tree_get_main)(/lib/api_tree.php: 556 draw_dhtml_tree_level_graphing)(/lib/html_tree.php: 400 CactiErrorHandler)(/lib/functions.php: 4137 cacti_debug_backtrace)
2016-09-02 10:43:23 - ERROR PHP WARNING: Illegal string offset 'id' in file: /www/cacti/lib/html_tree.php on line: 400
2016-09-02 10:43:23 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php: 229 api_tree_get_main)(/lib/api_tree.php: 556 draw_dhtml_tree_level_graphing)(/lib/html_tree.php: 400 CactiErrorHandler)(/lib/functions.php: 4137 cacti_debug_backtrace)
2016-09-02 10:43:23 - ERROR PHP WARNING: Illegal string offset 'id' in file: /www/cacti/lib/html_tree.php on line: 400
2016-09-02 10:43:23 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php: 229 api_tree_get_main)(/lib/api_tree.php: 556 draw_dhtml_tree_level_graphing)(/lib/html_tree.php: 400 CactiErrorHandler)(/lib/functions.php: 4137 cacti_debug_backtrace)
2016-09-02 10:43:23 - ERROR PHP WARNING: Illegal string offset 'id' in file: /www/cacti/lib/html_tree.php on line: 400
2016-09-02 10:43:23 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php: 229 api_tree_get_main)(/lib/api_tree.php: 556 draw_dhtml_tree_level_graphing)(/lib/html_tree.php: 400 CactiErrorHandler)(/lib/functions.php: 4137 cacti_debug_backtrace)
2016-09-02 10:43:23 - ERROR PHP WARNING: Illegal string offset 'id' in file: /www/cacti/lib/html_tree.php on line: 400
2016-09-02 10:43:23 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php: 229 api_tree_get_main)(/lib/api_tree.php: 556 draw_dhtml_tree_level_graphing)(/lib/html_tree.php: 400 CactiErrorHandler)(/lib/functions.php: 4137 cacti_debug_backtrace)
2016-09-02 10:43:23 - ERROR PHP WARNING: Illegal string offset 'id' in file: /www/cacti/lib/html_tree.php on line: 400
2016-09-02 10:43:23 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php: 229 api_tree_get_main)(/lib/api_tree.php: 556 draw_dhtml_tree_level_graphing)(/lib/html_tree.php: 400 CactiErrorHandler)(/lib/functions.php: 4137 cacti_debug_backtrace)
2016-09-02 10:43:23 - ERROR PHP WARNING: Illegal string offset 'id' in file: /www/cacti/lib/html_tree.php on line: 400
2016-09-02 10:43:23 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php: 229 api_tree_get_main)(/lib/api_tree.php: 556 draw_dhtml_tree_level_graphing)(/lib/html_tree.php: 400 CactiErrorHandler)(/lib/functions.php: 4137 cacti_debug_backtrace)
2016-09-02 10:43:23 - ERROR PHP WARNING: Illegal string offset 'id' in file: /www/cacti/lib/html_tree.php on line: 400
2016-09-02 10:43:23 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php: 229 api_tree_get_main)(/lib/api_tree.php: 556 draw_dhtml_tree_level_graphing)(/lib/html_tree.php: 400 CactiErrorHandler)(/lib/functions.php: 4137 cacti_debug_backtrace)
2016-09-02 10:43:23 - ERROR PHP WARNING: Illegal string offset 'id' in file: /www/cacti/lib/html_tree.php on line: 400
2016-09-02 10:43:23 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php: 229 api_tree_get_main)(/lib/api_tree.php: 556 draw_dhtml_tree_level_graphing)(/lib/html_tree.php: 400 CactiErrorHandler)(/lib/functions.php: 4137 cacti_debug_backtrace)
2016-09-02 10:43:23 - ERROR PHP WARNING: Illegal string offset 'id' in file: /www/cacti/lib/html_tree.php on line: 400
2016-09-02 10:43:23 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php: 229 api_tree_get_main)(/lib/api_tree.php: 556 draw_dhtml_tree_level_graphing)(/lib/html_tree.php: 400 CactiErrorHandler)(/lib/functions.php: 4137 cacti_debug_backtrace)
2016-09-02 10:43:23 - ERROR PHP WARNING: Illegal string offset 'id' in file: /www/cacti/lib/html_tree.php on line: 400
2016-09-02 10:43:23 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php: 229 api_tree_get_main)(/lib/api_tree.php: 556 draw_dhtml_tree_level_graphing)(/lib/html_tree.php: 400 CactiErrorHandler)(/lib/functions.php: 4137 cacti_debug_backtrace)
2016-09-02 10:43:23 - ERROR PHP WARNING: Illegal string offset 'id' in file: /www/cacti/lib/html_tree.php on line: 400
2016-09-02 10:43:23 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php: 229 api_tree_get_main)(/lib/api_tree.php: 556 draw_dhtml_tree_level_graphing)(/lib/html_tree.php: 400 CactiErrorHandler)(/lib/functions.php: 4137 cacti_debug_backtrace)
2016-09-02 10:43:23 - ERROR PHP WARNING: Illegal string offset 'id' in file: /www/cacti/lib/html_tree.php on line: 400
2016-09-02 10:43:23 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php: 229 api_tree_get_main)(/lib/api_tree.php: 556 draw_dhtml_tree_level_graphing)(/lib/html_tree.php: 400 CactiErrorHandler)(/lib/functions.php: 4137 cacti_debug_backtrace)
2016-09-02 10:43:23 - ERROR PHP WARNING: Illegal string offset 'id' in file: /www/cacti/lib/html_tree.php on line: 400
2016-09-02 10:43:23 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php: 229 api_tree_get_main)(/lib/api_tree.php: 556 draw_dhtml_tree_level_graphing)(/lib/html_tree.php: 400 CactiErrorHandler)(/lib/functions.php: 4137 cacti_debug_backtrace)
2016-09-02 10:43:23 - ERROR PHP WARNING: Illegal string offset 'id' in file: /www/cacti/lib/html_tree.php on line: 400
2016-09-02 10:43:23 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php: 229 api_tree_get_main)(/lib/api_tree.php: 556 draw_dhtml_tree_level_graphing)(/lib/html_tree.php: 400 CactiErrorHandler)(/lib/functions.php: 4137 cacti_debug_backtrace)
2016-09-02 10:43:23 - ERROR PHP WARNING: Illegal string offset 'id' in file: /www/cacti/lib/html_tree.php on line: 400
2016-09-02 10:43:23 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php: 229 api_tree_get_main)(/lib/api_tree.php: 556 draw_dhtml_tree_level_graphing)(/lib/html_tree.php: 392 CactiErrorHandler)(/lib/functions.php: 4137 cacti_debug_backtrace)
2016-09-02 10:43:23 - ERROR PHP WARNING: Illegal string offset 'id' in file: /www/cacti/lib/html_tree.php on line: 392
2016-09-02 10:43:23 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php: 229 api_tree_get_main)(/lib/api_tree.php: 556 draw_dhtml_tree_level_graphing)(/lib/html_tree.php: 392 CactiErrorHandler)(/lib/functions.php: 4137 cacti_debug_backtrace)
2016-09-02 10:43:23 - ERROR PHP WARNING: Illegal string offset 'id' in file: /www/cacti/lib/html_tree.php on line: 392
2016-09-02 10:43:23 - CMDPHP PHP ERROR WARNING Backtrace: (/graph_view.php: 229 api_tree_get_main)(/lib/api_tree.php: 556 draw_dhtml_tree_level_graphing)(/lib/html_tree.php: 392 CactiErrorHandler)(/lib/functions.php: 4137 cacti_debug_backtrace)
2016-09-02 10:43:23 - ERROR PHP WARNING: Illegal string offset 'id' in file: /www/cacti/lib/html_tree.php on line: 392

PAW Theme + Thold

/plugins/thold/thold.php?action=add

Cannot add Threshold Template - because You Cannot choose nothing from filters.
pawtheme_thold

Monitor Plugin

2016-11-16 14:34:30 - ERROR PHP DEPRECATED in Plugin 'monitor': Function split() is deprecated in file: /var/www/html/cacti/plugins/monitor/monitor.php on line: 33
2016-11-16 14:34:30 - CMDPHP PHP ERROR Backtrace: (/plugins/monitor/monitor.php: 33 split)(CactiErrorHandler)(/lib/functions.php: 4173 cacti_debug_backtrace)
2016-11-16 14:34:30 - CMDPHP SQL Backtrace: (/plugins/monitor/monitor.php: 57 get_host_down_by_permission)(/plugins/monitor/monitor.php: 804 get_host_tree_array)(/plugins/monitor/monitor.php: 868 db_fetch_assoc)(/lib/database.php: 309 db_fetch_assoc_prepared)(/lib/database.php: 347 cacti_debug_backtrace)
2016-11-16 14:34:30 - CMDPHP SQL Backtrace: (/plugins/monitor/monitor.php: 57 get_host_down_by_permission)(/plugins/monitor/monitor.php: 805 get_host_non_tree_array)(/plugins/monitor/monitor.php: 926 db_fetch_assoc)(/lib/database.php: 309 db_fetch_assoc_prepared)(/lib/database.php: 347 cacti_debug_backtrace)
2016-11-16 14:34:30 - CMDPHP SQL Backtrace: (/plugins/monitor/monitor.php: 223 render_group_by_tree)(/plugins/monitor/monitor.php: 423 get_host_tree_array)(/plugins/monitor/monitor.php: 868 db_fetch_assoc)(/lib/database.php: 309 db_fetch_assoc_prepared)(/lib/database.php: 347 cacti_debug_backtrace)
2016-11-16 14:34:30 - CMDPHP SQL Backtrace: (/plugins/monitor/monitor.php: 223 render_group_by_tree)(/plugins/monitor/monitor.php: 477 get_host_non_tree_array)(/plugins/monitor/monitor.php: 926 db_fetch_assoc)(/lib/database.php: 309 db_fetch_assoc_prepared)(/lib/database.php: 347 cacti_debug_backtrace)
2016-11-16 14:34:30 - ERROR PHP DEPRECATED in Plugin 'monitor': Function split() is deprecated in file: /var/www/html/cacti/plugins/monitor/monitor.php on line: 279
2016-11-16 14:34:30 - CMDPHP PHP ERROR Backtrace: (/plugins/monitor/monitor.php: 279 split)(CactiErrorHandler)(/lib/functions.php: 4173 cacti_debug_backtrace)

*all_max_peak* percentile calculations incorrect

Original issue reported: http://bugs.cacti.net/view.php?id=2316

Description
As far as I checked and understood the source code the calculations for 'all_max_peak' are wrong currently.

Steps To Reproduce
The calculations are wrong. Reproduce by using them. See "Additional Information" of this bug for more details. In case someone argues for having examples we might work out something, but this would involve crafting very special data into a RRD file or view a very special time interval for given RRD data.

Additional Information
I do not have example RRD files ready. The two methods do have different results for rare resp. special values only. I found tt difficult to verify the correctness of the calulations by looking at an RRDTool/Cacti graph. I did use the following definitions to print line and number for the percentiles:

  • Item # 10 HRULE: |95:bits:0:max:2|
  • Item # 11 COMMENT: |95:bits:6:max:2| mbit p95( max(traffic_in,traffic_out) )
  • Item # 12 HRULE: |95:bits:0:all_max_peak:2|
  • Item # 13 COMMENT: |95:bits:6:all_max_peak:2| mbit max( p95(traffic_in),p95(traffic_out) )

Using this you can see wether the calculations differ or not for a given graph.

Set Default in Graph Creation

The button "Set Default' doesn't work.

I tried to make graph and change 'IN/OUT Bits with Total Bandwidth' in Data Query [SNMP - Interface Statistics].

I click cancel and tried to create new graph once again. The setting was not remebered.

Creating graphs Host dubled

When You are creating graphs for hosts and click create

  • the server is hanging (mysql 100% CPU)
  • you don't know if You clicked successfully create from GUI
  • If You click create one more time the graphs are doubled/trippled if You click that button more

That behavior is wrong. You sholuldn't be able to do doubled graphs in that way. There is no lock for that.

Data Query Edit

When saving new Suggested Values, the existing Data Source mappings get lost.

I wind up having to go back into the Data Query and re-map the Data Sources afterward as a work around.

UI visibiliti improvements: Paw Theme

Thank You for that beautiful skin.

I would like to propose only few updates/improvements:

  1. host.php <--- headers in <div class="textSubHeaderDark"> are not centered.
  2. in left menu <ul id="menu_management_div" style="display:block;" role="menu">
    I would like to add some dots or some dash as like in picture.

zrzut ekranu z 2016-12-21 13-28-48

It will look much more clear.

or if You don't like mine idea please add some other background color to all bold positions in menu.
Management

  1. Please add a 1px solid border in <table id="host2_child" class="cactiTable" style="padding:3px;"> in Management-->Devices (host.php)

Getting many network interfaces via SNMP fails

Tried to add the network interfaces of my Windows machine.
It seems they are so many that it fails.
When I click the green cirle it says 'Success [0 Items, 0 Rows]'. But when I click 'Verbose Query' there are coming maaaaaaany interfaces (Index Count 48), without any error.

This is coming into the cacti log then:
2016-12-29 02:11:18 - 5 ERROR: A DB Exec Failed!, Error: Data too long for column 'field_value' at row 126
2016-12-29 02:11:18 - CMDPHP SQL Backtrace: (/host.php: 91 host_reload_query)(/host.php: 586 run_data_query)(/lib/data_query.php: 51 query_snmp_host)(/lib/data_query.php: 586 data_query_update_host_cache_from_buffer)(/lib/data_query.php: 651 db_execute)(/lib/database.php: 110 db_execute_prepared)(/lib/database.php: 174 cacti_debug_backtrace)

Unable to edit graph item in graph template

When trying to edit a graph item of a graph template I receive the following cacti error:

2016-09-22 15:52:56 - ERROR PHP ERROR: Cannot redeclare resequence_graphs() (previously declared in /www/cacti/graph_templates_items.php:293) in file: /www/cacti/lib/template.php on line: 551

and in the browser:

https://www.company.com/cacti/graph_templates_items.php?action=item_edit&id=25985&graph_template_id=139

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Poller and snmp_version = '2'

Poller doesn't work properly when we choose in host snmp version = 2.

The poller tries to run snmpwalk with -v 2 parameter.
Snmpwalk doesn't have -v2. There is -v 2c!

Please correct this mistake.

Editing templates of devices and adding a graphs

There are some errors in logs:

2016-12-29 10:32:34 - ERROR PHP WARNING: Illegal string offset 'snmp_query_graph_id' in file: /var/www/html/cacti/lib/template.php on line: 995
2016-12-29 10:32:34 - CMDPHP PHP ERROR WARNING Backtrace: (/graphs_new.php: 37 form_save)(/graphs_new.php: 106 host_new_graphs)(/graphs_new.php: 394 host_new_graphs_save)(/graphs_new.php: 241 create_complete_graph_from_template)(/lib/template.php: 995 CactiErrorHandler)(/lib/functions.php: 4184 cacti_debug_backtrace)
2016-12-29 10:32:34 - ERROR PHP NOTICE: Uninitialized string offset: 0 in file: /var/www/html/cacti/lib/template.php on line: 995
2016-12-29 10:32:34 - CMDPHP PHP ERROR NOTICE Backtrace: (/graphs_new.php: 37 form_save)(/graphs_new.php: 106 host_new_graphs)(/graphs_new.php: 394 host_new_graphs_save)(/graphs_new.php: 241 create_complete_graph_from_template)(/lib/template.php: 995 CactiErrorHandler)(/lib/functions.php: 4189 cacti_debug_backtrace)
2016-12-29 10:32:34 - ERROR PHP WARNING: Illegal string offset 'snmp_query_graph_id' in file: /var/www/html/cacti/lib/template.php on line: 1325
2016-12-29 10:32:34 - CMDPHP PHP ERROR WARNING Backtrace: (/graphs_new.php: 37 form_save)(/graphs_new.php: 106 host_new_graphs)(/graphs_new.php: 394 host_new_graphs_save)(/graphs_new.php: 241 create_complete_graph_from_template)(/lib/template.php: 1068 data_source_exists)(/lib/template.php: 1325 CactiErrorHandler)(/lib/functions.php: 4184 cacti_debug_backtrace)
2016-12-29 10:32:34 - ERROR PHP NOTICE: Uninitialized string offset: 0 in file: /var/www/html/cacti/lib/template.php on line: 1325
2016-12-29 10:32:34 - CMDPHP PHP ERROR NOTICE Backtrace: (/graphs_new.php: 37 form_save)(/graphs_new.php: 106 host_new_graphs)(/graphs_new.php: 394 host_new_graphs_save)(/graphs_new.php: 241 create_complete_graph_from_template)(/lib/template.php: 1068 data_source_exists)(/lib/template.php: 1325 CactiErrorHandler)(/lib/functions.php: 4189 cacti_debug_backtrace)
2016-12-29 10:32:34 - ERROR PHP WARNING: Illegal string offset 'snmp_query_id' in file: /var/www/html/cacti/lib/template.php on line: 1348
2016-12-29 10:32:34 - CMDPHP PHP ERROR WARNING Backtrace: (/graphs_new.php: 37 form_save)(/graphs_new.php: 106 host_new_graphs)(/graphs_new.php: 394 host_new_graphs_save)(/graphs_new.php: 241 create_complete_graph_from_template)(/lib/template.php: 1068 data_source_exists)(/lib/template.php: 1348 CactiErrorHandler)(/lib/functions.php: 4184 cacti_debug_backtrace)
2016-12-29 10:32:34 - ERROR PHP NOTICE: Uninitialized string offset: 0 in file: /var/www/html/cacti/lib/template.php on line: 1348
2016-12-29 10:32:34 - CMDPHP PHP ERROR NOTICE Backtrace: (/graphs_new.php: 37 form_save)(/graphs_new.php: 106 host_new_graphs)(/graphs_new.php: 394 host_new_graphs_save)(/graphs_new.php: 241 create_complete_graph_from_template)(/lib/template.php: 1068 data_source_exists)(/lib/template.php: 1348 CactiErrorHandler)(/lib/functions.php: 4189 cacti_debug_backtrace)
2016-12-29 10:32:34 - ERROR PHP WARNING: Illegal string offset 'snmp_index' in file: /var/www/html/cacti/lib/template.php on line: 1348
2016-12-29 10:32:34 - CMDPHP PHP ERROR WARNING Backtrace: (/graphs_new.php: 37 form_save)(/graphs_new.php: 106 host_new_graphs)(/graphs_new.php: 394 host_new_graphs_save)(/graphs_new.php: 241 create_complete_graph_from_template)(/lib/template.php: 1068 data_source_exists)(/lib/template.php: 1348 CactiErrorHandler)(/lib/functions.php: 4184 cacti_debug_backtrace)
2016-12-29 10:32:34 - ERROR PHP NOTICE: Uninitialized string offset: 0 in file: /var/www/html/cacti/lib/template.php on line: 1348
2016-12-29 10:32:34 - CMDPHP PHP ERROR NOTICE Backtrace: (/graphs_new.php: 37 form_save)(/graphs_new.php: 106 host_new_graphs)(/graphs_new.php: 394 host_new_graphs_save)(/graphs_new.php: 241 create_complete_graph_from_template)(/lib/template.php: 1068 data_source_exists)(/lib/template.php: 1348 CactiErrorHandler)(/lib/functions.php: 4189 cacti_debug_backtrace)
2016-12-29 10:32:34 - ERROR PHP WARNING: Illegal string offset 'snmp_query_graph_id' in file: /var/www/html/cacti/lib/template.php on line: 1119
2016-12-29 10:32:34 - CMDPHP PHP ERROR WARNING Backtrace: (/graphs_new.php: 37 form_save)(/graphs_new.php: 106 host_new_graphs)(/graphs_new.php: 394 host_new_graphs_save)(/graphs_new.php: 241 create_complete_graph_from_template)(/lib/template.php: 1119 CactiErrorHandler)(/lib/functions.php: 4184 cacti_debug_backtrace)
2016-12-29 10:32:34 - ERROR PHP NOTICE: Uninitialized string offset: 0 in file: /var/www/html/cacti/lib/template.php on line: 1119

[SPINE] Errors compiling

Please look in this console output there are errors during compilation.

make

gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/mysql -g -O2 -MT sql.o -MD -MP -MF .deps/sql.Tpo -c -o sql.o sql.c
mv -f .deps/sql.Tpo .deps/sql.Po

gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/mysql -g -O2 -MT spine.o -MD -MP -MF .deps/spine.Tpo -c -o spine.o spine.c
spine.c: In function ‘main’:
spine.c:484:23: warning: assignment makes integer from pointer without a cast
debug_devices[i+1] = NULL;
^
spine.c:489:20: warning: comparison between pointer and integer
debug_devices[0] == NULL;
^
mv -f .deps/spine.Tpo .deps/spine.Po
gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/mysql -g -O2 -MT util.o -MD -MP -MF .deps/util.Tpo -c -o util.o util.c
util.c: In function ‘is_debug_device’:
util.c:225:24: warning: comparison between pointer and integer
if (debug_devices[i] == NULL) break;
^
util.c: In function ‘is_numeric’:
util.c:900:23: warning: passing argument 1 of ‘trim’ discards ‘const’ qualifier from pointer target type
length = strlen(trim(string));
^
In file included from spine.h:511:0,
from util.c:35:
util.h:64:14: note: expected ‘char *’ but argument is of type ‘const char *’
extern char *trim(char *str);
^
mv -f .deps/util.Tpo .deps/util.Po
gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/mysql -g -O2 -MT snmp.o -MD -MP -MF .deps/snmp.Tpo -c -o snmp.o snmp.c

mv -f .deps/snmp.Tpo .deps/snmp.Po
gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/mysql -g -O2 -MT locks.o -MD -MP -MF .deps/locks.Tpo -c -o locks.o locks.c

mv -f .deps/locks.Tpo .deps/locks.Po
gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/mysql -g -O2 -MT poller.o -MD -MP -MF .deps/poller.Tpo -c -o poller.o poller.c
poller.c: In function ‘child’:
poller.c:77:78: warning: passing argument 6 of ‘poll_host’ makes pointer from integer without a cast
poll_host(host_id, host_thread, last_host_thread, host_data_ids, host_time, host_errors, host_time_double);
^
In file included from spine.h:504:0,
from poller.c:35:
poller.h:35:13: note: expected ‘int ’ but argument is of type ‘int’
extern void poll_host(int host_id, int host_thread, int last_host_thread, int host_data_ids, char
host_time, int* host_errors, double host_time_double);
^
mv -f .deps/poller.Tpo .deps/poller.Po
gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/mysql -g -O2 -MT nft_popen.o -MD -MP -MF .deps/nft_popen.Tpo -c -o nft_popen.o nft_popen.c
mv -f .deps/nft_popen.Tpo .deps/nft_popen.Po
gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/mysql -g -O2 -MT php.o -MD -MP -MF .deps/php.Tpo -c -o php.o php.c
mv -f .deps/php.Tpo .deps/php.Po
gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/mysql -g -O2 -MT ping.o -MD -MP -MF .deps/ping.Tpo -c -o ping.o ping.c
mv -f .deps/ping.Tpo .deps/ping.Po
gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/mysql -g -O2 -MT keywords.o -MD -MP -MF .deps/keywords.Tpo -c -o keywords.o keywords.c
mv -f .deps/keywords.Tpo .deps/keywords.Po
gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/mysql -g -O2 -MT error.o -MD -MP -MF .deps/error.Tpo -c -o error.o error.c
mv -f .deps/error.Tpo .deps/error.Po
/bin/bash ./libtool --tag=CC --mode=link gcc -I/usr/include/mysql -g -O2 -lpthread -lssl -lm -o spine sql.o spine.o util.o snmp.o locks.o poller.o nft_popen.o php.o ping.o keywords.o error.o -lnetsnmp -lmysqlclient
libtool: link: gcc -I/usr/include/mysql -g -O2 -o spine sql.o spine.o util.o snmp.o locks.o poller.o nft_popen.o php.o ping.o keywords.o error.o -lpthread -lssl -lm -lnetsnmp -lmysqlclient

Will Spine work properly after compiling with those errors?

Regards.
JK

Totals in Aggregate graphs

I am unable to get totals to display on any of the aggregate graphs I am creating with the latest dev branch. Switching between "Total All Data Sources" and "Total Similar Data Sources" has no effect, neither are showing totals.

When going https://cacti/cacti/host.php?action=edit&id=508

2016-11-16 12:54:16 - CMDPHP SQL Backtrace: (/host.php: 105 host_edit)(/host.php: 786 draw_edit_form)(/lib/html_form.php: 93 draw_edit_control)(/lib/html_form.php: 244 db_fetch_assoc)(/lib/database.php: 309 db_fetch_assoc_prepared)(/lib/database.php: 347 cacti_debug_backtrace)
2016-11-16 12:54:17 - ERROR PHP NOTICE: Undefined index: snmp_engine_id in file: /var/www/html/cacti/host.php on line: 654
2016-11-16 12:54:17 - CMDPHP PHP ERROR NOTICE Backtrace: (/host.php: 110 ping_host)(/host.php: 654 CactiErrorHandler)(/lib/functions.php: 4165 cacti_debug_backtrace)

Something is not right after update from git.

Host Devices List

You cannot unselect host by clicking on checkbox.

Skin: Modern, Firefox/Linux.

Fail when running upgrade

on commit aed04dc
Although my database is already at 1.0.0 I periodically run the upgrade script to make sure any new tables/columns in cacti.sql get added.

I just fire up my php upgrade script from a browser.

<?php
include('include/global.php');
db_execute("UPDATE version SET  cacti = '0.8.8g'");
Header("Location: index.php\n\n");
?>

Most DB upgrade steps either complete with a "Success" or a "Not Ran"

However, today I received a Fail at the end.

[Success] ALTER TABLE host MODIFY COLUMN poller_id int(10) unsigned DEFAULT "1"
[Success] ALTER TABLE host MODIFY COLUMN site_id int(10) unsigned DEFAULT "1"
[Success] ALTER TABLE automation_networks MODIFY COLUMN poller_id int(10) unsigned DEFAULT "1"
[Success] ALTER TABLE automation_processes MODIFY COLUMN poller_id int(10) unsigned DEFAULT "1"
[Success] ALTER TABLE poller_command MODIFY COLUMN poller_id int(10) unsigned DEFAULT "1"
[Success] ALTER TABLE poller_item MODIFY COLUMN poller_id int(10) unsigned DEFAULT "1"
[Success] ALTER TABLE poller_time MODIFY COLUMN poller_id int(10) unsigned DEFAULT "1"
[Not Ran] ALTER TABLE `graph_local` ADD `snmp_query_graph_id`
[Not Ran] ALTER TABLE `graph_local` ADD INDEX snmp_query_graph_id(snmp_query_graph_id)
[Fail] ALTER TABLE graph_tree ADD COLUMN sequence int(10) unsigned DEFAULT "1" AFTER name

Not sure if this an an issue or not, but thought to report it anyways.

Cheers.

Exported graphs try to visit 'undefined' URL

Cacti version: 0.8.8h

I export graphs to a local path accessible on the web at $HOST/cacti-graphs/

Settings:
Export Method: Classic (local path)
Presentation Method: Tree Presentation
Tree Isolation: Single Tree
Effective User Name: admin
Export Directory: /var/www/html/cacti-graphs/
Export Timing: Classic

There seems to be a javascript problem in the web interface that causes hosts in the tree to not display graphs. When you hit this problem, the browser ends up at /cacti-graphs/undefined.

Copying & pasting the link to that host works around the issue, but is ugly & annoying.

Spine using CPU is very high

When I use other availability/reachability options methods other than snmp uptime the spine using CPU is very high ! is bug ???

Allow Aggregate Items from Regular Expressions

Hi,

I need the aggregate plugin v1.0 (cf. TheWitness's plugin) to make aggregate graphs with automation.

In fact, I've got 1000+ devices with QoS trafic (one graph per class) and I use aggregate to make aggregate QoS trafic with different data sources. I want to know if it is possible to make them with automation because it's not feasible to create 1000+ aggregate graph by hand...

It would really be a very good point for this plugin !

Thanks a lot

Alex.

Cacti creates rra file with incorect permissions

Cacti do:
ls -la
-rw------- 1 root root 111392 lis 18 11:25 1013.rrd

instead of:

ls -la
-rw-r--r-- 1 www-data root 111392 lis 18 11:25 1013.rrd

Making imposible to view in UI.

Debian 8.6.

Temporarly I use crontab to check permisions and make it right when it's not propper but the solution is bad for long term.

ERROR in cli/poller_output_empty.php

hi,

i found one error message when i try to run cli/poller_output_empty.php.

following error message:
root@bmk-cacti-01:/usr/share/cacti/cli# php poller_output_empty.php
PHP Fatal error: Uncaught Error: Call to undefined function dsstats_poller_output() in /usr/share/cacti/lib/poller.php:488
Stack trace:
#0 /usr/share/cacti/cli/poller_output_empty.php(81): process_poller_output(Resource id #34, false)
#1 {main}
thrown in /usr/share/cacti/lib/poller.php on line 488
root@bmk-cacti-01:/usr/share/cacti/cli#

it is the latest git version (8c25f9c).

br
Bernhard

Aggregate Template Saving

Under an existing aggregate template I try to edit, when I make changes to any form fields or check boxes and hit save, they are not getting saved to the database.

I am able to create a new aggregate template with no issue.

Cannot select one checkbox

data_sources.php.

You can choose all checkboxes by clicking at select-all checkbox.
You can't choose one in list.

Automation, last git update

After last git update there is an errror:

2016-12-19 13:35:03 - CMDPHP Device[417] Description[P2P-NowodworPiaski-Mota] NOTICE: HOST EVENT: Device Returned FROM DOWN State:
2016-12-19 13:34:50 - CMDPHP PHP ERROR WARNING Backtrace: (/host.php: 53 form_save)(/host.php: 170 api_device_save)(/lib/api_device.php: 247 automation_hook_device_create_tree)(/lib/api_automation.php: 1995 CactiErrorHandler)(/lib/functions.php: 4165 cacti_debug_backtrace)
2016-12-19 13:34:50 - ERROR PHP WARNING: Illegal string offset 'id' in file: /var/www/html/cacti/lib/api_automation.php on line: 1995.

Cacti poller problem.

After git update...

2016-12-22 10:10:37 - SYSTEM STATS: Time:35.3344 Method:cmd.php Processes:12 Threads:N/A Hosts:429 HostsPerProcess:36 DataSources:6033 RRDsProcessed:3673
2016-12-22 10:10:01 - CMDPHP PHP ERROR WARNING Backtrace: (/poller.php: 67 include_once)(/poller.php: 67 CactiErrorHandler)(/lib/functions.php: 4167 cacti_debug_backtrace)
2016-12-22 10:10:01 - ERROR PHP WARNING: include_once(): Failed opening '/var/www/html/cacti/lib/graph_export.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in file: /var/www/html/cacti/poller.php on line: 67
2016-12-22 10:10:01 - CMDPHP PHP ERROR WARNING Backtrace: (/poller.php: 67 include_once)(/poller.php: 67 CactiErrorHandler)(/lib/functions.php: 4167 cacti_debug_backtrace)
2016-12-22 10:10:01 - ERROR PHP WARNING: include_once(/var/www/html/cacti/lib/graph_export.php): failed to open stream: No such file or directory in file: /var/www/html/cacti/poller.php on line: 67

Rebuild poller cache - Errors

2016-12-28 12:11:46 - CMDPHP PHP ERROR NOTICE Backtrace: (/utilities.php: 38 repopulate_poller_cache)(/lib/utility.php: 43 update_poller_cache)(/lib/utility.php: 149 CactiErrorHandler)(/lib/functions.php: 4189 cacti_debug_backtrace)
2016-12-28 12:11:46 - ERROR PHP NOTICE: Undefined index: active in file: /var/www/html/cacti/lib/utility.php on line: 149
2016-12-28 12:11:46 - CMDPHP PHP ERROR NOTICE Backtrace: (/utilities.php: 38 repopulate_poller_cache)(/lib/utility.php: 43 update_poller_cache)(/lib/utility.php: 125 CactiErrorHandler)(/lib/functions.php: 4189 cacti_debug_backtrace)
2016-12-28 12:11:46 - ERROR PHP NOTICE: Undefined index: type_id in file: /var/www/html/cacti/lib/utility.php on line: 125
2016-12-28 12:11:46 - CMDPHP PHP ERROR NOTICE Backtrace: (/utilities.php: 38 repopulate_poller_cache)(/lib/utility.php: 43 update_poller_cache)(/lib/utility.php: 124 CactiErrorHandler)(/lib/functions.php: 4189 cacti_debug_backtrace)
2016-12-28 12:11:46 - ERROR PHP NOTICE: Undefined index: type_id in file: /var/www/html/cacti/lib/utility.php on line: 124
2016-12-28 12:11:46 - CMDPHP PHP ERROR NOTICE Backtrace: (/utilities.php: 38 repopulate_poller_cache)(/lib/utility.php: 43 update_poller_cache)(/lib/utility.php: 123 CactiErrorHandler)(/lib/functions.php: 4189 cacti_debug_backtrace)
2016-12-28 12:11:46 - ERROR PHP NOTICE: Undefined index: type_id in file: /var/www/html/cacti/lib/utility.php on line: 123
2016-12-28 12:11:31 - CMDPHP PHP ERROR NOTICE Backtrace: (/index.php: 76 CactiErrorHandler)(/lib/functions.php: 4189 cacti_debug_backtrace)
2016-12-28 12:11:31 - ERROR PHP NOTICE: Undefined variable: poller_id in file: /var/www/html/cacti/index.php on line: 76

Doulbled Data Source Profile

I did a discovery that I have doubled data source profile after upgade.

It is a bug or not? The profile name are the same. Is it possible to integrate into one? I should do that or just change the names of it?

doubled_data_source_profile

data_source_profile1
data_source_profile2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.