Cacti/plugin_syslog

[CACTI 1.3 latest - SYSLOG latest] plugin install failed with errors

Closed this issue · 2 comments

Hi Support,

when i try to install plugin into new cacti 1.3.x branch failed with these errors:

2023-05-26 14:38:39 - SQL Backtrace: (/plugins/syslog/syslog_alerts.php[75]:syslog_alerts(), /plugins/syslog/syslog_alerts.php[871]:syslog_db_fetch_cell(), /plugins/syslog/database.php[97]:db_fetch_cell(), /lib/database.php[605]:db_fetch_cell_prepared(), /lib/database.php[632]:db_execute_prepared())
2023-05-26 14:38:39 - CMDPHP ERROR: A DB Cell Failed!, Error: Table 'cacti.syslog_alert' doesn't exist
2023-05-26 14:38:39 - SQL Backtrace: (/plugins/syslog/syslog_alerts.php[75]:syslog_alerts(), /plugins/syslog/syslog_alerts.php[865]:syslog_get_alert_records(), /plugins/syslog/syslog_alerts.php[377]:syslog_db_fetch_assoc(), /plugins/syslog/database.php[153]:db_fetch_assoc(), /lib/database.php[756]:db_fetch_assoc_prepared(), /lib/database.php[780]:db_execute_prepared())
2023-05-26 14:38:39 - CMDPHP ERROR: A DB Row Failed!, Error: Table 'cacti.syslog_alert' doesn't exist

OS: ubunt 22.04
PHP: 8.1.2
CACTI: 1.3 latest

thanks a lot. stefano.

Also after removed plugin from dir with --> rm -rf plugins/syslog i see anyway an entry into database:

ls -lrt
total 20
-rwxrwxr-x  1 www-data www-data 1586 May 23 15:06 index.php
drwxrwxr-x  5 www-data www-data 4096 May 26 14:06 audit
drwxrwxr-x  8 www-data www-data 4096 May 26 14:09 webseer
drwxrwxr-x  9 www-data www-data 4096 May 26 14:11 intropage
drwxrwxr-x 10 www-data www-data 4096 May 26 14:13 thold
MariaDB [cacti]> select * from plugin_config;
+----+-----------+------------------------+--------+-----------------------------+-------------------------------------------+---------+
| id | directory | name                   | status | author                      | webpage                                   | version |
+----+-----------+------------------------+--------+-----------------------------+-------------------------------------------+---------+
|  1 | intropage | Intropage/Dashboard    |      1 | The Cacti Group, Petr Macek | https://github.com/cacti/plugin_intropage | 4.0.3   |
|  2 | audit     | Audit Plugin for Cacti |      1 | The Cacti Group             | http://www.cacti.net                      | 1.1     |
|  3 | webseer   | Service Monitor        |      1 | The Cacti Group             | http://cactiusers.org                     | 3.3     |
|  4 | thold     | Thresholds             |      1 | The Cacti Group             | http://www.cacti.net                      | 1.7     |
| 13 | syslog    |                        |      0 |                             |                                           |         |
+----+-----------+------------------------+--------+-----------------------------+-------------------------------------------+---------+

i need to delete it manually:
delete from plugin_config where id=13;

thanks a lot.

Cool. Setup for this plugin is pretty important, especially in the partitioning bits and remote data collection.