Problem with check_solr
Posted: Fri Sep 19, 2014 7:41 am
Hello,
I'm having some issues with a check_solr plugin I found here: https://github.com/rbramley/Opsview-sol ... check_solr
When using the plugin from cli, no issues:
But when making a command like thse (tried different ways)
$USER1$/check_solr -H $HOSTADDRESS$ -o $ARG1$
$USER1$/check_solr $ARG1$ (and specify host in service template)
I keep getting:
(Return code of 13 is out of bounds) in the Nagios XI gui.
When testing from the template, no output is shown, but when I copy the exact same command to cli, it works.....
What am I doing wrong?
Grtz
Willem
I'm having some issues with a check_solr plugin I found here: https://github.com/rbramley/Opsview-sol ... check_solr
When using the plugin from cli, no issues:
Code: Select all
[root@nagios libexec]# /usr/local/nagios/libexec/check_solr -H lampsolrqa01 -o cache
OK - Solr Core: - schema: drupal-1.9.6 | 'queryResultCache hit ratio'=0.99%;;;; 'documentCache hit ratio'=0.00%;;;; 'fieldValueCache hit ratio'=0.00%;;;; 'filterCache hit ratio'=0.00%;;;;
[root@nagios libexec]# /usr/local/nagios/libexec/check_solr -H lampsolrqa01 -o response
OK - Solr Core: - schema: drupal-1.9.6 - standard avgResponseTime=1.4344318 | 'standard avgResponseTime'=1.4344318ms;;;; 'standard requests'=1487c;;;; 'standard qps'=0.016728139;;;;
[root@nagios libexec]# /usr/local/nagios/libexec/check_solr -H lampsolrqa01 -o numdocs
OK - Solr Core: - schema: drupal-1.9.6 - numDocs=5297 | numDocs=5297;;;;
[root@nagios libexec]# /usr/local/nagios/libexec/check_solr -H lampsolrqa01 -o updates
OK - Solr Core: - schema: drupal-1.9.6; cumulative_adds=0; commits=0; optimizes=0; docsPending=0; deletesById=0; deletesByQuery=0 | cumulative_adds=0;;;; commits=0;;;; optimizes=0;;;; docsPending=0;;;; deletesById=0;;;; deletesByQuery=0;;;;
$USER1$/check_solr -H $HOSTADDRESS$ -o $ARG1$
$USER1$/check_solr $ARG1$ (and specify host in service template)
I keep getting:
(Return code of 13 is out of bounds) in the Nagios XI gui.
When testing from the template, no output is shown, but when I copy the exact same command to cli, it works.....
What am I doing wrong?
Grtz
Willem