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:
Steve Brunton
2020-04-07 23:06:38 -04:00
committed by GitHub
parent 3b33400d24
commit 72ec3c2ce0
6 changed files with 123 additions and 30 deletions

View File

@@ -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"`
}