Cacti / plugin_hmib

HMib Plugin for Cacti
GNU General Public License v2.0
5 stars 6 forks source link

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

Open jdcoats opened 3 months ago

jdcoats commented 3 months ago

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
TheWitness commented 3 months ago

@jdcoats, what happens when you run the repair_database.php script? I suspect there is some damage somewhere in the system that might be contributing to this...

[root@vmhost5 cli]# php -q repair_database.php --debug
------------------------------------------------------------------------
NOTE: Repairing Tables for Local Database
NOTE: Skipping Data Table Physical Repair
NOTE: 183 Cacti Tables would be checked/repaired if using --tables option.

------------------------------------------------------------------------
Simple Checks.  Automatically repair if Found

NOTE: Repairing some possibly corrupted Data Query IDs and Indexes.
NOTE: Found and Repaired 1 Problems with Data Query IDs and Indexes
NOTE: Repairing Incorrectly Set Data Query Graph IDs
NOTE: Found and Repaired 13 Problems with Data Query Graph IDs
NOTE: Repairing Data Input Data hostname or host_id Type Code issues
NOTE: Found and Repaired 21 invalid Data Input hostname or host_id Type Code issues
NOTE: Repairing orphaned Poller Items.
NOTE: Found No Problems with orphaned Poller Items

------------------------------------------------------------------------
Detailed Checks.  Use --force to repair if found.

NOTE: Searching for Invalid Cacti GPRINT Presets
NOTE: Found No Invalid Cacti GPRINT Presets
NOTE: Searching for Invalid Cacti CDEFs Presets
NOTE: Found No Invalid Cacti CDEFs
NOTE: Searching for Invalid Cacti Data Inputs
NOTE: Found No Invalid Cacti Data Inputs
NOTE: Searching for Graph Templates whose Graphs have invalid item counts
NOTE: Found No Graph Templates whose Graphs had incorrect item counts
NOTE: Searching for Invalid Cacti Data Input Fields
NOTE: Found No Invalid Cacti Data Input Fields
NOTE: Searching for Invalid Cacti Data Input Data Rows (Pass 1)
NOTE: Found No Invalid Cacti Data Input Data Rows (Pass 1)
NOTE: Searching for Invalid Cacti Data Input Data Rows (Pass 2)
NOTE: Found No Invalid Cacti Data Input Data Rows (Pass 2)

------------------------------------------------------------------------
NOTE: No Invalid Cacti Template Records found in your Database
jdcoats commented 3 months ago
 # php -q repair_database.php --debug
------------------------------------------------------------------------
NOTE: Repairing Tables for Local Database
NOTE: Skipping Data Table Physical Repair
NOTE: 186 Cacti Tables would be checked/repaired if using --tables option.

------------------------------------------------------------------------
Simple Checks.  Automatically repair if Found

NOTE: Repairing some possibly corrupted Data Query IDs and Indexes.
NOTE: Found No Problems with Data Query Indexes or IDs
NOTE: Repairing Incorrectly Set Data Query Graph IDs
NOTE: Found and Repaired 16998 Problems with Data Query Graph IDs
NOTE: Repairing Data Input Data hostname or host_id Type Code issues
NOTE: Found and Repaired 9291 invalid Data Input hostname or host_id Type Code issues
NOTE: Repairing orphaned Poller Items.
NOTE: Found No Problems with orphaned Poller Items

------------------------------------------------------------------------
Detailed Checks.  Use --force to repair if found.

NOTE: Searching for Invalid Cacti GPRINT Presets
NOTE: Found No Invalid Cacti GPRINT Presets
NOTE: Searching for Invalid Cacti CDEFs Presets
NOTE: Found No Invalid Cacti CDEFs
NOTE: Searching for Invalid Cacti Data Inputs
NOTE: Found No Invalid Cacti Data Inputs
NOTE: Searching for Graph Templates whose Graphs have invalid item counts
NOTE: Found No Graph Templates whose Graphs had incorrect item counts
NOTE: Searching for Invalid Cacti Data Input Fields
NOTE: Found No Invalid Cacti Data Input Fields
NOTE: Searching for Invalid Cacti Data Input Data Rows (Pass 1)
NOTE: Found No Invalid Cacti Data Input Data Rows (Pass 1)
NOTE: Searching for Invalid Cacti Data Input Data Rows (Pass 2)
NOTE: Found No Invalid Cacti Data Input Data Rows (Pass 2)

------------------------------------------------------------------------
NOTE: No Invalid Cacti Template Records found in your Database
TheWitness commented 3 months ago

@jdcoats, I guess we need a Zoom. Tomorrow is going to be better.

jdcoats commented 3 months ago

sounds good. I think I'm available most of the day.

TheWitness commented 3 months ago

Next opportunity will be Friday. I know how to ping you. Today was a total loss.

jdcoats commented 2 months ago

ping... so all that is broken now is hmib :)

TheWitness commented 2 months ago

Hehe.

jdcoats commented 3 weeks ago

@TheWitness have time to look at this now?