Plenty of events on Logs after migration to 1.2.23

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

jackouille
Cacti User
Posts: 71
Joined: Thu Apr 26, 2012 7:41 am

Plenty of events on Logs after migration to 1.2.23

Post by jackouille »

Hi,
I have just update Cacti to latest version (running on PHO 8.1.14 / MariaDB 10.4.27 under CentOS 7) and now I receive a lot of such following logs:
2023/01/18 09:59:20 - PLUGIN WARNING: Function does not exist config_form with function cycle_config_form
2023/01/18 09:59:20 - PLUGIN WARNING: Function does not exist config_settings with function dpdiscover_config_settings
2023/01/18 09:59:20 - PLUGIN WARNING: Function does not exist config_settings with function dashboard_config_settings
2023/01/18 09:59:20 - PLUGIN WARNING: Function does not exist config_settings with function ntop_config_settings
2023/01/18 09:59:20 - PLUGIN WARNING: Function does not exist config_settings with function slowlog_config_settings
2023/01/18 09:59:20 - PLUGIN WARNING: Function does not exist config_arrays with function dpdiscover_config_arrays
2023/01/18 09:59:20 - PLUGIN WARNING: Function does not exist config_arrays with function dashboard_config_arrays
2023/01/18 09:59:20 - PLUGIN WARNING: Function does not exist config_arrays with function ntop_config_arrays
2023/01/18 09:59:20 - PLUGIN WARNING: Function does not exist config_arrays with function slowlog_config_arrays

Plus
2023/01/18 09:59:41 - PCOMMAND Device[10k] DQ[SNMP - UGS per US Cisco] RECACHE: Recache for Device started.
2023/01/18 09:59:41 - PCOMMAND Device[10k] DQ[SNMP - Interface Statistics] RECACHE: Recached successfully.
2023/01/18 09:59:33 - PCOMMAND Device[_DC_Firewall 1] DQ[Cisco Router - Memory Usage] RECACHE: Recached successfully.
2023/01/18 09:59:33 - PCOMMAND Device[_DC_Firewall 1] DQ[Cisco Router - Memory Usage] RECACHE: Recache for Device started.
2023/01/18 09:59:33 - PCOMMAND Device[_DC_Firewall 1] DQ[SNMP - Interface Statistics] RECACHE: Recached successfully.
2023/01/18 09:59:33 - PCOMMAND Device[_DC_Firewall 1] DQ[SNMP - Interface Statistics] RECACHE: Recache for Device started.
2023/01/18 09:59:33 - PCOMMAND Device[_DC_Firewall 1] NOTE: Recache Event Detected for Device
on nearly all devices

and I receive notification from my Synology NAS regarding FAN and drive events (Up/Down)

Any idea ?
jackouille
Cacti User
Posts: 71
Joined: Thu Apr 26, 2012 7:41 am

Re: Plenty of events on Logs after migration to 1.2.23

Post by jackouille »

Log is configured on LOW

And I can't change Notification Lists (always getting an Error 500) and in the same way I can't change notification on Device : notification is set as List Below but I can't change the recipient -> getting a Save Failed due to field input errors but nothing displayed in red on the page.
jackouille
Cacti User
Posts: 71
Joined: Thu Apr 26, 2012 7:41 am

Re: Plenty of events on Logs after migration to 1.2.23

Post by jackouille »

I was obliged to revert to version 1.2.21 (previous snapshot), some RRD were no more updated...
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Plenty of events on Logs after migration to 1.2.23

Post by phalek »

What plugins do you have installed on the 1.2.21 version ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Plenty of events on Logs after migration to 1.2.23

Post by TheWitness »

For each of those functions, Cacti is telling you that:

1) Your custom plugin defined a hook
2) There is no downstream function the serves that hook.

Solution is two fold.

1) Edit the setup.php file and delete the reguster hook line from the install section of the plugin
2) Goto the plugin_hooks table and delete that hook. Be careful here.

Hope that helps.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
jackouille
Cacti User
Posts: 71
Joined: Thu Apr 26, 2012 7:41 am

Re: Plenty of events on Logs after migration to 1.2.23

Post by jackouille »

