Giter Site home page Giter Site logo

plugin_hmib'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.27.

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 th 1.2.27 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.

plugin_hmib's People

Contributors

cigamit avatar gan-dalf avatar jdcoats avatar linegod avatar netniv avatar nilovigor avatar ronytomen avatar snsupersharp avatar thewitness avatar weblate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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

plugin_hmib's Issues

Invalid characters passed for attempted conversion, these have been ignored

I've had HMIB poller disabled a while and just enabled to find the below message replicated quite a bit.

2021/12/29 16:33:00 - ERROR PHP DEPRECATED in Plugin 'hmib': Invalid characters passed for attempted conversion, these have been ignored in file: /var/www/localhost/htdocs/cacti/plugins/hmib/snmp.php on line: 459
2021/12/29 16:33:00 - CMDPHP PHP ERROR Backtrace: (/plugins/hmib/poller_hmib.php[139]:checkHost(), /plugins/hmib/poller_hmib.php[577]:collect_hrStorage(), /plugins/hmib/poller_hmib.php[959]:collectHostIndexedOid(), /plugins/hmib/poller_hmib.php[715]:cacti_snmp_walk(), /plugins/hmib/snmp.php[413]:format_snmp_string(), /plugins/hmib/snmp.php[459]:hexdec(), CactiErrorHandler())

Filtering by graph template and then removing filter results in SQL Backtrace

