Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can no longer install syslog plugin #232

Open
dallenk opened this issue Nov 7, 2024 · 2 comments
Open

can no longer install syslog plugin #232

dallenk opened this issue Nov 7, 2024 · 2 comments

Comments

@dallenk
Copy link

dallenk commented Nov 7, 2024

Describe the bug
A clear and concise description of what the bug is.

I belive this will be related too: Cacti/cacti#5901

To Reproduce
fresh git clone of syslog plugin to /plugins/syslog
edit config.php to match DB of cacti/include/config.php
cacti / plugins / install syslog
truncate tables / innodb or MyISAM / default partition and time

2024-11-07 09:18:13 - PHP ERROR WARNING Backtrace: (/plugins.php[179]:update_show_current(), /plugins.php[1578]:format_plugin_row(), /plugins.php[1660]:CactiErrorHandler())
2024-11-07 09:18:13 - ERROR PHP WARNING: Undefined array key "last_updated" in file: /var/www/html/cacti/plugins.php on line: 1660
2024-11-07 09:18:13 - PHP ERROR WARNING Backtrace: (/plugins.php[179]:update_show_current(), /plugins.php[1578]:format_plugin_row(), /plugins.php[1660]:CactiErrorHandler())
2024-11-07 09:18:13 - ERROR PHP WARNING: Undefined array key "last_updated" in file: /var/www/html/cacti/plugins.php on line: 1660
2024-11-07 09:18:13 - PHP ERROR WARNING Backtrace: (/plugins.php[179]:update_show_current(), /plugins.php[1578]:format_plugin_row(), /plugins.php[1660]:CactiErrorHandler())
2024-11-07 09:18:13 - ERROR PHP WARNING: Undefined array key "last_updated" in file: /var/www/html/cacti/plugins.php on line: 1660
2024-11-07 09:18:13 - PHP ERROR WARNING Backtrace: (/plugins.php[179]:update_show_current(), /plugins.php[1578]:format_plugin_row(), /plugins.php[1660]:CactiErrorHandler())
2024-11-07 09:18:13 - ERROR PHP WARNING: Undefined array key "last_updated" in file: /var/www/html/cacti/plugins.php on line: 1660
2024-11-07 09:18:13 - PHP ERROR WARNING Backtrace: (/plugins.php[179]:update_show_current(), /plugins.php[1578]:format_plugin_row(), /plugins.php[1660]:CactiErrorHandler())
2024-11-07 09:18:13 - ERROR PHP WARNING: Undefined array key "last_updated" in file: /var/www/html/cacti/plugins.php on line: 1660
2024-11-07 09:18:13 - PHP ERROR WARNING Backtrace: (/plugins.php[179]:update_show_current(), /plugins.php[1578]:format_plugin_row(), /plugins.php[1660]:CactiErrorHandler())
2024-11-07 09:18:13 - ERROR PHP WARNING: Undefined array key "last_updated" in file: /var/www/html/cacti/plugins.php on line: 1660
2024-11-07 09:18:13 - PHP ERROR WARNING Backtrace: (/plugins.php[179]:update_show_current(), /plugins.php[1578]:format_plugin_row(), /plugins.php[1660]:CactiErrorHandler())
2024-11-07 09:18:13 - ERROR PHP WARNING: Undefined array key "last_updated" in file: /var/www/html/cacti/plugins.php on line: 1660
2024-11-07 09:18:13 - PHP ERROR WARNING Backtrace: (/plugins.php[179]:update_show_current(), /plugins.php[1578]:format_plugin_row(), /plugins.php[1660]:CactiErrorHandler())
2024-11-07 09:18:13 - ERROR PHP WARNING: Undefined array key "last_updated" in file: /var/www/html/cacti/plugins.php on line: 1660
2024-11-07 09:18:13 - PHP ERROR WARNING Backtrace: (/plugins.php[179]:update_show_current(), /plugins.php[1578]:format_plugin_row(), /plugins.php[1660]:CactiErrorHandler())
2024-11-07 09:18:13 - ERROR PHP WARNING: Undefined array key "last_updated" in file: /var/www/html/cacti/plugins.php on line: 1660
2024-11-07 09:18:13 - PHP ERROR WARNING Backtrace: (/plugins.php[179]:update_show_current(), /plugins.php[1578]:format_plugin_row(), /plugins.php[1660]:CactiErrorHandler())
2024-11-07 09:18:13 - ERROR PHP WARNING: Undefined array key "last_updated" in file: /var/www/html/cacti/plugins.php on line: 1660
2024-11-07 09:18:13 - PHP ERROR WARNING Backtrace: (/plugins.php[179]:update_show_current(), /plugins.php[1578]:format_plugin_row(), /plugins.php[1660]:CactiErrorHandler())
2024-11-07 09:18:13 - ERROR PHP WARNING: Undefined array key "last_updated" in file: /var/www/html/cacti/plugins.php on line: 1660
2024-11-07 09:18:13 - PHP ERROR WARNING Backtrace: (/plugins.php[26]:include_once(), /plugins.php[26]:CactiErrorHandler())
2024-11-07 09:18:13 - ERROR PHP WARNING: include_once(): Failed opening './lib/poller.php' for inclusion (include_path='.:/usr/share/php') in file: /var/www/html/cacti/plugins.php on line: 26
2024-11-07 09:18:13 - PHP ERROR WARNING Backtrace: (/plugins.php[26]:include_once(), /plugins.php[26]:CactiErrorHandler())
2024-11-07 09:18:13 - ERROR PHP WARNING: include_once(./lib/poller.php): Failed to open stream: No such file or directory in file: /var/www/html/cacti/plugins.php on line: 26
2024-11-07 09:18:13 - PLUGIN NOTE: Cacti Plugin syslog has been installed by xxxxxx
2024-11-07 09:18:09 - SQL Backtrace: (/plugins.php[212]:api_plugin_install(), /lib/plugins.php[758]:db_execute_prepared())
2024-11-07 09:18:09 - CMDPHP ERROR: A DB Exec Failed!, Error: Unknown column 'last_updated' in 'field list'
2024-11-07 09:18:09 - PHP ERROR WARNING Backtrace: (/plugins.php[26]:include_once(), /plugins.php[26]:CactiErrorHandler())
2024-11-07 09:18:09 - ERROR PHP WARNING: include_once(): Failed opening './lib/poller.php' for inclusion (include_path='.:/usr/share/php') in file: /var/www/html/cacti/plugins.php on line: 26
2024-11-07 09:18:09 - PHP ERROR WARNING Backtrace: (/plugins.php[26]:include_once(), /plugins.php[26]:CactiErrorHandler())
2024-11-07 09:18:09 - ERROR PHP WARNING: include_once(./lib/poller.php): Failed to open stream: No such file or directory in file: /var/www/html/cacti/plugins.php on line: 26
2024-11-07 09:18:02 - SQL Backtrace: (/plugins.php[212]:api_plugin_install(), /lib/plugins.php[758]:db_execute_prepared())
2024-11-07 09:18:02 - CMDPHP ERROR: A DB Exec Failed!, Error: Unknown column 'last_updated' in 'field list'
2024-11-07 09:18:02 - PHP ERROR WARNING Backtrace: (/plugins.php[26]:include_once(), /plugins.php[26]:CactiErrorHandler())
2024-11-07 09:18:02 - ERROR PHP WARNING: include_once(): Failed opening './lib/poller.php' for inclusion (include_path='.:/usr/share/php') in file: /var/www/html/cacti/plugins.php on line: 26
2024-11-07 09:18:02 - PHP ERROR WARNING Backtrace: (/plugins.php[26]:include_once(), /plugins.php[26]:CactiErrorHandler())
2024-11-07 09:18:02 - ERROR PHP WARNING: include_once(./lib/poller.php): Failed to open stream: No such file or directory in file: /var/www/html/cacti/plugins.php on line: 26
2024-11-07 09:18:00 - PHP ERROR WARNING Backtrace: (/plugins.php[179]:update_show_current(), /plugins.php[1578]:format_plugin_row(), /plugins.php[1660]:CactiErrorHandler())
2024-11-07 09:18:00 - ERROR PHP WARNING: Undefined array key "last_updated" in file: /var/www/html/cacti/plugins.php on line: 1660
2024-11-07 09:18:00 - PHP ERROR WARNING Backtrace: (/plugins.php[179]:update_show_current(), /plugins.php[1578]:format_plugin_row(), /plugins.php[1660]:CactiErrorHandler())
2024-11-07 09:18:00 - ERROR PHP WARNING: Undefined array key "last_updated" in file: /var/www/html/cacti/plugins.php on line: 1660
2024-11-07 09:18:00 - PHP ERROR WARNING Backtrace: (/plugins.php[179]:update_show_current(), /plugins.php[1578]:format_plugin_row(), /plugins.php[1660]:CactiErrorHandler())
2024-11-07 09:18:00 - ERROR PHP WARNING: Undefined array key "last_updated" in file: /var/www/html/cacti/plugins.php on line: 1660
2024-11-07 09:18:00 - PHP ERROR WARNING Backtrace: (/plugins.php[179]:update_show_current(), /plugins.php[1578]:format_plugin_row(), /plugins.php[1660]:CactiErrorHandler())
2024-11-07 09:18:00 - ERROR PHP WARNING: Undefined array key "last_updated" in file: /var/www/html/cacti/plugins.php on line: 1660
2024-11-07 09:18:00 - PHP ERROR WARNING Backtrace: (/plugins.php[179]:update_show_current(), /plugins.php[1578]:format_plugin_row(), /plugins.php[1660]:CactiErrorHandler())
2024-11-07 09:18:00 - ERROR PHP WARNING: Undefined array key "last_updated" in file: /var/www/html/cacti/plugins.php on line: 1660
2024-11-07 09:18:00 - PHP ERROR WARNING Backtrace: (/plugins.php[179]:update_show_current(), /plugins.php[1578]:format_plugin_row(), /plugins.php[1660]:CactiErrorHandler())
2024-11-07 09:18:00 - ERROR PHP WARNING: Undefined array key "last_updated" in file: /var/www/html/cacti/plugins.php on line: 1660
2024-11-07 09:18:00 - PHP ERROR WARNING Backtrace: (/plugins.php[179]:update_show_current(), /plugins.php[1578]:format_plugin_row(), /plugins.php[1660]:CactiErrorHandler())
2024-11-07 09:18:00 - ERROR PHP WARNING: Undefined array key "last_updated" in file: /var/www/html/cacti/plugins.php on line: 1660
2024-11-07 09:18:00 - PHP ERROR WARNING Backtrace: (/plugins.php[179]:update_show_current(), /plugins.php[1578]:format_plugin_row(), /plugins.php[1660]:CactiErrorHandler())
2024-11-07 09:18:00 - ERROR PHP WARNING: Undefined array key "last_updated" in file: /var/www/html/cacti/plugins.php on line: 1660
2024-11-07 09:18:00 - PHP ERROR WARNING Backtrace: (/plugins.php[179]:update_show_current(), /plugins.php[1578]:format_plugin_row(), /plugins.php[1660]:CactiErrorHandler())
2024-11-07 09:18:00 - ERROR PHP WARNING: Undefined array key "last_updated" in file: /var/www/html/cacti/plugins.php on line: 1660
2024-11-07 09:18:00 - PHP ERROR WARNING Backtrace: (/plugins.php[179]:update_show_current(), /plugins.php[1578]:format_plugin_row(), /plugins.php[1660]:CactiErrorHandler())
2024-11-07 09:18:00 - ERROR PHP WARNING: Undefined array key "last_updated" in file: /var/www/html/cacti/plugins.php on line: 1660
2024-11-07 09:18:00 - PHP ERROR WARNING Backtrace: (/plugins.php[179]:update_show_current(), /plugins.php[1578]:format_plugin_row(), /plugins.php[1660]:CactiErrorHandler())
2024-11-07 09:18:00 - ERROR PHP WARNING: Undefined array key "last_updated" in file: /var/www/html/cacti/plugins.php on line: 1660
2024-11-07 09:17:59 - PHP ERROR WARNING Backtrace: (/plugins.php[26]:include_once(), /plugins.php[26]:CactiErrorHandler())
2024-11-07 09:17:59 - ERROR PHP WARNING: include_once(): Failed opening './lib/poller.php' for inclusion (include_path='.:/usr/share/php') in file: /var/www/html/cacti/plugins.php on line: 26
2024-11-07 09:17:59 - PHP ERROR WARNING Backtrace: (/plugins.php[26]:include_once(), /plugins.php[26]:CactiErrorHandler())
2024-11-07 09:17:59 - ERROR PHP WARNING: include_once(./lib/poller.php): Failed to open stream: No such file or directory in file: /var/www/html/cacti/plugins.php on line: 26

sudo -u www-data php upgrade_database.php
NOTE: Repairing Tables for Local Database
ERROR: Your Cacti is already up to date

  • from: v1.3.0
    to: v1.3.0 - Dev ba49b776 @ 2024-11-07 08:15
    n11tech@911nms:/var/www/html/cacti/cli$
@dallenk
Copy link
Author

dallenk commented Nov 7, 2024

another strange thing.. even tho plugin says syslog is not installed, cacti belives it is.
image

image

@xmacan
Copy link
Member

xmacan commented Nov 8, 2024

ALTER TABLE plugin_config ADD COLUMN last_updated TIMESTAMP DEFAULT NULL;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants