mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-22 11:54:54 +00:00
Added security checks & server storage engine
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package templates
|
||||
|
||||
const Clusterwide = `
|
||||
# Cluster wide #################################################################################
|
||||
# Cluster wide ###########################################################################################
|
||||
Databases: {{.TotalDBsCount}}
|
||||
Collections: {{.TotalCollectionsCount}}
|
||||
Sharded Collections: {{.ShardedColsCount}}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
package templates
|
||||
|
||||
const HostInfo = `# This host
|
||||
# Mongo Executable #############################################################################
|
||||
# Mongo Executable #######################################################################################
|
||||
Path to executable | {{.ProcPath}}
|
||||
# Report On {{.ThisHostID}} ########################################
|
||||
User | {{.ProcUserName}}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
package templates
|
||||
|
||||
const Oplog = `
|
||||
# Oplog ########################################################################################
|
||||
# Oplog ##################################################################################################
|
||||
Oplog Size {{.Size}} Mb
|
||||
Oplog Used {{.UsedMB}} Mb
|
||||
Oplog Length {{.Running}}
|
||||
|
@@ -1,13 +1,13 @@
|
||||
package templates
|
||||
|
||||
const Replicas = `
|
||||
# Instances ####################################################################################
|
||||
ID Host Type ReplSet
|
||||
# Instances ##############################################################################################
|
||||
ID Host Type ReplSet Engine
|
||||
{{- if . -}}
|
||||
{{- range . }}
|
||||
{{printf "% 3d" .Id}} {{printf "%-30s" .Name}} {{printf "%-30s" .StateStr}} {{printf "%10s" .Set -}}
|
||||
{{printf "% 3d" .Id}} {{printf "%-30s" .Name}} {{printf "%-30s" .StateStr}} {{printf "%10s" .Set }} {{printf "%20s" .StorageEngine.Name -}}
|
||||
{{end}}
|
||||
{{else}}
|
||||
No replica sets found
|
||||
no replica sets found
|
||||
{{end}}
|
||||
`
|
||||
|
@@ -1,7 +1,7 @@
|
||||
package templates
|
||||
|
||||
const RunningOps = `
|
||||
# Running Ops ##################################################################################
|
||||
# Running Ops ############################################################################################
|
||||
|
||||
Type Min Max Avg
|
||||
Insert {{printf "% 8d" .Insert.Min}} {{printf "% 8d" .Insert.Max}} {{printf "% 8d" .Insert.Avg}}/{{.SampleRate}}
|
||||
|
@@ -1,9 +1,16 @@
|
||||
package templates
|
||||
|
||||
const Security = `
|
||||
# Security #####################################################################################
|
||||
Users {{.Users}}
|
||||
Roles {{.Roles}}
|
||||
Auth {{.Auth}}
|
||||
SSL {{.SSL}}
|
||||
`
|
||||
# Security ###############################################################################################
|
||||
Users : {{.Users}}
|
||||
Roles : {{.Roles}}
|
||||
Auth : {{.Auth}}
|
||||
SSL : {{.SSL}}
|
||||
Port : {{.Port}}
|
||||
Bind IP: {{.BindIP}}
|
||||
{{- if .WarningMsgs -}}
|
||||
{{- range .WarningMsgs }}
|
||||
{{ . }}
|
||||
{{end}}
|
||||
{{end }}
|
||||
`
|
||||
|
Reference in New Issue
Block a user