bosun-monitor / bosun

Time Series Alerting Framework
http://bosun.org
MIT License
3.4k stars 493 forks source link

windows scollector error #1699

Closed chsword closed 7 years ago

chsword commented 8 years ago

I got a error in Windows Event .

error: queue.go:105: json: error calling MarshalJSON for type *opentsdb.DataPoint: cleaning tags for metric sntp.stratum: cleaning value  for tag remote: clean result is empty

There is this error in windows 2008 r2 / windows 2012 r2 . And 386 / amd64 both has error.

neulf commented 8 years ago

The same to u.

simnv commented 8 years ago

Is your Windows by any chance is not in english locale?

scollector can't parse w32time /querysntp result if it is not in english.

chsword commented 8 years ago

yes Chinese-Simplified

noblehng commented 8 years ago

I had played with codepage to force w32tm to output english with not much luck.

So for now, I just disable the Windows TIme service or disable the sntp collector.

StianOvrevage commented 8 years ago

How do you disable the sntp collector?

kylebrandt commented 8 years ago

Need * first to match all, then subtract the sntp collector, i.e.

PS C:\Users\kbrandt> & 'C:\Program Files\scollector\scollector.exe' -f "*,-sntp" -l

StianOvrevage commented 8 years ago

Great, thanks. Also, when adding to scollector.toml, the right format looks to be:

Filter = ["*","-sntp"]

in the main section.