@@ -37,6 +37,21 @@ func probeSystemSandboxConnection(c http.FortiHTTP, _ *TargetMetadata) ([]promet
3737 "Sandbox connection status" ,
3838 []string {"sandbox_type" }, nil ,
3939 )
40+ connectionStatusUnauthorized := prometheus .NewDesc (
41+ "fortigate_sandbox_connection_status_unauthorized" ,
42+ "Sandbox connection status" ,
43+ []string {"sandbox_type" }, nil ,
44+ )
45+ connectionStatusIncompatible := prometheus .NewDesc (
46+ "fortigate_sandbox_connection_status_incompatible" ,
47+ "Sandbox connection status" ,
48+ []string {"sandbox_type" }, nil ,
49+ )
50+ connectionStatusUnverified := prometheus .NewDesc (
51+ "fortigate_sandbox_connection_status_unverified" ,
52+ "Sandbox connection status" ,
53+ []string {"sandbox_type" }, nil ,
54+ )
4055
4156 type SystemSandboxConnection struct {
4257 Status string `json:"status"`
@@ -59,14 +74,44 @@ func probeSystemSandboxConnection(c http.FortiHTTP, _ *TargetMetadata) ([]promet
5974 m = append (m , prometheus .MustNewConstMetric (connectionStatusUreachable , prometheus .GaugeValue , 1 , r .Type ))
6075 m = append (m , prometheus .MustNewConstMetric (connectionStatusReachable , prometheus .GaugeValue , 0 , r .Type ))
6176 m = append (m , prometheus .MustNewConstMetric (connectionStatusDisable , prometheus .GaugeValue , 0 , r .Type ))
77+ m = append (m , prometheus .MustNewConstMetric (connectionStatusUnauthorized , prometheus .GaugeValue , 0 , r .Type ))
78+ m = append (m , prometheus .MustNewConstMetric (connectionStatusIncompatible , prometheus .GaugeValue , 0 , r .Type ))
79+ m = append (m , prometheus .MustNewConstMetric (connectionStatusUnverified , prometheus .GaugeValue , 0 , r .Type ))
6280 case "reachable" :
6381 m = append (m , prometheus .MustNewConstMetric (connectionStatusUreachable , prometheus .GaugeValue , 0 , r .Type ))
6482 m = append (m , prometheus .MustNewConstMetric (connectionStatusReachable , prometheus .GaugeValue , 1 , r .Type ))
6583 m = append (m , prometheus .MustNewConstMetric (connectionStatusDisable , prometheus .GaugeValue , 0 , r .Type ))
84+ m = append (m , prometheus .MustNewConstMetric (connectionStatusUnauthorized , prometheus .GaugeValue , 0 , r .Type ))
85+ m = append (m , prometheus .MustNewConstMetric (connectionStatusIncompatible , prometheus .GaugeValue , 0 , r .Type ))
86+ m = append (m , prometheus .MustNewConstMetric (connectionStatusUnverified , prometheus .GaugeValue , 0 , r .Type ))
6687 case "disabled" :
6788 m = append (m , prometheus .MustNewConstMetric (connectionStatusUreachable , prometheus .GaugeValue , 0 , r .Type ))
6889 m = append (m , prometheus .MustNewConstMetric (connectionStatusReachable , prometheus .GaugeValue , 0 , r .Type ))
6990 m = append (m , prometheus .MustNewConstMetric (connectionStatusDisable , prometheus .GaugeValue , 1 , r .Type ))
91+ m = append (m , prometheus .MustNewConstMetric (connectionStatusUnauthorized , prometheus .GaugeValue , 0 , r .Type ))
92+ m = append (m , prometheus .MustNewConstMetric (connectionStatusIncompatible , prometheus .GaugeValue , 0 , r .Type ))
93+ m = append (m , prometheus .MustNewConstMetric (connectionStatusUnverified , prometheus .GaugeValue , 0 , r .Type ))
94+ case "unauthorized" :
95+ m = append (m , prometheus .MustNewConstMetric (connectionStatusUreachable , prometheus .GaugeValue , 0 , r .Type ))
96+ m = append (m , prometheus .MustNewConstMetric (connectionStatusReachable , prometheus .GaugeValue , 0 , r .Type ))
97+ m = append (m , prometheus .MustNewConstMetric (connectionStatusDisable , prometheus .GaugeValue , 0 , r .Type ))
98+ m = append (m , prometheus .MustNewConstMetric (connectionStatusUnauthorized , prometheus .GaugeValue , 1 , r .Type ))
99+ m = append (m , prometheus .MustNewConstMetric (connectionStatusIncompatible , prometheus .GaugeValue , 0 , r .Type ))
100+ m = append (m , prometheus .MustNewConstMetric (connectionStatusUnverified , prometheus .GaugeValue , 0 , r .Type ))
101+ case "incompatible" :
102+ m = append (m , prometheus .MustNewConstMetric (connectionStatusUreachable , prometheus .GaugeValue , 0 , r .Type ))
103+ m = append (m , prometheus .MustNewConstMetric (connectionStatusReachable , prometheus .GaugeValue , 0 , r .Type ))
104+ m = append (m , prometheus .MustNewConstMetric (connectionStatusDisable , prometheus .GaugeValue , 0 , r .Type ))
105+ m = append (m , prometheus .MustNewConstMetric (connectionStatusUnauthorized , prometheus .GaugeValue , 0 , r .Type ))
106+ m = append (m , prometheus .MustNewConstMetric (connectionStatusIncompatible , prometheus .GaugeValue , 1 , r .Type ))
107+ m = append (m , prometheus .MustNewConstMetric (connectionStatusUnverified , prometheus .GaugeValue , 0 , r .Type ))
108+ case "unverified" :
109+ m = append (m , prometheus .MustNewConstMetric (connectionStatusUreachable , prometheus .GaugeValue , 0 , r .Type ))
110+ m = append (m , prometheus .MustNewConstMetric (connectionStatusReachable , prometheus .GaugeValue , 0 , r .Type ))
111+ m = append (m , prometheus .MustNewConstMetric (connectionStatusDisable , prometheus .GaugeValue , 0 , r .Type ))
112+ m = append (m , prometheus .MustNewConstMetric (connectionStatusUnauthorized , prometheus .GaugeValue , 0 , r .Type ))
113+ m = append (m , prometheus .MustNewConstMetric (connectionStatusIncompatible , prometheus .GaugeValue , 0 , r .Type ))
114+ m = append (m , prometheus .MustNewConstMetric (connectionStatusUnverified , prometheus .GaugeValue , 1 , r .Type ))
70115 }
71116 }
72117 return m , true
0 commit comments