In librenms.log i have some error like this:
[2018-08-22 09:14:02] production.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /home/librenms/includes/alerts.inc.php(401) : eval()'d code:3
Stack trace:
#0 /home/librenms/LibreNMS/Alert/Template.php(174): RunJail('$ret .= "RECOVE...', Array)
#1 /home/librenms/LibreNMS/Alert/Template.php(65): LibreNMS\Alert\Template->legacyBody(Array)
#2 /home/librenms/includes/alerts.inc.php(856): LibreNMS\Alert\Template->getBody(Array)
#3 /home/librenms/includes/alerts.inc.php(605): ExtTransports(Array)
#4 /home/librenms/includes/alerts.inc.php(797): IssueAlert(Array)
#5 /home/librenms/alerts.php(48): RunAlerts()
#6 {main}
It is a problem because some alert doesn’t send. When I test with scripts/test-alert.php and scripts/test-template.php I don’t have any problem. I convert all my template.
My validate.php is good:
root@mon3:/home/librenms# ./validate.php
Component | Version |
---|---|
LibreNMS | 1.42.01-63-ge448190a6 |
DB Schema | 260 |
PHP | 7.0.30-0+deb9u1 |
MySQL | 10.1.26-MariaDB-0+deb9u1 |
RRDTool | 1.6.0 |
SNMP | NET-SNMP 5.7.3 |
====================================
[OK] Composer Version: 1.7.2
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
root@mon3:/home/librenms#
Somebody can help me ?