[smokeping-users] LibreNMS smokeping config file issue

Thusitha Sumanadasa thusitha555 at gmail.com
Mon Nov 23 05:43:00 CET 2015


Hey Olly,

 I did this in this way.

1.first creates "devices" folder in /etc/smokeping/.
2.I make a php script to create file for each device inside the devices
folder.
ex:- I create  "test_server_1" file in devices folder. In that file

++ test_server_1

 probe = FPing
 menu = test_server_1
 title = This is a test server x.x.x.x
 host = 198.x.x.x
# put ip address to host line.

3.Then go to the /etc/smokeping/config file and I add this line bottom of
the file.

@include /etc/smokeping/devices/test_server_1

4.In /etc/smokeping/config.d/Probes have to say what is the FPing is.

*** Probes ***

+ FPing
binary = /usr/bin/fping

++ FPing
 step = 60

5.Thats all. then restart the smokeping service by

service smokeping  restart

(All those things are done by php script that I made.So hope this will help
you.)

Thusitha




On Thu, Nov 19, 2015 at 2:57 PM, Oliver Marshall <oliver at olivermarshall.net>
wrote:

> Hi chaps
>
> We use LibreNMS and they have a php script which creates a smokeping
> config file containing the full list of devices on the network and a menu
> structure for smokeping.
>
> Only in Ubuntu it causes smokeping to complain. The top of the config file
> is shown below (ignore the ------ delimiters)
>
> -------------------------
>
> menu = Top
> title = Network Latency Grapher
>
> + network
> menu = network
> title = network
> etc
> etc
> -------------------------
>
> This causes Smokeping to complain about the "menu=" line at line 2.
>
> I can get it working if I disable the Targets file and then put the ***
> Targets *** header and the probe line in at the top but these changes are
> overwritten by LibreNMS when they update their device lists.
>
> I was wondering whether there is an easy way in Smokeping to accommodate
> the config that they are creating? If not then I can look at editing their
> script that creates this config file but I'd prefer not to in case it too
> is overwritten at a later date.
>
> Olly
>
> _______________________________________________
> smokeping-users mailing list
> smokeping-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20151123/980592b8/attachment.html>


More information about the smokeping-users mailing list