2019/02/20 12:54:26 - CMDPHP SQL Backtrace: (/plugins/hmib/hmib.php[90]:hmib_view_graphs(), /plugins/hmib/hmib.php[2812]:get_allowed_graphs(), /lib/auth.php[1114]:db_fetch_cell(), /lib/database.php[360]:db_fetch_cell_prepared(), /lib/database.php[376]:db_execute_prepared()
2019/02/20 12:54:26 - CMDPHP ERROR: A DB Cell Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '22 AND (IFNULL(h.disabled,"")="") HAVING (user0 IS NULL OR (user1 IS NULL OR use' at line 1

To reproduce, Click on the hmib tab/graphs then filter for select graph templates, then clear the filter and try to click on a page # other than 1 it will revert to page 1 and produce the error.

SQL error in log

Cacti 1.1.2 - plugin_hmib 6ee17ce

Not sure if related : "'Please Select Data Query First from Console->Settings->Host Mib First". greyed out graph button.

2017-04-14 13:14:29 - CMDPHP SQL Backtrace: (/plugins/hmib/hmib.php: 90 hmib_view_graphs)(/plugins/hmib/hmib.php: 2745 html_graph_preview_filter)(/lib/html_graph.php: 157 html_host_filter)(/lib/html.php: 1580 get_allowed_devices)(/lib/auth.php: 1436 db_fetch_cell)(/lib/database.php: 201 db_fetch_cell_prepared)(/lib/database.php: 246 cacti_debug_backtrace)
2017-04-14 13:14:29 - CMDPHP SQL Backtrace: (/plugins/hmib/hmib.php: 90 hmib_view_graphs)(/plugins/hmib/hmib.php: 2745 html_graph_preview_filter)(/lib/html_graph.php: 157 html_host_filter)(/lib/html.php: 1580 get_allowed_devices)(/lib/auth.php: 1419 db_fetch_assoc)(/lib/database.php: 320 db_fetch_assoc_prepared)(/lib/database.php: 359 cacti_debug_backtrace)
2017-04-14 13:14:29 - DBCALL ERROR: SQL Assoc Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'WHERE h.id IN (12,11,8,1) HAVING (user0 IS NULL OR (user1 IS NULL OR user2 I' at line 1
2017-04-14 13:14:29 - DBCALL ERROR: SQL Assoc Failed!, Error:1064, SQL:"SELECT h1.* FROM host AS h1 INNER JOIN ( SELECT DISTINCT id FROM ( SELECT h., uap0.user_id AS user0, uap1.user_id AS user1, uap2.user_id AS user2 FROM host AS h LEFT JOIN graph_local AS gl ON h.id=gl.host_id LEFT JOIN graph_templates_graph AS gtg ON gl.id=gtg.local_graph_id LEFT JOIN graph_templates AS gt ON gt.id=gl.graph_template_id LEFT JOIN host_template AS ht ON h.host_template_id=ht.id LEFT JOIN user_auth_perms AS uap0 ON (gl.id=uap0.item_id AND uap0.type=1 AND uap0.user_id=1) LEFT JOIN user_auth_perms AS uap1 ON (gl.host_id=uap1.item_id AND uap1.type=3 AND uap1.user_id=1) LEFT JOIN user_auth_perms AS uap2 ON (gl.graph_template_id=uap2.item_id AND uap2.type=4 AND uap2.user_id=1) WHERE WHERE h.id IN (12,11,8,1) HAVING (user0 IS NULL OR (user1 IS NULL OR user2 IS NULL)) ) AS rs1 ) AS rs2 ON rs2.id=h1.id ORDER BY description "
2017-04-14 13:14:16 - CMDPHP SQL Backtrace: (/plugins/hmib/hmib.php: 90 hmib_view_graphs)(/plugins/hmib/hmib.php: 2745 html_graph_preview_filter)(/lib/html_graph.php: 157 html_host_filter)(/lib/html.php: 1580 get_allowed_devices)(/lib/auth.php: 1436 db_fetch_cell)(/lib/database.php: 201 db_fetch_cell_prepared)(/lib/database.php: 246 cacti_debug_backtrace)
2017-04-14 13:14:16 - CMDPHP SQL Backtrace: (/plugins/hmib/hmib.php: 90 hmib_view_graphs)(/plugins/hmib/hmib.php: 2745 html_graph_preview_filter)(/lib/html_graph.php: 157 html_host_filter)(/lib/html.php: 1580 get_allowed_devices)(/lib/auth.php: 1419 db_fetch_assoc)(/lib/database.php: 320 db_fetch_assoc_prepared)(/lib/database.php: 359 cacti_debug_backtrace)
2017-04-14 13:14:16 - DBCALL ERROR: SQL Assoc Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'WHERE h.id IN (12,11,8,1) HAVING (user0 IS NULL OR (user1 IS NULL OR user2 I' at line 1
2017-04-14 13:14:16 - DBCALL ERROR: SQL Assoc Failed!, Error:1064, SQL:"SELECT h1.
FROM host AS h1 INNER JOIN ( SELECT DISTINCT id FROM ( SELECT h.*, uap0.user_id AS user0, uap1.user_id AS user1, uap2.user_id AS user2 FROM host AS h LEFT JOIN graph_local AS gl ON h.id=gl.host_id LEFT JOIN graph_templates_graph AS gtg ON gl.id=gtg.local_graph_id LEFT JOIN graph_templates AS gt ON gt.id=gl.graph_template_id LEFT JOIN host_template AS ht ON h.host_template_id=ht.id LEFT JOIN user_auth_perms AS uap0 ON (gl.id=uap0.item_id AND uap0.type=1 AND uap0.user_id=1) LEFT JOIN user_auth_perms AS uap1 ON (gl.host_id=uap1.item_id AND uap1.type=3 AND uap1.user_id=1) LEFT JOIN user_auth_perms AS uap2 ON (gl.graph_template_id=uap2.item_id AND uap2.type=4 AND uap2.user_id=1) WHERE WHERE h.id IN (12,11,8,1) HAVING (user0 IS NULL OR (user1 IS NULL OR user2 IS NULL)) ) AS rs1 ) AS rs2 ON rs2.id=h1.id ORDER BY description "

Hmib tab produces fatal memory error no matter the amount of memory allocated

Cacti 1.2.26 current 1.2.x branch as of 3/18/2024
HMIB 3.5 develop as of 3/18/2024
php 8.1.20

Hmib tab produces fatal memory error no matter the amount of memory allocated

2024/03/18 10:26:29 - CMDPHP WARNING: Cacti Page:hmib.php?headercontent=true for User:e017192 Generated a Fatal Error:500
2024/03/18 10:26:29 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2024/03/18 10:26:29 - ERROR PHP ERROR: Allowed memory size of 4294967296 bytes exhausted (tried to allocate 1991118848 bytes) in file: /var/www/localhost/htdocs/cacti/lib/html_utility.php on line: 248

Cannot filter on "Unknown"

You should be able to filter for Type "Unknown" but this is not working. If you go to the HMIB Summary page and select the device count for Unknown it should display only the unknown devices however it displays all devices. If you go to the HMIB Devices tab you should be able to filter for OS Type Unknown however it is not an available selection.

Cacti Versions 1.1.36 - Hmib 3.1

I have this error when i try to get data with "verbose query":
--> Host MIB - Summary Application Stats
Total: 0.000000, Delta: 0.000000, Running data query [8].
Total: 0.000000, Delta: 0.000000, Found type = '6' [Script Query - Script Server].
Total: 0.010000, Delta: 0.010000, Found data query XML file at '/usr/share/cacti/plugins/hmib/templates/resource/script_server/hmib_sum_apps.xml'
Total: 0.010000, Delta: 0.000000, XML file parsed ok.
Total: 0.010000, Delta: 0.000000, <arg_num_indexes> missing in XML file, 'Index Count Changed' not supported
Total: 0.680000, Delta: 0.660000, Executing script for list of indexes '"/usr/bin/php" -q /usr/share/cacti/plugins/hmib/templates/scripts/ss_hmib_sum_apps.php '' 'index'', Index Count: 0

No problem if i use:
--> Host MIB - Get Mounted Partitions
Total: 0.000000, Delta: 0.000000, Running data query [4].
Total: 0.000000, Delta: 0.000000, Found type = '6' [Script Query - Script Server].
Total: 0.010000, Delta: 0.010000, Found data query XML file at '/usr/share/cacti/resource/script_server/host_disk.xml'
Total: 0.010000, Delta: 0.000000, XML file parsed ok.
Total: 0.800000, Delta: 0.790000, Executing script for num of indexes '"/usr/bin/php" -q /usr/share/cacti/scripts/ss_host_disk.php '10.31.184.254' '12' '2:161:600:3:32:fwrosoc::::::' 'num_indexes''
Total: 0.800000, Delta: 0.000000, Found number of indexes: 11
Total: 1.550000, Delta: 0.760000, Executing script for list of indexes '"/usr/bin/php" -q /usr/share/cacti/scripts/ss_host_disk.php '10.31.184.254' '12' '2:161:600:3:32:fwrosoc::::::' 'index'', Index Count: 11

Do you have suggestions?

thanks a lot.

hmib Inventory error 500

Inventory


2020/03/11 10:09:12 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'hmib'
--
2020/03/11 10:09:12 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2020/03/11 10:09:12 - ERROR PHP ERROR in Plugin 'hmib': Uncaught Error: Call to undefined function html_escpae() in /var/www/localhost/htdocs/cacti/plugins/hmib/hmib.php:1972 Stack trace: #0 /var/www/localhost/htdocs/cacti/plugins/hmib/hmib.php(87): hmib_software() #1 {main} thrown in file: /var/www/localhost/htdocs/cacti/plugins/hmib/hmib.php on line: 1972


poller_hmib.php[681]:sizeof(), CactiErrorHandler())


