Closed bmfmancini closed 1 year ago
Full blocks
if (trim($alert['command']) != '' && !$ignore) {
$command = alert_replace_variables($alert, $results, $hostname);
cacti_log("SYSLOG NOTICE: Executing '$command'", true, 'SYSTEM');
$cparts = explode(' ', $command);
if (is_executable($cparts[0])) {
exec($command);
} else {
exec('/bin/sh', $command);
}
}
Pull request please.
Pull Request submitted https://github.com/Cacti/plugin_syslog/pull/194
Did you update the changelog?
just pushed a PR now for the changelog
This seems to be unresolved since https://github.com/Cacti/plugin_syslog/issues/151
The log shows Syslog executes the command but it fails actually to execute the script I changed the following line in functions.php
to
Command runs fine now