Hi all.
I’m in the process of installing smokeping into an already deployed NMS VM Ubuntu image and am having an issue with the population of the /etc/smokeping/config.d/librenms-probes.conf and librenms-targets.conf files.
I am expecting the target and probe files to be populated by the configured targets and probes from NMS but both files contain only “There are no commands defined in the “smokeping” namespace.”
Both confs are created by an hourly cron script as per the setup guide, they are getting created as expected but the contents are not.
/etc/cron.hourly/librenms-smokeping
#! /usr/bin/env bash
sudo -u librenms /opt/librenms/lnms smokeping:generate --targets > /etc/smokeping/config.d/librenms-targets.conf
sudo -u librenms /opt/librenms/lnms smokeping:generate --probes > /etc/smokeping/config.d/librenms-probes.confsystemctl reload smokeping > /dev/null 2<&1
I seem to have missed something but have followed the setup guide to the letter with no issues except this.
Have I get the cron script correct or is it more likely I have borked something else up?
For Reference:
/etc/smokeping/config.d/librenms-probes.conf
There are no commands defined in the “smokeping” namespace.
/etc/smokeping/config.d/librenms-targets.conf
There are no commands defined in the “smokeping” namespace.
/etc/smokeping/config
@include /etc/smokeping/config.d/General
@include /etc/smokeping/config.d/Alerts
@include /etc/smokeping/config.d/Database
@include /etc/smokeping/config.d/Presentation
@include /etc/smokeping/config.d/Probes
@include /etc/smokeping/config.d/Slaves
@include /etc/smokeping/config.d/Targets
/etc/smokeping/config.d/Probes
*** Probes ***
@include /etc/smokeping/config.d/librenms-probes.conf
/etc/smokeping/config.d/Targets
*** Targets ***
probe = FPing
menu = Top
title = Network Latency Grapher
remark = Welcome to the SmokePing website of Insert Company Name Here.
Here you will learn all about the latency of our network.@include /etc/smokeping/config.d/librenms-targets.conf
/etc/smokeping/config.d/pathnames
sendmail = /usr/sbin/sendmail
imgcache = /var/cache/smokeping/images
imgurl = …/smokeping/images
datadir = /var/lib/smokeping
piddir = /var/run/smokeping
smokemail = /etc/smokeping/smokemail
tmail = /etc/smokeping/tmail
dyndir = /var/lib/smokeping/__cgi
/var/lib/smokeping
__cgi Local __sortercache
Relevant part of config.php
$config[‘smokeping’][‘dir’] = ‘/var/lib/smokeping’;
$config[‘smokeping’][‘pings’] = 20;
$config[‘smokeping’][‘probes’] = 2;
$config[‘smokeping’][‘integration’] = true;
$config[‘smokeping’][‘url’] = ‘smokeping/’; // If you have a specific URL or path for smokeping