2020/02/26 12:05:40 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/hmib/poller_hmib.php[139]:checkHost(), /plugins/hmib/poller_hmib.php[565]:collect_hrSWRun(), /plugins/hmib/poller_hmib.php[937]:collectHostIndexedOid(), /plugins/hmib/poller_hmib.php[681]:sizeof(), CactiErrorHandler())
--
2020/02/26 12:05:40 - ERROR PHP WARNING in Plugin 'hmib': sizeof(): Parameter must be an array or an object that implements Countable in file: /var/www/localhost/htdocs/cacti/plugins/hmib/poller_hmib.php on line: 681

Device import failure

I could load the plugin but when I want to import the device file "Host_Mib_Summary_Device.xml.gz" I get the following errors:
XML parse error.
XML: Cacti version does not exist

hmib is version 3.1 and cacti is 1.2.8 running on ubuntu.

Any help to this?

Why cacti plugin hmib can not translated ?

Cacti plugins for monitor、mactrack、netflow、syslog can translate very well but plugin hmib can not translated .The method is the same.I would like to know how cacti extracts the Po file?
po file path:/hmib/locales/po/ chinese_china_simplified.po
mo file path:/hmib/locales/LC_MESSAGES/chinese_china_simplified.mo
Both files are download from Github,like other plugin ,No error!

