collect firmware version (#82)
collect packages/firmware versions and export them as labels for gauge under : mikrotik_system_package * updated versions of dependent libs * fetch firmware version as gauge * fixed the things that needed to be fixed
This commit is contained in:
@@ -11,20 +11,21 @@ import (
|
||||
type Config struct {
|
||||
Devices []Device `yaml:"devices"`
|
||||
Features struct {
|
||||
BGP bool `yaml:"bgp,omitempty"`
|
||||
DHCP bool `yaml:"dhcp,omitempty"`
|
||||
DHCPL bool `yaml:"dhcpl,omitempty"`
|
||||
DHCPv6 bool `yaml:"dhcpv6,omitempty"`
|
||||
Health bool `yaml:"health,omitempty"`
|
||||
Routes bool `yaml:"routes,omitempty"`
|
||||
POE bool `yaml:"poe,omitempty"`
|
||||
Pools bool `yaml:"pools,omitempty"`
|
||||
Optics bool `yaml:"optics,omitempty"`
|
||||
W60G bool `yaml:"w60g,omitempty"`
|
||||
WlanSTA bool `yaml:"wlansta,omitempty"`
|
||||
WlanIF bool `yaml:"wlanif,omitempty"`
|
||||
Monitor bool `yaml:"monitor,omitempty"`
|
||||
Ipsec bool `yaml:"ipsec,omitempty"`
|
||||
BGP bool `yaml:"bgp,omitempty"`
|
||||
DHCP bool `yaml:"dhcp,omitempty"`
|
||||
DHCPL bool `yaml:"dhcpl,omitempty"`
|
||||
DHCPv6 bool `yaml:"dhcpv6,omitempty"`
|
||||
Firmware bool `yaml:"firmware,omitempty"`
|
||||
Health bool `yaml:"health,omitempty"`
|
||||
Routes bool `yaml:"routes,omitempty"`
|
||||
POE bool `yaml:"poe,omitempty"`
|
||||
Pools bool `yaml:"pools,omitempty"`
|
||||
Optics bool `yaml:"optics,omitempty"`
|
||||
W60G bool `yaml:"w60g,omitempty"`
|
||||
WlanSTA bool `yaml:"wlansta,omitempty"`
|
||||
WlanIF bool `yaml:"wlanif,omitempty"`
|
||||
Monitor bool `yaml:"monitor,omitempty"`
|
||||
Ipsec bool `yaml:"ipsec,omitempty"`
|
||||
} `yaml:"features,omitempty"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user