Traceroutes in email alerts

Hello,

I’m trying to set up notification emails to include a traceroute, but am having problems getting this working. What I’ve tried so far is as follows:

  1. Edit ‘/opt/librenms/config.php’ and include the following (note that the OS is Arch Linux and tracepath is the replacement for traceroute):
    $config['debug']['run_trace'] = true;
    $config['traceroute'] = '/usr/bin/tracepath';

  2. Add the following to the alert template (taken from the documentation):
    {{$alert->debug['traceroute']}}

Is there something I’m missing?

Thanks.

user@server:/opt/librenms$ sudo ./validate.php


  [RuntimeException]
  SHA384 is not supported by your openssl extension, could not verify the phar file integrity


self-update [-r|--rollback] [--clean-backups] [--no-progress] [--update-keys] [--stable] [--preview] [--snapshot] [--set-channel-only] [--] [<version>]



  [RuntimeException]
  SHA384 is not supported by your openssl extension, could not verify the phar file integrity


self-update [-r|--rollback] [--clean-backups] [--no-progress] [--update-keys] [--stable] [--preview] [--snapshot] [--set-channel-only] [--] [<version>]



  [RuntimeException]
  SHA384 is not supported by your openssl extension, could not verify the phar file integrity


self-update [-r|--rollback] [--clean-backups] [--no-progress] [--update-keys] [--stable] [--preview] [--snapshot] [--set-channel-only] [--] [<version>]

====================================
Component | Version
--------- | -------
LibreNMS  | 1.52
DB Schema | 2019_02_10_220000_add_dates_to_fdb (132)
PHP       | 7.2.14
MySQL     | 10.3.12-MariaDB-log
RRDTool   | 1.7.1
SNMP      | NET-SNMP 5.8
====================================

[OK]    Composer Version: 1.7.2
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database schema correct
nologin: invalid option -- 'c'
Try 'nologin --help' for more information.
[FAIL]  fping could not be executed. fping must have CAP_NET_RAW capability (getcap) or suid. Selinux exlusions may be required.
 ()
[FAIL]  fping6 location is incorrect or bin not installed.
	[FIX]:
	Install fping6 or manually set the path to fping6 by placing the following in config.php: $config['fping6'] = '/path/to/fping6';
nologin: invalid option -- 'c'
Try 'nologin --help' for more information.
user@server:/opt/librenms$

tracepath does not accept the same options as traceroute. Just install traceroute.
Also, your php SSL is not working
And you have an issue with your login shell in /etc/passwd
among other issues with your install.

This error is caused by the version of composer downloaded and installed into the /opt/librenms directory by running ./validate.php. It doesn’t look like this version gets automatically updated, so if I remove it completely and re-run ./validate.php, a new version gets downloaded. This has been causing problems for some time. Would it make more sense to use the system version of composer?