-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinux-cmds.go
105 lines (86 loc) · 2.21 KB
/
linux-cmds.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
//go:build linux
package main
import (
"github.com/monobilisim/monokit/mysqlHealth"
"github.com/monobilisim/monokit/pmgHealth"
"github.com/monobilisim/monokit/postalHealth"
"github.com/monobilisim/monokit/redisHealth"
"github.com/monobilisim/monokit/rmqHealth"
"github.com/monobilisim/monokit/traefikHealth"
"github.com/monobilisim/monokit/pgsqlHealth"
"github.com/monobilisim/monokit/zimbraHealth"
"github.com/monobilisim/monokit/zimbraLdap"
"github.com/spf13/cobra"
)
func RedisCommandAdd() {
var redisHealthCmd = &cobra.Command{
Use: "redisHealth",
Short: "Redis Health",
Run: redisHealth.Main,
}
RootCmd.AddCommand(redisHealthCmd)
}
func ZimbraCommandAdd() {
var zimbraHealthCmd = &cobra.Command{
Use: "zimbraHealth",
Short: "Zimbra Health",
Run: zimbraHealth.Main,
}
var zimbraLdapCmd = &cobra.Command{
Use: "zimbraLdap",
Short: "Zimbra LDAP",
Run: func(cmd *cobra.Command, args []string) {
zimbraLdap.Main()
},
}
RootCmd.AddCommand(zimbraLdapCmd)
RootCmd.AddCommand(zimbraHealthCmd)
}
func PgsqlCommandAdd() {
var pgsqlHealthCmd = &cobra.Command{
Use: "pgsqlHealth",
Short: "PostgreSQL Health",
Run: pgsqlHealth.Main,
}
RootCmd.AddCommand(pgsqlHealthCmd)
}
func MysqlCommandAdd() {
var mysqlHealthCmd = &cobra.Command{
Use: "mysqlHealth",
Short: "MySQL Health",
Run: mysqlHealth.Main,
}
RootCmd.AddCommand(mysqlHealthCmd)
}
func RmqCommandAdd() {
var rmqHealthCmd = &cobra.Command{
Use: "rmqHealth",
Short: "RabbitMQ Health",
Run: rmqHealth.Main,
}
RootCmd.AddCommand(rmqHealthCmd)
}
func PmgCommandAdd() {
var pmgHealthCmd = &cobra.Command{
Use: "pmgHealth",
Short: "Proxmox Mail Gateway Health",
Run: pmgHealth.Main,
}
RootCmd.AddCommand(pmgHealthCmd)
}
func PostalCommandAdd() {
var postalHealthCmd = &cobra.Command{
Use: "postalHealth",
Short: "Postal Health",
Run: postalHealth.Main,
}
RootCmd.AddCommand(postalHealthCmd)
}
func TraefikCommandAdd() {
var traefikHealthCmd = &cobra.Command{
Use: "traefikHealth",
Short: "Traefik Health",
Run: traefikHealth.Main,
}
RootCmd.AddCommand(traefikHealthCmd)
}