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:
<result name="response" numFound="1547" start="0"/>
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:
/usr/bin/curl -v "http://MySolrHost:8080/solr/select?q=*%3A*&start=0&rows=0" 2>&1| sed -n "s/.*numFound=\"//;s/\" start=.*//p"
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!