Compare commits

..

No commits in common. "a417edcfed2975df42c0bdf87177e03b9753ce7d" and "28482d201db669036a348b99fb883b02320534c6" have entirely different histories.

4 changed files with 5 additions and 8 deletions

View File

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

View File

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

View File

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

View File

@ -6,4 +6,4 @@ RUN PROFILE=dev CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -o out/app
FROM zabbix/zabbix-agent2:ubuntu-7.0-latest
COPY --from=builder /build/out/app /usr/sbin/onvif-agent
RUN echo "Plugins.ONVIF.System.Path=/usr/sbin/onvif-agent" >> /etc/zabbix/zabbix_agent2.d/plugins.d/onvif.conf
RUN echo "Plugins.Onvif.System.Path=/usr/sbin/onvif-agent" >> /etc/zabbix/zabbix_agent2.d/plugins.d/onvif.conf