mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-20 02:44:58 +00:00

* PT-1979 Improved mdb summary information Added the MongoDB instance command line options to the output. Also fixed the spacing in the replicaset section. * Added new template file * Upgraded deps due to security issues
27 lines
900 B
Go
27 lines
900 B
Go
package templates
|
|
|
|
const HostInfo = `# This host
|
|
{{ if .ProcPath -}}
|
|
# Mongo Executable #######################################################################################
|
|
Path to executable | {{.ProcPath }}
|
|
{{ end -}}
|
|
# Report On {{.Hostname}} ########################################
|
|
{{- if .ProcUserName }}
|
|
User | {{.ProcUserName }}
|
|
{{- end }}
|
|
PID Owner | {{.ProcessName}}
|
|
Hostname | {{.Hostname}}
|
|
Version | {{.Version}}
|
|
Built On | {{.HostOsType}} {{.HostSystemCPUArch}}
|
|
Started | {{.ProcCreateTime}}
|
|
{{- if .DBPath }}
|
|
Datadir | {{.DBPath}}
|
|
{{- end }}
|
|
Processes | {{.ProcProcessCount}}
|
|
Process Type | {{.NodeType}}
|
|
{{- if .ReplicasetName }}
|
|
ReplSet | {{.ReplicasetName}}
|
|
Repl Status |
|
|
{{- end -}}
|
|
`
|