mirror of
https://git.freebsd.org/ports.git
synced 2025-04-30 02:26:38 -04:00
PR: 226223 Submitted by: Fabian Freyer <fabian.freyer@physik.tu-berlin.de> Differential Revision: https://reviews.freebsd.org/D14526
20 lines
1 KiB
Go
20 lines
1 KiB
Go
--- generator/main.go.orig 2018-02-26 16:03:57 UTC
|
|
+++ generator/main.go
|
|
@@ -21,7 +21,7 @@ func generateConfig(nodes *Node, nameToN
|
|
log.Fatal("Unable to determine absolute path for output")
|
|
}
|
|
|
|
- content, err := ioutil.ReadFile("generator.yml")
|
|
+ content, err := ioutil.ReadFile("/usr/local/etc/snmp_exporter/generator.yml")
|
|
if err != nil {
|
|
log.Fatalf("Error reading yml config: %s", err)
|
|
}
|
|
@@ -65,7 +65,7 @@ func generateConfig(nodes *Node, nameToN
|
|
|
|
var (
|
|
generateCommand = kingpin.Command("generate", "Generate snmp.yml from generator.yml")
|
|
- outputPath = generateCommand.Flag("output-path", "Path to to write resulting config file").Default("snmp.yml").Short('o').String()
|
|
+ outputPath = generateCommand.Flag("output-path", "Path to to write resulting config file").Default("/usr/local/etc/snmp_exporter/snmp.yml").Short('o').String()
|
|
parseErrorsCommand = kingpin.Command("parse_errors", "Debug: Print the parse errors output by NetSNMP")
|
|
dumpCommand = kingpin.Command("dump", "Debug: Dump the parsed and prepared MIBs")
|
|
)
|