Cacti / plugin_syslog

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

Syslog 4.0 not passing <HOSTNAME> Variable during command execution #188

Closed bmfmancini closed 1 year ago

bmfmancini commented 1 year ago

During testing I am seeing that the hostname variable is not being passed to the script

image

image

the rule executes the below notice --host is blank

2022-07-21 10:52:10 - SYSTEM SYSLOG NOTICE: Executing '/opt/script --desc "Test" --host --items ''\''Module normal voltage range

bmfmancini commented 1 year ago

tested the same rule on 3.1 working as expected

bmfmancini commented 1 year ago

Ahh I see whats going on here

by default on 3.1 a new rule reporting level is set to the system and that works fine passing the hostname but on 4.0 if you don't select device reporting no hostname is passed

Unless this is not intended I will update the doc on this since rules from 3.1 may not work