{"id":13585293,"url":"https://github.com/catalyst/smokeping-targets-generator","last_synced_at":"2025-04-27T14:33:28.048Z","repository":{"id":19094253,"uuid":"82745525","full_name":"catalyst/smokeping-targets-generator","owner":"catalyst","description":"Reads INI formatted sets of hosts and produces a SmokePing compatible Targets file","archived":false,"fork":false,"pushed_at":"2022-02-20T12:13:03.000Z","size":28,"stargazers_count":7,"open_issues_count":1,"forks_count":4,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-04-05T00:41:18.508Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/catalyst.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-22T01:20:01.000Z","updated_at":"2025-02-22T11:48:38.000Z","dependencies_parsed_at":"2022-07-23T12:17:02.998Z","dependency_job_id":null,"html_url":"https://github.com/catalyst/smokeping-targets-generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catalyst%2Fsmokeping-targets-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catalyst%2Fsmokeping-targets-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catalyst%2Fsmokeping-targets-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catalyst%2Fsmokeping-targets-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/catalyst","download_url":"https://codeload.github.com/catalyst/smokeping-targets-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251154555,"owners_count":21544520,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T15:04:51.278Z","updated_at":"2025-04-27T14:33:25.853Z","avatar_url":"https://github.com/catalyst.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# smokeping-targets-generator\n\nReads INI formatted sets of hosts from stdin and produces a SmokePing compatible Targets file on stdout.\n\nSmokeping 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.\n\n## Usage\n\nThe INI formatted description should be of the form:\n\n    [National:Foo Ltd]\n    192.0.2.1=Host A\n    hostb.example.com\n    \n    [National:Bar Ltd]\n    203.0.113.1=Host One\n    203.0.113.2=Host Two\n\nHosts may be specified at any point in the hierarchy, and hierarchies may be arbitrarily deep (e.g. `Level 1:Level 2:Level 3`).\n\nThe example given will produce a targets file like:\n\n    *** Targets ***\n\n    probe = FPing\n    menu = Top\n    title = Network Latency Graphs\n\n    + 4E6174696F6E616C_National\n    menu = National\n    title = National\n\n    ++ 466F6F204C7464_Foo_Ltd\n    menu = Foo Ltd\n    title = Foo Ltd\n\n    +++ 486F73742041_Host_A\n    menu = Host A\n    title = Host A (192.0.2.1)\n    host = 192.0.2.1\n\n    +++ 686F7374622E6578616D706C652E636F6D_hostb_example_com\n    menu = hostb.example.com\n    title = hostb.example.com\n    host = hostb.example.com\n\n    ++ 426172204C7464_Bar_Ltd\n    menu = Bar Ltd\n    title = Bar Ltd\n\n    +++ 486F7374204F6E65_Host_One\n    menu = Host One\n    title = Host One (203.0.113.1)\n    host = 203.0.113.1\n\n    +++ 486F73742054776F_Host_Two\n    menu = Host Two\n    title = Host Two (203.0.113.2)\n    host = 203.0.113.2\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatalyst%2Fsmokeping-targets-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatalyst%2Fsmokeping-targets-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatalyst%2Fsmokeping-targets-generator/lists"}