I found when i put the hmib translate file (mo file) to the /var/www/html/local/LC_MESSAGES ,The plugin hmib can translate,but cacti core can not translate ! WHY??

Escaping issues with SQL argument

Noticed this today for some reason. No recent changes.

2023/09/06 10:20:18 - CMDPHP SQL Backtrace: (/plugins/hmib/poller_hmib.php[139]:checkHost(), /plugins/hmib/poller_hmib.php[576]:collect_hrSWRun(), /plugins/hmib/poller_hmib.php[966]:collectHostIndexedOid(), /plugins/hmib/poller_hmib.php[956]:db_execute(), /lib/database.php[362]:db_execute_prepared())
2023/09/06 10:20:18 - CMDPHP ERROR: A DB Exec Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"-ExecutionPolicy Restricted -Command $res, "", "", '-ExecutionPolicy Restric...' at line 1
2023/09/06 10:20:16 - CMDPHP SQL Backtrace: (/plugins/hmib/poller_hmib.php[139]:checkHost(), /plugins/hmib/poller_hmib.php[576]:collect_hrSWRun(), /plugins/hmib/poller_hmib.php[966]:collectHostIndexedOid(), /plugins/hmib/poller_hmib.php[956]:db_execute(), /lib/database.php[362]:db_execute_prepared())
2023/09/06 10:20:16 - CMDPHP ERROR: A DB Exec Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"-ExecutionPolicy Restricted -Command $Res = 0; $Infs, "", "", '-ExecutionPo...' at line 1

Unknown SNMP value retrieval method

seeing this error repeatedly in the cacti log files.

2016-08-26 11:02:05 - CMDPHP PHP ERROR Backtrace: (/plugins/hmib/poller_hmib.php: 138 checkHost)(/plugins/hmib/poller_hmib.php: 538 collect_hrProcessor)(/plugins/hmib/poller_hmib.php: 886 collectHostIndexedOid)(/plugins/hmib/poller_hmib.php: 730 cacti_snmp_get)(/plugins/hmib/snmp.php: 71 snmp_set_valueretrieval)(CactiErrorHandler)(/lib/functions.php: 4103 cacti_debug_backtrace)
2016-08-26 11:02:05 - ERROR PHP WARNING in Plugin 'hmib': snmp_set_valueretrieval(): Unknown SNMP value retrieval method '100' in file: /cacti/plugins/hmib/snmp.php on line: 71

Import Host Template Errors

This is with latest git for Cacti 1.0.0 and trying to import the cacti_host_template_host_mib_summary_device.xml file

CDEF

[success] [new]
[success] [unchanged]
GPRINT Preset

[success] [unchanged]
[success] [unchanged]
[success] [new]
Data Input Method

[success] [unchanged]
Data Template

[fail] [new]
[fail] [new]
[fail] [new]
[fail] [new]
[fail] [new]
[fail] [new]
[fail] [new]
Graph Template

