Hello,
Can someone point me in the right direction for creating a custom graph?
Here's my scenario.
I have one linux server running the SOLR indexing service. I can view the number of indexed records easily by running this command in a browser:
It returns something like this:
This works nicely because I can see the value is 1547.
To get only the value I want (without the XML output) I can run this:
So what I would like to do is have Zabbix run the above command every minute and graph the values accordingly.
What's the best approach for this (graphing a numeric value based on a CURL command). Can someone point me in the right direction - perhaps a previous post somewhere?
Any help is greatly appreciated!
Mike
Can someone point me in the right direction for creating a custom graph?
Here's my scenario.
I have one linux server running the SOLR indexing service. I can view the number of indexed records easily by running this command in a browser:
Code:
http://MySolrHost:8080/solr/select?q=*%3A*&start=0&rows=0
Code:
<response> <lst name="responseHeader"> <int name="status">0</int> <int name="QTime">1</int> <lst name="params"> <str name="start">0</str> <str name="q">*:*</str> <str name="rows">0</str> </lst> </lst> <result name="response" numFound="1547" start="0"/> </response>
To get only the value I want (without the XML output) I can run this:
Code:
/usr/bin/curl -v "http://MySolrHost:8080/solr/select?q=*%3A*&start=0&rows=0" 2>&1| sed -n "s/.*numFound=\"//;s/\" start=.*//p"
What's the best approach for this (graphing a numeric value based on a CURL command). Can someone point me in the right direction - perhaps a previous post somewhere?
Any help is greatly appreciated!
Mike
Comment