chore: 插件改名

This commit is contained in:
Liam Chan 2024-08-23 14:47:14 +08:00
parent 28482d201d
commit 77d8153b43
3 changed files with 7 additions and 4 deletions

View File

@ -1,5 +1,5 @@
package zabbixagent
const (
PluginName = "OnvifAgent"
PluginName = "ONVIF"
)

View File

@ -76,9 +76,9 @@ func (p *zabbixAgentPlugin) registerMetrics() error {
h := NewHandler()
p.metrics = map[metricKey]*metricBinding{
"onvif.version": {
"onvif.app.version": {
metric: metric.New(
"ONVIF app version",
"App version",
nil,
false,
),

View File

@ -68,8 +68,11 @@ func main() {
//}()
//
//select {}
err = zabbixagent.Launch()
if err != nil {
log.Fatal(err)
return
}
panic(err)
}