Skip to content

Joshua2504/smokeping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-compose for smokeping (master)

for slave setup, refer to https://git.treudler.net/joshua2504/smokeping-slave

References:

Troubleshooting

Case

smokeping    | ERROR: /config/Slaves, line 2: File '/config/smokeping_secrets' is world-readable or writable, refusing it

Solution

set chmod 600 on smokeping_secrets

smokeping-targets-generator

Reads INI formatted sets of hosts from stdin and produces a SmokePing compatible Targets file on stdout.

Smokeping has a weirdly verbose way of writing Target files which is painful to maintain manually. This tool aims to address the problem by using a much more succint input format and handling automatic generation of the various permutations on each host needed to specify its ID, location in the menu hierarchy, title etc.

Usage

The INI formatted description should be of the form:

[National:Foo Ltd]
192.0.2.1=Host A
hostb.example.com

[National:Bar Ltd]
203.0.113.1=Host One
203.0.113.2=Host Two

Hosts may be specified at any point in the hierarchy, and hierarchies may be arbitrarily deep (e.g. Level 1:Level 2:Level 3).

The example given will produce a targets file like:

*** Targets ***

probe = FPing
menu = Top
title = Network Latency Graphs

+ 4E6174696F6E616C_National
menu = National
title = National

++ 466F6F204C7464_Foo_Ltd
menu = Foo Ltd
title = Foo Ltd

+++ 486F73742041_Host_A
menu = Host A
title = Host A (192.0.2.1)
host = 192.0.2.1

+++ 686F7374622E6578616D706C652E636F6D_hostb_example_com
menu = hostb.example.com
title = hostb.example.com
host = hostb.example.com

++ 426172204C7464_Bar_Ltd
menu = Bar Ltd
title = Bar Ltd

+++ 486F7374204F6E65_Host_One
menu = Host One
title = Host One (203.0.113.1)
host = 203.0.113.1

+++ 486F73742054776F_Host_Two
menu = Host Two
title = Host Two (203.0.113.2)
host = 203.0.113.2

About

My Smokeping Instance. Feel free to add your targets!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published