Cacti / plugin_syslog

Syslog Plugin for Cacti
GNU General Public License v2.0
21 stars 16 forks source link

[SYSLOG] latest source - php errors #171

Closed anarkia1976 closed 2 years ago

anarkia1976 commented 2 years ago

Describe the bug

I have merged latest source from git and i have these errors in logs:

2022-03-22 08:45:31 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/syslog/syslog_process.php[214]:syslog_process_reports(), /plugins/syslog/functions.php[1876]:reports_load_format_file(), /lib/reports.php[637]:file(), CactiErrorHandler()) 2022-03-22 08:45:31 - ERROR PHP NOTICE: file(): read of 8192 bytes failed with errno=21 Is a directory in file: /var/www/html/cacti/lib/reports.php on line: 637 2022-03-22 08:45:31 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/syslog/syslog_process.php[190]:syslog_process_alerts(), /plugins/syslog/functions.php[1201]:syslog_process_alert(), /plugins/syslog/functions.php[1241]:reports_load_format_file(), /lib/reports.php[637]:file(), CactiErrorHandler()) 2022-03-22 08:45:31 - ERROR PHP NOTICE: file(): read of 8192 bytes failed with errno=21 Is a directory in file: /var/www/html/cacti/lib/reports.php on line: 637 2022-03-22 08:45:31 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/syslog/syslog_process.php[190]:syslog_process_alerts(), /plugins/syslog/functions.php[1201]:syslog_process_alert(), /plugins/syslog/functions.php[1241]:reports_load_format_file(), /lib/reports.php[637]:file(), CactiErrorHandler()) 2022-03-22 08:45:31 - ERROR PHP NOTICE: file(): read of 8192 bytes failed with errno=21 Is a directory in file: /var/www/html/cacti/lib/reports.php on line: 637 2022-03-22 08:45:31 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/syslog/syslog_process.php[190]:syslog_process_alerts(), /plugins/syslog/functions.php[1201]:syslog_process_alert(), /plugins/syslog/functions.php[1241]:reports_load_format_file(), /lib/reports.php[637]:file(), CactiErrorHandler()) 2022-03-22 08:45:31 - ERROR PHP NOTICE: file(): read of 8192 bytes failed with errno=21 Is a directory in file: /var/www/html/cacti/lib/reports.php on line: 637

thanks a lot

TheWitness commented 2 years ago

Sounds like a file system error.

TheWitness commented 2 years ago

Yea, this error has two legs. One in Cacti and one here. In the mean time, goto Console > Configuration > Settings > Syslog and set the Format File. Also, note you have to be running the latest 1.2.x branch to use this. Also, the notification settings are not completely hashed out. So, some new features are not fully tested yet.

anarkia1976 commented 2 years ago

Yea, this error has two legs. One in Cacti and one here. In the mean time, goto Console > Configuration > Settings > Syslog and set the Format File. Also, note you have to be running the latest 1.2.x branch to use this. Also, the notification settings are not completely hashed out. So, some new features are not fully tested yet.

Hi @TheWitness i'm using always latest source of cacti and syslog plugin. i didn't see option related to Syslog --> format file: image

if i revert to commit --> ea97f1469cb796c5497006a8339667d128e0777a all is ok.

thanks a lot

TheWitness commented 2 years ago

Oh, crap. I just committed the updated setup.php. Update again. It should be there.

anarkia1976 commented 2 years ago

all fixed now thanks a lot.