[fail] [new]
[success] [new]
[success] [new]
[success] [new]
[success] [new]
[success] [new]
[success] [new]
Data Query

[success] [new]
[success] [new]
Device Template

[success] [new]
Data Source Profile

[success] [new]

SQL Error

2017-05-05 09:58:41 - CMDPHP SQL Backtrace: (/plugins/hmib/hmib.php: 81 hmib_devices)(/plugins/hmib/hmib.php: 1658 db_fetch_cell)(/lib/database.php: 204 db_fetch_cell_prepared)(/lib/database.php: 251 cacti_debug_backtrace) 2017-05-05 09:58:41 - CMDPHP SQL Backtrace: (/plugins/hmib/hmib.php: 81 hmib_devices)(/plugins/hmib/hmib.php: 1653 db_fetch_assoc)(/lib/database.php: 331 db_fetch_assoc_prepared)(/lib/database.php: 372 cacti_debug_backtrace)

2017-05-05 09:58:41 - DBCALL ERROR: SQL Assoc 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 'ORDER BY description ASC LIMIT 0,30' at line 1 2017-05-05 09:58:41 - DBCALL ERROR: SQL Assoc Failed!, Error:1064, SQL:"SELECT hrs.*, host.hostname, host.description, host.disabled FROM plugin_hmib_hrSystem AS hrs INNER JOIN host ON host.id=hrs.host_id WHERE hrs.host_type= ORDER BY description ASC LIMIT 0,30"

SQL Backtraces at line 1

2023/06/26 10:36:43 - CMDPHP SQL Backtrace: (/plugins/hmib/poller_graphs.php[105]:add_graphs(), /plugins/hmib/poller_graphs.php[151]:add_host_based_graphs(), /plugins/hmib/poller_graphs.php[207]:add_host_dq_graphs(), /plugins/hmib/poller_graphs.php[239]:db_fetch_assoc(), /lib/database.php[679]:db_fetch_assoc_prepared(), /lib/database.php[699]:db_execute_prepared())
2023/06/26 10:36:43 - CMDPHP ERROR: A DB Row Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '?' at line 1
2023/06/26 10:36:43 - CMDPHP SQL Backtrace: (/plugins/hmib/poller_graphs.php[105]:add_graphs(), /plugins/hmib/poller_graphs.php[151]:add_host_based_graphs(), /plugins/hmib/poller_graphs.php[203]:add_host_dq_graphs(), /plugins/hmib/poller_graphs.php[239]:db_fetch_assoc(), /lib/database.php[679]:db_fetch_assoc_prepared(), /lib/database.php[699]:db_execute_prepared())
2023/06/26 10:36:43 - CMDPHP ERROR: A DB Row Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '?' at line 1


2023/06/26 10:31:08 - CMDPHP SQL Backtrace: (/plugins/hmib/poller_hmib.php[139]:checkHost(), /plugins/hmib/poller_hmib.php[576]:collect_hrSWRun(), /plugins/hmib/poller_hmib.php[966]:collectHostIndexedOid(), /plugins/hmib/poller_hmib.php[956]:db_execute(), /lib/database.php[357]:db_execute_prepared())
2023/06/26 10:31:08 - CMDPHP ERROR: A DB Exec Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Restricted -Command $Res = 0; $Infs, "", "", '-ExecutionPolicy Restricted -C...' at line 1
2023/06/26 10:31:06 - CMDPHP SQL Backtrace: (/plugins/hmib/poller_hmib.php[139]:checkHost(), /plugins/hmib/poller_hmib.php[576]:collect_hrSWRun(), /plugins/hmib/poller_hmib.php[966]:collectHostIndexedOid(), /plugins/hmib/poller_hmib.php[956]:db_execute(), /lib/database.php[357]:db_execute_prepared())
2023/06/26 10:31:06 - CMDPHP ERROR: A DB Exec Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"-ExecutionPolicy Restricted -Command $Res = 0; $Infs, "", "", '-ExecutionPo...' at line 1
2023/06/26 10:30:42 - CMDPHP SQL Backtrace: (/plugins/hmib/poller_hmib.php[139]:checkHost(), /plugins/hmib/poller_hmib.php[576]:collect_hrSWRun(), /plugins/hmib/poller_hmib.php[966]:collectHostIndexedOid(), /plugins/hmib/poller_hmib.php[956]:db_execute(), /lib/database.php[357]:db_execute_prepared())
2023/06/26 10:30:42 - CMDPHP ERROR: A DB Exec Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"-ExecutionPolicy Restricted -Command $res, "", "", '-ExecutionPolicy Restric...' at line 1

