📜 ⬆️ ⬇️

Monitor the number of documents in Sphinx indexes

Hello.
If in your projects you use the wonderful search engine Sphinxsearch , and monitor the various parameters of the system with the help of Munin this post is for you. I want to announce my feasible contribution to opensource - a plugin for Munin that draws graphs with the number of documents in the index. Download the plugin at this link .


Installation is quite simple:
1. Save the sphindex_ file in the / usr / share / munin / plugins directory
2. Create symlinks (one for each index). For example, you have indexes index1 and index2 :
ln -s /usr/share/munin/plugins/sphindex_ /etc/munin/plugins/sphindex_index1 ln -s /usr/share/munin/plugins/sphindex_ /etc/munin/plugins/sphindex_index2 

3. If Sphinxsearch is running on a different machine, you can specify its address in the /etc/munin/plugin-conf.d/munin-node config:
 [sphindex_*] env.server 127.0.0.1 env.port 9312 

4. Restart the munin-node service and wait for the graphics to appear.

To use the plugin, you need a sphinxsearch module for python. It is easy to install via easy_install.

')

Source: https://habr.com/ru/post/148459/


All Articles