Here is what I physically have:
[root@cacti3 plugins]# ll
total 28
drwxr-xr-x 2 root root 257 Sep 8 2019 aggregate
drwxr-xr-x 3 root root 118 Sep 8 2019 audit
drwxr-xr-x 4 root root 186 Sep 8 2019 cycle
drwxr-xr-x 3 root root 4096 Sep 8 2019 documentation
drwxr-xr-x 2 root root 118 Sep 8 2019 dsstats
drwxr-xr-x 3 root root 190 Sep 8 2019 gexport
drwxr-xr-x 5 root root 289 Sep 8 2019 hmib
-rw-r--r-- 1 root root 40 May 18 2022 index.php
drwxr-xr-x 3 root root 156 Sep 8 2019 maint
drwxr-xr-x 2 root root 6 Sep 8 2019 manage
drwxr-xr-x 6 root root 224 Sep 8 2019 monitor
drwxr-xr-x 3 root root 19 Sep 8 2019 realtime
drwxr-xr-x 13 root root 4096 Sep 8 2019 reportit
drwxr-xr-x 7 root root 4096 Dec 8 2019 routerconfigs
drwxr-xr-x 2 root root 130 Sep 8 2019 rrdclean
drwxr-xr-x 3 root root 106 Sep 8 2019 settings
drwxr-xr-x 3 root root 295 Sep 8 2019 spikekill
drwxr-xr-x 2 root root 4096 Sep 8 2019 spine
drwxr-xr-x 5 root root 4096 Sep 8 2019 syslog
drwxr-xr-x 9 root root 4096 Apr 2 2020 thold
drwxr-xr-x 2 root root 181 Jul 3 2020 tokenauth
drwxr-xr-x 2 root root 42 Sep 8 2019 wmi
[root@cacti3 plugins]#

But on GUI I have more and some of them are indicating that plugin directory is missing, will also perform manual cleanup.

Enhancement : automatically or manually delete plugins when folder is not present

Thanks for your answer
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Plenty of events on Logs after migration to 1.2.23

Post by TheWitness »

Example:

Code: Select all

cd /var/www/html/cacti
grep -r ntop_config_settings plugins
If it's Cacti Group maintained, you could submit a pull request to fix the setup.php's.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Plenty of events on Logs after migration to 1.2.23

Post by TheWitness »

The cycle one was already fixed. Some of those plugins are legacy too, and not longer supported. I have not done anything with slowlog in a long time.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Plenty of events on Logs after migration to 1.2.23

Post by TheWitness »

My 10k foot assessment.
  • aggregate No longer required
  • audit New version
  • cycle New version
  • documentation Not supported/migrated to 1.x
  • dsstats No longer required
  • gexport New version
  • hmib New version
  • maint New version
  • manage Not supported/migrated to 1.x
  • monitor New version
  • realtime No longer required
  • reportit New version
  • routerconfigs New version
  • rrdclean No longer required
  • settings No longer required
  • spikekill No longer required
  • spine Not a plugin?
  • syslog New version
  • thold New version
  • tokenauth Not sure
  • wmi New version
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
jackouille
Cacti User
Posts: 71
Joined: Thu Apr 26, 2012 7:41 am

Re: Plenty of events on Logs after migration to 1.2.23

Post by jackouille »

Ok, performed a DB cleanup and now I only have the following plugins:


But still facing the following error log entry:
2023/02/05 11:47:30 - CMDPHP REGEX FAILURE Backtrace: (/host.php[25]:include(), /include/auth.php[27]:require_once(), /include/global.php[533]:include_once(), /include/global_form.php[2362]:api_plugin_hook(), /lib/plugins.php[83]:api_plugin_run_plugin_hook(), /lib/plugins.php[225]:monitor_config_form(), /plugins/monitor/setup.php[641]:form_input_validate(), /lib/functions.php[851]:cacti_debug_backtrace())
2023/02/05 11:47:30 - CMDPHP Form Validation Failed: Variable 'id' with Value '9' Failed REGEX '0'