Invalid characters cause error in HEX detection

2021/09/01 07:45:11 - CMDPHP PHP ERROR Backtrace: (/plugins/hmib/poller_hmib.php[139]:checkHost(), /plugins/hmib/poller_hmib.php[577]:collect_hrStorage(), /plugins/hmib/poller_hmib.php[959]:collectHostIndexedOid(), /plugins/hmib/poller_hmib.php[715]:cacti_snmp_walk(), /plugins/hmib/snmp.php[413]:format_snmp_string(), /plugins/hmib/snmp.php[459]:hexdec(), CactiErrorHandler())
2021/09/01 07:45:11 - ERROR PHP DEPRECATED in Plugin 'hmib': Invalid characters passed for attempted conversion, these have been ignored in file: /var/www/localhost/htdocs/cacti/plugins/hmib/snmp.php on line: 459

Plugin Warning hmib_config_form

I am running the latest version of cacti (1.2.21) on an Ubunut PC.

In the log-file I get the following warning every other second:
PLUGIN WARNING: Function does not exist config_form with function hmib_config_form

The function indeed is not part of the setup.php file.

Any help to this?

Undefined variable i in hmib_types.php line 190

2020/03/13 09:22:12 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/hmib/hmib_types.php[43]:form_actions(), /plugins/hmib/hmib_types.php[190]:CactiErrorHandler())
2020/03/13 09:22:12 - ERROR PHP NOTICE in Plugin 'hmib': Undefined variable: i in file: /var/www/localhost/htdocs/cacti/plugins/hmib/hmib_types.php on line: 190

Please Select Data Query First

On the initial hMIB screen it lists several processes that are all greyed out. When I hover my cursor over any of the icons I see the below warning. Per the screenshot below, the message points to a place where their are no Data Query options.

untitled

Multiple HMIB errors with Graphing function returning no data.

