go.d.plugin -d -m windows

I have an Debian bullseye Server as VM on Virtualbox.
Debian 5.10.162-1
netdata version v1.38.0-382-gfe1ca9fd0

Netdata is running fine. This netdata instance should windows host.
Setup @ Windows is rudimentary set up, and running
The Address http://192.168.100.195:9182/metrics works, firewall for 9182 is open

Problem:

The Metrics do not appear.
Debugging shows:

/opt/netdata/netdata-plugins/plugins.d# ./go.d.plugin -d -m windows
# Output
[ DEBUG ] main[main] main.go:114 plugin: name=go.d, version=v0.52.0
[ DEBUG ] main[main] main.go:116 current user: name=netdata, uid=998
[ INFO  ] main[main] agent.go:140 instance is started
[ INFO  ] main[main] setup.go:43 loading config file
[ INFO  ] main[main] setup.go:51 looking for 'go.d.conf' in [/etc/netdata /usr/lib/netdata/conf.d]
[ WARN  ] main[main] setup.go:55 couldn't find config, will use defaults
[ INFO  ] main[main] agent.go:144 using config: enabled 'true', default_run 'true', max_procs '0'
[ INFO  ] main[main] setup.go:70 loading modules
[ INFO  ] main[main] setup.go:89 enabled/registered modules: 1/80
[ INFO  ] main[main] setup.go:94 building discovery config
[ INFO  ] main[main] setup.go:129 looking for 'wmi.conf' in [/etc/netdata/go.d /usr/lib/netdata/conf.d/go.d]
[ INFO  ] main[main] setup.go:141 looking for 'windows.conf' in [/etc/netdata/go.d /usr/lib/netdata/conf.d/go.d]
[ INFO  ] main[main] setup.go:154 couldn't find 'windows' module config, will use default config
[ INFO  ] main[main] setup.go:162 dummy/read/watch paths: 1/0/0
[ INFO  ] discovery[manager] manager.go:92 registered discoverers: [dummy discovery]
[ INFO  ] main[main] setup.go:176 looking for 'vnodes/' in [/etc/netdata /usr/lib/netdata/conf.d]
[ INFO  ] discovery[manager] manager.go:97 instance is started
[ INFO  ] run[manager] run.go:32 instance is started
[ INFO  ] build[manager] build.go:117 instance is started
[ INFO  ] discovery[dummy] discovery.go:52 instance is started
[ INFO  ] discovery[dummy] discovery.go:53 instance is stopped
[ DEBUG ] build[manager] build.go:164 received config group ('windows'): 1 jobs (added: 1, removed: 0)
[ DEBUG ] build[manager] build.go:313 building windows[windows] job, config: map[__provider__:dummy __source__:windows autodetection_retry:0 module:windows name:windows priority:70000 update_every:5]
[ ERROR ] windows[windows] windows.go:108 config validation: 'url' is not set
[ ERROR ] windows[windows] job.go:200 init failed

My windows.conf looks so:
/opt/netdata/etc/netdata/go.d/windows.conf

jobs:
  - name: Whost01
    vnode: Whost01
    url: http://192.168.100.195:9182/metrics

Any Ideas?

1 Like

Hi, @Bernd

See the logs


/opt/netdata/netdata-plugins/plugins.d

What is your installation method? And also check the collector.log file.

Yes they redśides in /opt/netdata.
But the messages says “using default” . Is this the problem,?

The message says that windows.conf wasn’t found in /etc/netdata/go.d and /usr/lib/netdata/conf.d/go.d.

Try

cd /opt/netdata/usr/libexec/netdata/plugins.d 
./go.d.plugin -d -m windows

I did copy the missing conf files to /etc/netdata structure (here was no /etc/netdata dir at all)
After that it still does not work.
I disabled the local jobs entries and left only my added job .

Now it works!