Hi Pete, currently there is no resource in the Graylog REST API which would check the availability of MongoDB or Elasticsearch explicitly. But you could check this "indirectly" via the cluster stats resource at http://localhost:12900/system/cluster/stats (or more specifically http://localhost:12900/system/cluster/stats/elasticsearch and http://localhost:12900/system/cluster/stats/mongo).
Cheers, Jochen On Thursday, 30 July 2015 02:12:19 UTC+2, Pete GS wrote: > > This is possibly a little obscure but also possibly useful... > > I've written a Nagios plugin (in Perl) to check the health of all my > Graylog nodes but the one thing I can't seem to find how to check is the > status of a Graylog node in relation to being able to connect to the > MongoDB. I can check pretty much everything else I want to (eg. journal > utilisation, messages in vs. out, etc.). > > Essentially we have some funky network issues on occasion that will stop > one or more nodes from talking to the MongoDB servers and they don't always > recover, meaning one or more nodes will constantly report "Did not find > meta info of this node. Re-registering." in the server.log. > > I can certainly run another stream in Graylog and alert on this but I'd > much prefer to be able to get it from the API if this is possible. > > Is there a function in the API already for this that I'm missing or should > this be a feature request? > > I realise the key here is fixing the funky network issues and I'm working > on that in parallel :) > > Cheers, Pete > -- You received this message because you are subscribed to the Google Groups "Graylog Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/8c63f905-a7a9-41bc-9697-9ecd70e3781e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
