Cacti / plugin_syslog

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

Import syslog - Alert rule has error #141

Closed yingbaiibm closed 3 years ago

yingbaiibm commented 3 years ago

1) Go to syslog settings page 2) Import from local file, failed and error exist

2020/11/09 01:14:48 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/syslog/syslog_alerts.php[40]:alert_import(), /plugins/syslog/syslog_alerts.php[874]:CactiErrorHandler())

2020/11/09 01:14:48 - ERROR PHP NOTICE in Plugin 'syslog': Undefined index: import_file in file: /opt/IBM/cacti/plugins/syslog/syslog_alerts.php on line: 874

3) Import from text, success

append xml file content:

a21a371ddb36eec6d78a1e5ad9bd2d22 New Alert Rule 1 0 1 messagec on 1 on test message admin 1604902311 user@mail.com hostname
yingbaiibm commented 3 years ago

Similiar problem for Syslog - Remove rule and Syslog - Report rule import function, please also fix.

yingbaiibm commented 3 years ago

syslog : 3.0 rhel8.3 x64 FF 82