2024/01/16 16:10:34 - CMDPHP PHP ERROR Backtrace: (/plugins/hmib/poller_graphs.php[105]:add_graphs(), /plugins/hmib/poller_graphs.php[151]:add_host_based_graphs(), /plugins/hmib/poller_graphs.php[193]:hmib_gt_graph(), /plugins/hmib/poller_graphs.php[286]:str_replace(), CactiErrorHandler())
2024/01/16 16:10:34 - ERROR PHP DEPRECATED in Plugin 'hmib': str_replace(): Passing null to parameter #3 ($subject) of type array\|string is deprecated in file: /var/www/localhost/htdocs/cacti/plugins/hmib/poller_graphs.php on line: 286
2024/01/16 16:10:34 - CMDPHP PHP ERROR Backtrace: (/plugins/hmib/poller_graphs.php[105]:add_graphs(), /plugins/hmib/poller_graphs.php[151]:add_host_based_graphs(), /plugins/hmib/poller_graphs.php[186]:hmib_gt_graph(), /plugins/hmib/poller_graphs.php[286]:str_replace(), CactiErrorHandler())
2024/01/16 16:10:34 - ERROR PHP DEPRECATED in Plugin 'hmib': str_replace(): Passing null to parameter #3 ($subject) of type array\|string is deprecated in file: /var/www/localhost/htdocs/cacti/plugins/hmib/poller_graphs.php on line: 286
2024/01/16 16:10:34 - CMDPHP SQL Backtrace: (/plugins/hmib/poller_graphs.php[105]:add_graphs(), /plugins/hmib/poller_graphs.php[151]:add_host_based_graphs(), /plugins/hmib/poller_graphs.php[207]:add_host_dq_graphs(), /plugins/hmib/poller_graphs.php[239]:db_fetch_assoc(), /lib/database.php[707]:db_fetch_assoc_prepared(), /lib/database.php[727]:db_execute_prepared())
2024/01/16 16:10:34 - CMDPHP ERROR: A DB Row Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '?' at line 1
2024/01/16 16:10:33 - CMDPHP SQL Backtrace: (/plugins/hmib/poller_graphs.php[105]:add_graphs(), /plugins/hmib/poller_graphs.php[151]:add_host_based_graphs(), /plugins/hmib/poller_graphs.php[203]:add_host_dq_graphs(), /plugins/hmib/poller_graphs.php[239]:db_fetch_assoc(), /lib/database.php[707]:db_fetch_assoc_prepared(), /lib/database.php[727]:db_execute_prepared())
2024/01/16 16:10:33 - CMDPHP ERROR: A DB Row Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '?' at line 1
2024/01/16 16:10:33 - CMDPHP PHP ERROR Backtrace: (/plugins/hmib/poller_graphs.php[105]:add_graphs(), /plugins/hmib/poller_graphs.php[151]:add_host_based_graphs(), /plugins/hmib/poller_graphs.php[193]:hmib_gt_graph(), /plugins/hmib/poller_graphs.php[286]:str_replace(), CactiErrorHandler())
2024/01/16 16:10:33 - ERROR PHP DEPRECATED in Plugin 'hmib': str_replace(): Passing null to parameter #3 ($subject) of type array\|string is deprecated in file: /var/www/localhost/htdocs/cacti/plugins/hmib/poller_graphs.php on line: 286
2024/01/16 16:10:32 - CMDPHP PHP ERROR Backtrace: (/plugins/hmib/poller_graphs.php[105]:add_graphs(), /plugins/hmib/poller_graphs.php[151]:add_host_based_graphs(), /plugins/hmib/poller_graphs.php[186]:hmib_gt_graph(), /plugins/hmib/poller_graphs.php[286]:str_replace(), CactiErrorHandler())
2024/01/16 16:10:32 - ERROR PHP DEPRECATED in Plugin 'hmib': str_replace(): Passing null to parameter #3 ($subject) of type array\|string is deprecated in file: /var/www/localhost/htdocs/cacti/plugins/hmib/poller_graphs.php on line: 286

Unknown devices

not sure if its a bug per se.. but in my environment i have a bunch of F5 devices. i have templates for them and I am graphing a bunch of stuff, but HMIB sees them as "unknown" device types, same with my printers.

help

hmib can not be chanslated,mo file and po file are copy from github,why?help!!

WARNING: You need to import your Host MIB Host Template

Hi

I have installed the plugin per the README and am still seeing this warning

WARNING: You need to import your Host MIB Host Template to view Graphs. See the README for more information.

What Host MIB Template is this talking about?

Device Type Unknown does not filter

You should be able to filter for Type "Unknown" but this is not working. If you go to the HMIB Summary page and select the device count for Unknown it should display only the unknown devices however it displays all devices. If you go to the HMIB Devices tab you should be able to filter for OS Type Unknown however it is not an available selection.
Unknown

poller_hmib.php expecting array but getting a boolean

I'm seeing the following errors in the cacti log. I'm trying to understand the code and contribute fixes if possible, but others will likely fix this faster than me.
Cheers.

