Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/catalyst/smokeping-targets-generator
Reads INI formatted sets of hosts and produces a SmokePing compatible Targets file
https://github.com/catalyst/smokeping-targets-generator
Last synced: 3 days ago
JSON representation
Reads INI formatted sets of hosts and produces a SmokePing compatible Targets file
- Host: GitHub
- URL: https://github.com/catalyst/smokeping-targets-generator
- Owner: catalyst
- License: gpl-3.0
- Created: 2017-02-22T01:20:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-02-20T12:13:03.000Z (over 2 years ago)
- Last Synced: 2024-11-06T02:39:34.505Z (8 days ago)
- Language: Python
- Size: 27.3 KB
- Stars: 8
- Watchers: 18
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 TwoHosts 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