mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-22 03:44:55 +00:00
Fixes for PT-66
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
package templates
|
||||
|
||||
const HostInfo = `# This host
|
||||
{{ if .ProcPath -}}
|
||||
# Mongo Executable #######################################################################################
|
||||
Path to executable | {{.ProcPath}}
|
||||
# Report On {{.ThisHostID}} ########################################
|
||||
User | {{.ProcUserName}}
|
||||
Path to executable | {{.ProcPath }}
|
||||
{{ end -}}
|
||||
# Report On {{.Hostname}} ########################################
|
||||
{{- if .ProcUserName }}
|
||||
User | {{.ProcUserName }}
|
||||
{{- end }}
|
||||
PID Owner | {{.ProcessName}}
|
||||
Hostname | {{.Hostname}}
|
||||
Version | {{.Version}}
|
||||
|
@@ -2,10 +2,10 @@ package templates
|
||||
|
||||
const Replicas = `
|
||||
# Instances ##############################################################################################
|
||||
PID Host Type ReplSet Engine
|
||||
PID Host Type ReplSet Engine
|
||||
{{- if . -}}
|
||||
{{- range . }}
|
||||
{{printf "% 3d" .ID}} {{printf "%-30s" .Name}} {{printf "%-30s" .StateStr}} {{ if .Set }}{{printf "%-10s" .Set }}{{else}}- {{end}} {{printf "%20s" .StorageEngine.Name -}}
|
||||
{{printf "% 6d" .ID}} {{printf "%-30s" .Name}} {{printf "%-25s" .StateStr}} {{ if .Set }}{{printf "%-10s" .Set }}{{else}}- {{end}} {{printf "%20s" .StorageEngine.Name -}}
|
||||
{{end}}
|
||||
{{else}}
|
||||
no replica sets found
|
||||
|
Reference in New Issue
Block a user