2016-08-30 09:08:05 - CMDPHP PHP ERROR Backtrace: (/plugins/hmib/poller_hmib.php: 136 process_hosts)(/plugins/hmib/poller_hmib.php: 226 autoDiscoverHosts)(/plugins/hmib/poller_hmib.php: 182 cacti_snmp_walk)(/plugins/hmib/snmp.php: 353 key)(CactiErrorHandler)(/lib/functions.php: 4103 cacti_debug_backtrace)
2016-08-30 09:08:05 - ERROR PHP WARNING in Plugin 'hmib': key() expects parameter 1 to be array, boolean given in file: /www/cacti/plugins/hmib/snmp.php on line: 353

2016-08-30 09:08:05 - CMDPHP PHP ERROR Backtrace: (/plugins/hmib/poller_hmib.php: 136 process_hosts)(/plugins/hmib/poller_hmib.php: 226 autoDiscoverHosts)(/plugins/hmib/poller_hmib.php: 182 cacti_snmp_walk)(/plugins/hmib/snmp.php: 353 reset)(CactiErrorHandler)(/lib/functions.php: 4103 cacti_debug_backtrace)
2016-08-30 09:08:05 - ERROR PHP WARNING in Plugin 'hmib': reset() expects parameter 1 to be array, boolean given in file: /www/cacti/plugins/hmib/snmp.php on line: 353

hmib system types

Question:
HMIB used to detect many different system types. I just reinstalled and notice that it detect very little now. Did the types get changed? I only see 14 very old and specific types.

    db_execute("INSERT INTO `plugin_hmib_hrSystemTypes` VALUES
            (1,'.1.3.6.1.4.1.311.1.1.3.1.1',  'Version 6.1','Windows 7','7'),
            (2,'.1.3.6.1.4.1.311.1.1.3.1.2',  'Version 6.1','Windows 2008 Server','2008'),
            (3,'.1.3.6.1.4.1.311.1.1.3.1.3',  'Version 6.1','Windows 2008 Domain Contr','2008'),
            (4,'.1.3',                        'Linux NAS%armv5tejl','DNS-321',''),
            (5,'.1.3.6.1.4.1.2.3.1.2.1.1.3',  'IBM%AIX%05.03','AIX','5.3'),
            (6,'.1.3.6.1.4.1.8072.3.2.10',    'Linux%2.6.16.21-0.8%','SUSE','10.2'),
            (7,'.1.3.6.1.4.1.311.1.1.3.1.1',  'EM64T%Windows Version 5.2','Windows XP x64','5.2'),
            (8,'.1.3.6.1.4.1.311.1.1.3.1.1',  'Windows 2000 Version 5.0','Windows 2000','5.0'),
            (9,'.1.3.6.1.4.1.311.1.1.3.1.1',  'Windows 2000 Version 5.1','Windows XP','5.1'),
            (10,'.1.3.6.1.4.1.8072.3.2.10',   'Linux%2.6.16.60','SUSE','9.0'),
            (11,'.1.3.6.1.4.1.311.1.1.3.1.2', 'Windows 2000 Version 5.0','Windows 2000 Server','2000'),
            (12,'.1.3.6.1.4.1.311.1.1.3.1.2', 'Windows 2000 Version 5.1','Windows 2000 Server','2000'),
            (13,'.1.3.6.1.4.1.311.1.1.3.1.3', 'Windows Version 5.2','Windows 2003 DC','2003'),
            (14,'.1.3.6.1.4.1.311.1.1.3.1.2', 'Windows Version 5.2','Windows 2003 Server','2003');");

The each() function is deprecated hmib_types.php line 203

2020/03/13 09:22:09 - CMDPHP PHP ERROR Backtrace: (/plugins/hmib/hmib_types.php[43]:form_actions(), /plugins/hmib/hmib_types.php[203]:each(), CactiErrorHandler())
2020/03/13 09:22:09 - ERROR PHP DEPRECATED in Plugin 'hmib': The each() function is deprecated. This message will be suppressed on further calls in file: /var/www/localhost/htdocs/cacti/plugins/hmib/hmib_types.php on line: 203

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.