graylog-labs / check-graylog2-stream

Icinga/Nagios check to monitor Graylog2 stream alerts
Apache License 2.0
15 stars 11 forks source link

2.4 API #7

Open linuxmail opened 6 years ago

linuxmail commented 6 years ago

hi,

I tried the plugin with our 2.4 version and it seems to be not working:

./check-graylog2-stream  -stream=11223344566aabbccddee -user=monitoring -password="secret" -url='https://graylog-01.example.com:9000/api/'
UNKNOWN: Can not parse JSON from Graylog2 API

Any suggestions ?

JJinMaine commented 5 years ago

I had the same problem but I misunderstood the credentials aspect. I thought I was supposed to generate an API token and use that name and token but I was wrong - I tried using a normal Graylog username and password that had access to the stream and it worked fine.