Plus plenty of recache errors:
023/02/05 11:49:41 - PCOMMAND Device[xxxxr] NOTE: Recache Event Detected for Device
2023/02/05 11:49:38 - PCOMMAND Device[xxx] NOTE: Recache Event Detected for Device
2023/02/05 11:49:38 - PCOMMAND Device[xxx NOTE: Recache Event Detected for Device
2023/02/05 11:49:35 - PCOMMAND Device[xxxnay] NOTE: Recache Event Detected for Device
2023/02/05 11:49:35 - PCOMMAND Device[xxx0G] NOTE: Recache Event Detected for Device
2023/02/05 11:49:26 - PCOMMAND Device[xxx] NOTE: Recache Event Detected for Device
2023/02/05 11:49:26 - PCOMMAND Device[xxxBET-Tal] NOTE: Recache Event Detected for Device

Any idea ?
jackouille
Cacti User
Posts: 71
Joined: Thu Apr 26, 2012 7:41 am

Re: Plenty of events on Logs after migration to 1.2.23

Post by jackouille »

Found another thread where you asked for DB repair, done:

Prior:
------------------------------------------------------------------------
WARNING: Cacti Template Problems found in your Database. Using the '--force' option will remove
the invalid records. However, these changes can be catastrophic to existing data sources. Therefore, you
should contact your support organization prior to proceeding with that repair.


After with --force, no erros on CLI but stillhavind recache log entries
jackouille
Cacti User
Posts: 71
Joined: Thu Apr 26, 2012 7:41 am

Re: Plenty of events on Logs after migration to 1.2.23

Post by jackouille »

And "classic" log entries:
2023/02/05 12:05:18 - RECACHE STATS: Poller:1 RecacheTime:64.5938 DevicesRecached:11
2023/02/05 12:05:14 - SYSTEM MONITOR STATS: Time:0.06 Reboots:0 DownDevices:0 Notifications:0 Purges:0
2023/02/05 12:05:14 - SYSTEM THOLD STATS: Time:0.7891 Tholds:20 TotalDevices:80 DownDevices:1 NewDownDevices:0
2023/02/05 12:05:14 - MAILER INFO: Mail successfully sent via SMTP from 'Cacti-Prod 3 <cacti@viewmynetwork.ch>', to 'jacques', cc '', and took 0.13 seconds, Subject 'ALERT: _DC_NAS - CPU Fan Status [syno_cpufan_status] went below threshold of 1 with 0'
2023/02/05 12:05:13 - MAILER INFO: Mail successfully sent via SMTP from 'Cacti-Prod 3 <cacti@viewmynetwork.ch>', to 'jacques', cc '', and took 0.44 seconds, Subject 'ALERT: _DC_NAS - RAID status [synology_raid] went below threshold of 1 with 0'
2023/02/05 12:05:13 - SYSTEM MAINT STATS: Time:0.00
2023/02/05 12:05:13 - SYSTEM STATS: Time:11.5746 Method:spine Processes:8 Threads:16 Hosts:80 HostsPerProcess:10 DataSources:13972 RRDsProcessed:6578
jackouille
Cacti User
Posts: 71
Joined: Thu Apr 26, 2012 7:41 am

Re: Plenty of events on Logs after migration to 1.2.23

Post by jackouille »

By the way it seems to have an incompatibility with Thold plugin:
2023/02/05 12:26:08 - CMDPHP REGEX FAILURE Backtrace: (/plugins/thold/thold_graph.php[28]:include_once(), /include/auth.php[27]:require_once(), /include/global.php[533]:include_once(), /include/global_form.php[2362]:api_plugin_hook(), /lib/plugins.php[83]:api_plugin_run_plugin_hook(), /lib/plugins.php[225]:monitor_config_form(), /plugins/monitor/setup.php[641]:form_input_validate(), /lib/functions.php[851]:cacti_debug_backtrace())
2023/02/05 12:26:08 - CMDPHP Form Validation Failed: Variable 'id' with Value '89' Failed REGEX '0'

In fact I'm polling my NAS and no errors raised with 1.2.21 but now with 1.2.23 I'm flooded, disabled the two alerts defined and got the above error message after disabling the second one. Do you want me to open a new ticket?
jackouille
Cacti User
Posts: 71
Joined: Thu Apr 26, 2012 7:41 am

Re: Plenty of events on Logs after migration to 1.2.23

Post by jackouille »

And got the following errors while switch from Thold page to Graphs:
2023/02/05 12:29:32 - CMDPHP REGEX FAILURE Backtrace: (/graph_view.php[27]:include(), /include/auth.php[27]:require_once(), /include/global.php[533]:include_once(), /include/global_form.php[2362]:api_plugin_hook(), /lib/plugins.php[83]:api_plugin_run_plugin_hook(), /lib/plugins.php[225]:monitor_config_form(), /plugins/monitor/setup.php[641]:form_input_validate(), /lib/functions.php[851]:cacti_debug_backtrace())
2023/02/05 12:29:32 - CMDPHP Form Validation Failed: Variable 'id' with Value 'tree_anchor-16' Failed REGEX '0'
2023/02/05 12:29:32 - CMDPHP REGEX FAILURE Backtrace: (/graph_view.php[27]:include(), /include/auth.php[27]:require_once(), /include/global.php[533]:include_once(), /include/global_form.php[2362]:api_plugin_hook(), /lib/plugins.php[83]:api_plugin_run_plugin_hook(), /lib/plugins.php[225]:monitor_config_form(), /plugins/monitor/setup.php[641]:form_input_validate(), /lib/functions.php[851]:cacti_debug_backtrace())
2023/02/05 12:29:32 - CMDPHP Form Validation Failed: Variable 'id' with Value '#' Failed REGEX '0'
jackouille
Cacti User
Posts: 71
Joined: Thu Apr 26, 2012 7:41 am

Re: Plenty of events on Logs after migration to 1.2.23

Post by jackouille »

And this issue also impacts graphs:
Attachments
Capture d’écran 2023-02-05 123620.png
Capture d’écran 2023-02-05 123620.png (96.05 KiB) Viewed 604 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest