On 1/4/2021 11:25 AM, Chris Hostetter wrote:
Can't you just configure nagios to do a "negative match" against
numFound=0 ? ... ie: "if response matches 'numFound=0' fail the check."
(IIRC there's an '--invert-regex' option for this)
Nothing's ever simple: apparently the standard plugin does
er@lucene.apache.org
: To: solr-user@lucene.apache.org
: Subject: how to check num found
:
: Hi all,
:
: we're doing periodic database reloads from external sources and I'm trying to
: figure out how to monitor for errors. E.g. I'd run a query '?q=FOO:BAR=0'
: and check if "numFound" >
Hi all,
we're doing periodic database reloads from external sources and I'm
trying to figure out how to monitor for errors. E.g. I'd run a query
'?q=FOO:BAR=0' and check if "numFound" > 0, that'd tell me if the
reload succeeded.
The check is done using nagios curl plugin, and while it can